Usage & Billing API
Query usage stats, billing information, and manage payments.
Usage statistics
GET
$ GET https://api.alltoken.ai/api-account/user/usageReturns token usage and cost breakdown, filterable by date range, model, and API key.
Credit balance
GET
$ GET https://api.alltoken.ai/api-account/user/balanceReturns current credit balance available for API usage.
Add credits
POST
$ POST https://api.alltoken.ai/api-account/user/billing/create-checkoutCreates a Stripe checkout session. Returns a checkout URL — redirect the user to complete payment.