v5

OpenAPI 3.1.02026-08-025631,1012.8 MB
Organization Billing

Get Credit Balance

Get current credit balance and tier information.

Returns the organization's credit balance, current tier, and usage statistics. Useful for displaying billing status in dashboards.

Requirements:

  • Read permission

Example:

response = await client.get("/v1/organizations/billing/balance")
print(f"Balance: {response['credit_balance']} credits")
print(f"Tier: {response['account_tier']}")
get/v1/organizations/billing/balance

Response

Successful Response

organization_idstring required

Organization identifier

credit_balanceinteger required

Current credit balance. For FREE tier without auto-billing, this is remaining free tier credits. For auto-billing accounts, this shows current month usage (negative indicates consumption).

account_tierstring required

Current account tier: free, pro, team, enterprise

next_tierstring nullable

Next available tier or null if at max tier

credits_until_next_tierinteger nullable

Credits needed to reach next tier (null if at max tier or N/A)

estimated_days_remaininginteger nullable

Estimated days until credits depleted based on 7-day burn rate. Null if no usage history or unlimited (auto-billing enabled).

daily_burn_ratenumber

Average credits consumed per day (7-day rolling average)

Example response

{
  "organization_id": "org_demo123",
  "credit_balance": 45230,
  "account_tier": "free",
  "next_tier": "pro",
  "credits_until_next_tier": 954770,
  "estimated_days_remaining": 15,
  "daily_burn_rate": 3015.3
}