Get per-day spend over a trailing window
Returns the org's spend per UTC day for the last 1 to 90 days (default 7), split into GPU model, CPU, and Inference segments, plus the prior window's total. This is what the dashboard spend chart shows. Compute cost is split at UTC day boundaries and inference charges land on the day they were billed. Read-only: costs are priced the same way your bill is, never re-priced.
Required permission
Requires the usage.read permission. See Permissions for the roles and API key permissions that include it.
Command line
The orl CLI wraps this endpoint:
orl usage daily getapiKeyAuthorizationBearer <token>OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).
orgId*stringdays?integer1 <= value <= 907OK
application/json- response
daily*array<>one point per day, oldest first, zero-filled so the series is continuous
previousCents*integertotal spend in the same-length window immediately before this one
previousSegments*array<>curl -X GET 'https://api.openrelay.inc/v1/orgs/string/usage/daily'{ "daily": [ { "date": "string", "cents": 0, "segments": [ { "key": "string", "cents": 0 } ] } ], "previousCents": 0, "previousSegments": [ { "key": "string", "cents": 0 } ]}Get current-month usage GET
Returns the cents and hours used so far this month by GPU model and tier, plus the live burn per hour and the projected hours until the auto-stop floor.
Get the org's on-demand inference series GET
Requests, error rate, latency and time-to-first-token percentiles, and tokens for the org's online on-demand inference over 1h, 6h, 24h, or 7d. Every series shares one time grid, and `models` lists the models with traffic in the range. Without `model` every series is the org total across its on-demand models. Batch and async calls are not counted. Every series also carries a whole-range figure, and the per-point counts add up to it. Data appears within a minute of the org's first on-demand request. These are display metrics, not billing: spend is in the daily usage endpoint.