GET /v1/usage
Summarizes spending and balance over the time range you request.Every monetary value is expressed in cents. The
prior_period block
mirrors the same-length window directly preceding your requested range, so you
can compare the two.The keys in
sla_mix are completion window names:
asap (the Now tier), standard, and flex.balance, balance_unavailable, and days_remaining describe a prepaid-credit balance.
Until prepaid credits are available, balance_unavailable is always true, balance is
0, and days_remaining is omitted - spend, burn rate, tokens, and the SLA mix are always
reported.GET /v1/usage/breakdown
Provides per-model rankings alongside time-series spend data - ideal for building charts.granularity is "day"; for a 24h range or a day drill-down it is "hour".
GET /v1/usage/activity
Surfaces operational metrics - request counts, token throughput, latency, and a list of recent requests.has_more value of true means more recent requests exist beyond the limit you asked for.
Like the other endpoints, activity data lags slightly and is not delivered as
a real-time stream.
GET /v1/usage/activity/timeseries
Returns bucketed series for either requests or tokens - use it to draw throughput charts.
Requests by model:
Errors
Errors share the format used throughout the inference API:Response headers
Each response carries anX-Request-ID: <uuid>. Quote it in support requests to speed up troubleshooting.