Skip to main content

Query Account and All Key Balances

Only accepts a Management Key and returns the account balance overview and a paginated balance list of all Regular Keys under the account.

Request Parameters

ParameterTypeRequiredDefaultDescription
pageintegerNo1Page number, positive integer
limitintegerNo30Items per page, 1 to 100
key_typestringNoregularOnly empty or regular is supported; management returns 400 unsupported_key_type
statusstringNoNoneFilter by status: active or disabled

Response Example

{
"object": "balance",
"currency": "USD",
"as_of": "2026-08-08T06:30:00Z",
"account": {
"total_balance": "850",
"paid_balance": null,
"free_balance": null,
"total_consumed": "150",
"paid_consumed": null,
"free_consumed": null,
"breakdown_status": "unavailable"
},
"keys": [
{
"id": "key_01JPRODUCTION",
"name": "Production Server",
"key_type": "regular",
"disabled": false,
"manually_disabled": false,
"limit": "200",
"limit_reset": "monthly",
"quota_scope": "usage",
"period": {
"start": "2026-07-21T08:30:00Z",
"end_exclusive": "2026-08-21T08:30:00Z"
},
"consumed_this_period": "85.5",
"consumed_today": "2.3",
"key_limit_remaining": "114.5",
"remaining": "114.5",
"effective_remaining": "114.5",
"usage_pct": "42.75",
"status": "active",
"status_reason": null
}
],
"page": 1,
"limit": 30,
"has_more": false,
"total_keys": 1,
"active_keys": 1,
"disabled_keys": 0
}

List and Count Field Descriptions

FieldTypeDescription
keysarrayBalance list of Regular Keys on the current page
pageintegerCurrent page number
limitintegerCurrent page size
has_morebooleanWhether there is another page
total_keysintegerTotal number of Regular Keys matching the current filter conditions, unaffected by pagination
active_keysintegerNumber of all active Regular Keys under the account, unaffected by the status filter and pagination
disabled_keysintegerNumber of all disabled Regular Keys under the account, unaffected by the status filter and pagination

The list endpoint does not return Key lifetime consumption or per-model breakdown. To get the breakdown, call the single-Key balance endpoint.

Count Semantics

total_keys is affected by filter conditions such as status, but active_keys / disabled_keys reflect the total number of Regular Keys under the account, unaffected by the status filter and pagination.

Related Endpoints

For general request conventions, field definitions, and error codes, see the Balance Query API overview.

Online Service