allmodels.ioAudio Docs
API ReferenceAccount

Check account balance

GET/account/balance

Use this endpoint to check the credits associated with your API key. Authenticate with Authorization: Bearer <apiKey>. Use spendable_paid_credits to see the paid balance available for any request; monthly-billed accounts spend against their invoice allowance instead, tracked by outstanding_credits. 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,  "paid_balance_usd": 1.25,  "updated_at": "2026-07-21T12:00:00Z"}
{  "error": "invalid_request"}
{  "error": "invalid_request"}