Account balance
account_balanceGet the balance of the AIMLAPI account that owns this API key, and whether it is running low. Use it before a costly generation or after an insufficient_balance error; for what this key has spent and its spending limit, use account_usage. Free. Returns balance_usd and low_balance_threshold_usd (report amounts to the user in USD), low_balance (true when the balance is below that threshold) and status; balance and low_balance_threshold are the same amounts in API credits (2,000,000 credits = $1).
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": "account_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||