Your credits and usage
get_usageCheck remaining API credits, including free and purchased balances, plus today's and this month's spend before large batches to stay within budget.
Instructions
Shows the credits left on your API key (free this month and purchased) and what you spent today and this month. It costs nothing. Needs an API key. Example: call it before a long batch to stay within budget.
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_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buy_url | No | ||
| calls_today | No | ||
| credits_left | Yes | ||
| calls_this_month | No | ||
| credits_enforced | Yes | ||
| free_credits_left | Yes | ||
| purchased_credits | Yes | ||
| credits_spent_today | No | ||
| credits_spent_this_month | No |