Get a key's budget
get_key_budgetGet a key's budget
One key's budget (any working model key of the account, a customer's included: the keys the list_budgets tool lists), each limit with its spend this window. Its monthly limit is the key's monthlyLimitUsd, so a key created with a monthly cap has a budget (hard_stop, no alert). 404 not_found for an unknown or revoked key, or a key without a budget. Windows are UTC: the day from midnight, the week from Monday, the month from the 1st, lifetime from when that limit was set.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "get_key_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The key id: any working model key of the account, a customer's included (GET /budgets lists them). |