Balance
GET /key/info — the spend and budget attached to the current key.
curl https://api.aigateway.ltd/key/info -H "Authorization: Bearer ${AIGATEWAY_API_KEY}"| Field | Meaning |
|---|---|
| spend | Amount consumed (USD, gateway guard value) |
| max_budget | Budget cap for this key (USD) |
| models | Models this key may call |
| expires | Key expiry |
The authoritative balance and per-request bill live in the console (/console), where the billing engine recomputes from provider rate cards including cache and peak segments.