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:
Example:
response = await client.get("/v1/organizations/billing/balance")
print(f"Balance: {response['credit_balance']} credits")
print(f"Tier: {response['account_tier']}")
Documentation Index
Fetch the complete documentation index at: https://docs.mixpeek.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
"Bearer YOUR_API_KEY"
"Bearer YOUR_STRIPE_API_KEY"
Successful Response
Response with current credit balance and tier information.
Organization identifier
"org_demo123"
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).
45230
750
Current account tier: free, pro, team, enterprise
"free"
"pro"
"team"
Next available tier or null if at max tier
"pro"
Credits needed to reach next tier (null if at max tier or N/A)
954770
Estimated days until credits depleted based on 7-day burn rate. Null if no usage history or unlimited (auto-billing enabled).
15
Average credits consumed per day (7-day rolling average)
3015.3
142.5