Request body.
Successful response
Read the authenticated user's LLM usage
Returns the authenticated user's own LLM usage aggregated over a bounded
time window. Each row carries request and token sums plus the customer-billed
cost for the group. Cost is derived from the customer's active billing plan;
provider-reported cost is never returned.
Pass group_by one or more times to choose the grouping dimensions
(task, model, agent_kind, agent_id, hour). The window (since to
until) may span at most 31 days. Results are capped at limit groups.
Optionalparams: {Query parameters.
OptionalgroupBy?: ("model" | "task" | "agent_kind" | "agent_id" | "hour")[]Grouping dimensions. Repeat for multiple dimensions (e.g. group_by[]=task&group_by[]=model). Defaults to model.
Optionallimit?: numberMaximum number of groups to return. Defaults to 50; maximum is 200.
Optionalsince?: stringWindow start as an ISO 8601 timestamp (inclusive). Defaults to 7 days before until.
Optionaltask?: string[]Restrict results to these caller task IDs. Omit to include every task.
Optionaluntil?: stringWindow end as an ISO 8601 timestamp (inclusive). Defaults to now.
Successful response
Mint a principal-bound billing session token