Skip to main content
GET
curl

Authorizations

Authorization
string
header
required

An account provisioning key. Send it as Authorization: Bearer <key>. Provisioning keys manage the account and cannot reach a model.

Query Parameters

days
integer<int32>
default:30

How many days back the report reaches, from 1 to 30; anything else draws a 400.

Required range: x >= 0

Response

The usage report for the requested window: the per-day rows, the totals, and the breakdowns by model and by API key.

What the account used, cut four ways. The answer is cached for five minutes.

period_days
integer<int32>
required

The window these numbers cover, in days back plus today.

Required range: x >= 0
total_stats
object
required

The whole window in one row.

daily_stats
object[]
required

One row per day that saw traffic, newest first.

top_models
object[]
required

The ten most-used models of the window, by request count.

api_key_usage
object[]
required

One row per key that saw traffic, most-used first, uncapped.