Skip to main content
GET
Get usage and cost

Authorizations

Authorization
string
header
required

Management API authentication. Pass an op-mak-… management token as a Bearer token. Runtime op-… API keys are rejected with 403 — they belong on the data-plane endpoints. Mint a management key from the platform UI under Settings → API keys.

Query Parameters

from
string<date-time>

Inclusive RFC 3339 start. Defaults to seven days before to. At most 31 days before to.

to
string<date-time>

Exclusive RFC 3339 end. Defaults to now.

group_by
enum<string>
default:none

none (default), api_key_id, model, provider or project.

Available options:
none,
api_key_id,
model,
provider,
project
bucket
enum<string>
default:none

none (default) for totals over the window, hour or day for a UTC series.

Available options:
none,
hour,
day
project_uuid
string<uuid>

Read one of the organization's projects instead of the whole organization.

Response

Successful response

data
object[]
meta
object
Last modified on October 15, 2026