Aibubu
Visit Aibubu ↗
Account and usage

Balance

Query the current API workspace credit balance and quota status before submitting single or batch generation tasks.

GET/v1/user/balance

This endpoint returns the balance or credit state of the API key's workspace.

GET /v1/user/balance

Overview

ItemDescription
RouteGET /v1/user/balance
AuthAuthorization: Bearer sk_aibubu_xxx
Request bodyNone
Response200 OK + balance object

Typical use cases

  • Console balance page
  • Preflight quota checks
  • Monitoring and alerts

Authorizations

Authorization: Bearer sk_aibubu_your_api_key

Response

{
  "balance_amount": 10.00,
  "currency": "CNY",
  "api_credits": 130.00,
  "authorized_api_credits": 26.00,
  "wallet_account_id": "wallet_01jxyz..."
}

Response fields

FieldTypeDescription
balance_amountnumberMonetary value of the API-eligible available balance
currencystringCurrency: CNY in China and USD globally
api_creditsnumberAPI wallet credits available for API requests, including valid API promotional grants
authorized_api_creditsnumberAPI Credits authorized or reserved by API requests; not lifetime purchased credits
wallet_account_idstringWallet 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