Skip to main content
GET
Per-provider/model usage breakdown for the caller, ordered by total tokens.

Query Parameters

limit
integer<int64>

Page size (default: 50).

offset
integer<int64>

Page offset (default: 0).

q
string | null

Case-insensitive substring filter: on the agent name for by-agent, on the model name for by-model. Omitted or empty matches everything.

days
integer<int64>

Look-back window in days (default: 30).

Response

Paginated per-model usage rows

Doc-only schema for crate::Paginated<ModelUsage> (the generic envelope itself is not utoipa-annotated).

data
object[]
required
total
integer
required
Required range: x >= 0