Base URL:
https://api.platform.getimpala.ai
Authentication
Send the API key you already use for inference as a bearer token. No separate key is needed.401. Billing reads keep working when your wallet is empty and inference requests are refused.
Plan differences
On pay-as-you-go,/v1/account includes wallet. On other plans, wallet is left out of the response (the field is absent, not null). /v1/account/prices returns your price list on pay-as-you-go and on committed-usage plans once Impala has set up your committed-usage billing. On contract plans, and on committed usage before that setup, it returns 404. /v1/account/spend reports spend_usd on pay-as-you-go and committed-usage plans; on contract plans it’s null. /v1/account/keys works the same on every plan.
Endpoints
Values in the response examples are illustrative.
Get account
GET /v1/account
Returns your team, billing plan and the key that made the call. On pay-as-you-go, it also returns wallet.
The calling key, with the same fields as an entry in
/v1/account/keys.List keys
GET /v1/account/keys
Returns your team’s API keys. Only metadata is returned, never the key itself.
Get spend
GET /v1/account/spend
Returns spend, requests and tokens for a date range, in one bucket per UTC day. spend_usd is the figure your Billing page shows for the same days and models.
Last day, inclusive, as
YYYY-MM-DD. Defaults to today, and a future date is treated as today. The window can span up to 400 days.Breaks each day down by
model, api_key, or both (model,api_key). Without it, each day has a single row.Only include these keys, as a comma-separated list of key
ids from /v1/account/keys. Every ID must be a current key on your team.Only include these models, as a comma-separated list of model names as the report shows them. Any other name matches nothing.
The inclusive window the report covers.
start can be later than requested when your account’s history starts later.One entry per UTC day with usage. Days with no usage are left out rather than reported as zeros.
api_key or filtering with api_key_ids returns spend_usd: null. Days before your billing started show their usage at 0.
Get prices
GET /v1/account/prices
Returns your price list in USD per 1M tokens. On pay-as-you-go, it’s the one your Billing page shows. Committed-usage plans are billed per model at these prices too. Contract plans, and committed-usage plans before their billing is set up, get a 404.
Errors
Errors return JSON with adetail message. Errors specific to this API also carry a code:
Other errors carry no
code. A date that isn’t YYYY-MM-DD returns 422 with a list of validation errors in detail. /v1/account/prices returns 404 on plans other than pay-as-you-go. A 502 means an upstream service didn’t answer; retry the request.

