A single GET request returns the credit balance (in USD) of the account that owns the API key. Read-only, never charges — perfect for your own dashboard, billing widget, or low-balance alerts.
GET /api/v1/balance
Authorization: Bearer <API_KEY>cURL
curl https://apimodels.app/api/v1/balance \
-H "Authorization: Bearer $API_KEY"Python
import requests, os
r = requests.get(
"https://apimodels.app/api/v1/balance",
headers={"Authorization": f"Bearer {os.environ['API_KEY']}"},
)
data = r.json()["data"]
print(f"Available: ${data['balance']} {data['currency']}")
print(f"Total: ${data['total']} Frozen: ${data['frozen']}")Node.js
const r = await fetch("https://apimodels.app/api/v1/balance", {
headers: { Authorization: `Bearer ${process.env.API_KEY}` },
});
const { data } = await r.json();
console.log(`Available: $${data.balance} ${data.currency}`);{
"code": 200,
"msg": "success",
"data": {
"balance": 12.5,
"total": 12.5,
"frozen": 0,
"currency": "USD"
}
}| Field | Required | Type | Description |
|---|---|---|---|
| data.balance | — | number | Available balance = total − frozen (what you can spend) |
| data.total | — | number | Total credits on the account |
| data.frozen | — | number | Temporarily frozen credits (e.g. abnormal invite activity), not usable |
| data.currency | — | string | Currency, always "USD" |