allmodels.ioDocs
API ReferenceAccount

Check account balance

Use this endpoint to check the paid and promotional credits associated with your API key. Authenticate with `Authorization: Bearer <apiKey>`. Use `spendable_paid_credits` to see the paid balance available for any request. Promotional credits can be limited to the provider and model combinations in `promotion_grants.targets`, so check each grant's `eligible` and `expires_at` values before relying on it. A `state` of `exhausted` means no balance is currently available for requests. One credit equals $0.000001. You can call this endpoint even when the balance is zero.

GET/account/balance

Use this endpoint to check the paid and promotional credits associated with your API key. Authenticate with Authorization: Bearer <apiKey>. Use spendable_paid_credits to see the paid balance available for any request. Promotional credits can be limited to the provider and model combinations in promotion_grants.targets, so check each grant's eligible and expires_at values before relying on it. A state of exhausted means no balance is currently available for requests. One credit equals $0.000001. You can call this endpoint even when the balance is zero.

Authorization

BearerAuth
AuthorizationBearer <token>

Tenant key supplied as the Authorization Bearer token.

In: header

Response Body

application/json

application/json

application/json

Client
Language
const response = await fetch("https://api.allmodels.io/account/balance", {  headers: { Authorization: `Bearer ${process.env.ALLMODELS_API_KEY}` }});if (!response.ok) throw new Error(`AllModels request failed: ${response.status}`);console.log(await response.json());
{  "state": "ok",  "paid_credits": 1250000,  "spendable_paid_credits": 1250000,  "promotional_credits": 500000,  "paid_balance_usd": 1.25,  "updated_at": "2026-07-21T12:00:00Z",  "promotion_grants": [    {      "name": "Welcome credits",      "remaining_credits": 500000,      "remaining_usd": 0.5,      "expires_at": "2026-08-31T23:59:59Z",      "eligible": true,      "targets": [        {          "provider": "elevenlabs",          "model": "elevenlabs/eleven-turbo-v2-5"        }      ]    }  ]}
{  "error": "invalid_request"}
{  "error": "invalid_request"}