meta-tools.token_balance
Get the current API token balance for the authenticated account.
Returns tokens used, tokens remaining, monthly allowance, billing plan, and when the allowance resets (billing_period_end). Use this before expensive calls or when you receive a 402 insufficient_tokens response
Cost = 0 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokens_used | No | Tokens consumed in the current billing period. | |
| billing_plan | No | Current billing plan id (free, starter, pro, scale). | |
| tokens_remaining | No | Tokens left before quota is exhausted. | |
| billing_period_end | No | ISO 8601 end of the current billing period. | |
| billing_period_start | No | ISO 8601 start of the current billing period. | |
| monthly_token_allowance | No | Total tokens included in the current billing period. | |
| billing_period_resets_at | No | ISO 8601 timestamp when the token allowance resets (same as period end). |