List Usage
/v1/usageOverview
Requires usage.read. Results are ordered by accounting time with an opaque, filter-bound cursor. from is inclusive and to is exclusive. Pending paid requests are excluded; inspect logs for unresolved holds. Legacy event timestamps can be backfilled, so pagination is not a database snapshot.
Parameters
workspace_idquery · stringSelect an authorized workspace for session callers. API keys are always scoped to their own workspace.
limitquery · integercursorquery · stringfromquery · stringtoquery · stringResponses
200Usage page.
dataobject[]RequiredShow nested fields
idstringRequiredrequest_idstringRequiredDurable request ID returned in the x-request-id response header.
workspace_idstringRequiredkey_idstring | nullsourcestringRequiredValues: "audio""llm""legacy""images""moderation""secondary"
taskstring | nullValues: "transcription""speech""s2s""llm""embeddings""images""moderation""ocr""rerank"null
modelstring | nullresolved_modelstring | nullproviderstring | nullstatestring | nullValues: "queued""running""succeeded""failed""canceled""unknown"null
error_codestring | nullunitstringRequiredcostnumberRequiredPosted customer wallet debit in USD, after fractional carry.
accrued_coststring | nullExact per-request customer accrual before carry, with 16 decimal places. Historical rows may not have this value.
currencystringRequiredsecondsnumber | nullbillable_secondsnumber | nullinput_charsinteger | nullinput_tokensinteger | nullInput tokens of selected successful outputs, excluding internal and failed attempts.
cached_tokensinteger | nullInput tokens served from cache, when reported by the provider. Null for usage that does not report caching.
output_tokensinteger | nullreasoning_tokensinteger | nullimagesinteger | nullcreated_atstringRequiredSettlement time for funded LLM, embeddings and images; usage completion time for audio and moderation; recorded event time for legacy data.
next_cursorstring | null401Authentication is missing or invalid.
errorobjectRequiredShow nested fields
codestringRequiredmessagestringRequiredparamstring | nullrequest_idstring | nullmetadataobjectTyped detail for some refusals. budget_exceeded (402): limit (key_budget or workspace_budget) and budget with scope, period, limit, usage and resets_at. key_limit_exceeded (402): limit key_spend_limit. access_denied (403): policy (workspace or key), rule (models, providers or products), product, provider and model.
500Internal server error.
errorobjectRequiredShow nested fields
codestringRequiredmessagestringRequiredparamstring | nullrequest_idstring | nullmetadataobjectTyped detail for some refusals. budget_exceeded (402): limit (key_budget or workspace_budget) and budget with scope, period, limit, usage and resets_at. key_limit_exceeded (402): limit key_spend_limit. access_denied (403): policy (workspace or key), rule (models, providers or products), product, provider and model.