Usage & Billing API

Query usage stats, billing information, and manage payments.

Usage statistics

GET
$ GET https://api.alltoken.ai/api-account/user/usage

Returns token usage and cost breakdown, filterable by date range, model, and API key.

Credit balance

GET
$ GET https://api.alltoken.ai/api-account/user/balance

Returns current credit balance available for API usage.

Add credits

POST
$ POST https://api.alltoken.ai/api-account/user/billing/create-checkout

Creates a Stripe checkout session. Returns a checkout URL — redirect the user to complete payment.