Balance
Query the current API workspace credit balance and quota status before submitting single or batch generation tasks.
/v1/user/balanceThis endpoint returns the balance or credit state of the API key's workspace.
GET /v1/user/balanceOverview
| Item | Description |
|---|---|
| Route | GET /v1/user/balance |
| Auth | Authorization: Bearer sk_aibubu_xxx |
| Request body | None |
| Response | 200 OK + balance object |
Typical use cases
- Console balance page
- Preflight quota checks
- Monitoring and alerts
Authorizations
Authorization: Bearer sk_aibubu_your_api_keyResponse
{
"balance_amount": 10.00,
"currency": "CNY",
"api_credits": 130.00,
"authorized_api_credits": 26.00,
"wallet_account_id": "wallet_01jxyz..."
}Response fields
| Field | Type | Description |
|---|---|---|
balance_amount | number | Monetary value of the API-eligible available balance |
currency | string | Currency: CNY in China and USD globally |
api_credits | number | API wallet credits available for API requests, including valid API promotional grants |
authorized_api_credits | number | API Credits authorized or reserved by API requests; not lifetime purchased credits |
wallet_account_id | string | Wallet account ID for reconciliation and support |
api_credits counts only the key’s workspace API wallet balance: top-ups, API manual adjustments, and valid API promotional grants. It excludes subscription, signup, and promotional credits in the creator wallet. authorized_api_credits counts reservations from API requests only. Monetary amounts use 13 API Credits/CNY or 91 API Credits/USD and round to two decimal places, or four for amounts below one cent. Concurrent authorization and settlement can change the balance; a preflight check does not replace server-side billing validation.
This is a breaking change: quota_amount, authorized_amount, and X-Aibubu-Balance have been removed. Read the JSON fields above instead.
Integration notes
- If your business is sensitive to quota, check this endpoint before calling generation APIs
- If you submit many async tasks concurrently, also estimate quota usage on your side
- This is a good support endpoint for dashboards, alerts, and automation

