Read the balance
get_balanceCheck how much an API key can spend now—wallet balance, active task holds, available funds, and remaining monthly limits—before costly requests or after a 402.
Instructions
What this Kunavo API key can spend right now: the account's wallet, what its running image, video and music tasks hold, what is available for a new request, the monthly limit on this key and the monthly cap on the account when there is one (each with what is left), and whether auto-recharge is on. A request is refused (402) when its estimate is more than what is available (auto-recharge refills the wallet first only when its balance is under the owner's threshold) or more than what is left under a monthly limit (near the limit, on the API's own count): call this before an expensive request, and after a 402 for a monthly limit to see what is left under each. Free to call.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unread | Yes | Ceilings the API's answer left out or gave in a form that could not be read; each is null above. Normally empty. | |
| account | Yes | ||
| api_key | Yes | ||
| balance_usd | Yes | The account's wallet, in USD. Can be below zero. | |
| how_to_read | Yes | What a request is refused on, and what these figures leave out. | |
| reserved_usd | Yes | Held for the account's running image, video and music tasks. | |
| auto_recharge | Yes | ||
| available_usd | Yes | The wallet less what is held: what a new request's estimate is compared with. |