Get Account Balance
GET
/v1/billing/balanceReturns the current spendable balance for the authenticated account: wallet available balance plus credit available balance, in USD.
Authentication
Authorization Bearer
Use an API key in the Authorization header (sk-…).
Response
codeintegerResponse status code.
msgstringResponse message.
dataobject | nulldata.currencystringBalance currency; currently usd.
data.wallet_availablenumberWallet available balance in USD.
data.wallet_frozennumberWallet frozen balance in USD, such as pending settlement.
data.credit_availablenumberAvailable credit balance in USD.
data.total_spendablenumberwallet_available + credit_available.
data.checked_atstringSnapshot time in UTC ISO-8601 format.
service_codestring | nullStable service error code when applicable.
trace_idstring | nullServer trace id when available.
Balance Semantics
total_spendableis the same balance used for billing authorization: wallet top-up balance plus unused credit.- Enterprise members resolve wallet balances from the tenant owner account; credit remains on the member account when applicable.
Error Handling
- 401 / unauthenticated: missing or invalid
Authorization.
Related Endpoints
GET /v1/billing/{request_id}— reconcile charges for a single inference call.GET /v1/billing— summarize account usage and charges over a date range.
Was this page helpful?