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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
page | integer | No | 1 | Page number, positive integer |
limit | integer | No | 30 | Items per page, 1 to 100 |
key_type | string | No | regular | Only empty or regular is supported; management returns 400 unsupported_key_type |
status | string | No | None | Filter 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
| Field | Type | Description |
|---|---|---|
keys | array | Balance list of Regular Keys on the current page |
page | integer | Current page number |
limit | integer | Current page size |
has_more | boolean | Whether there is another page |
total_keys | integer | Total number of Regular Keys matching the current filter conditions, unaffected by pagination |
active_keys | integer | Number of all active Regular Keys under the account, unaffected by the status filter and pagination |
disabled_keys | integer | Number 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.
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.
For general request conventions, field definitions, and error codes, see the Balance Query API overview.