v2

latestOpenAPI 3.1.02026-08-05267431678.1 KB
billing
billing

Get Billing Usage Requests By Model

Return full-range request usage grouped by model.

Args: start_date: Optional inclusive lower bound on request creation time. end_date: Optional inclusive upper bound on request creation time. full_history: Whether to ignore start_date and begin at first usage. auth: Authenticated caller context.

Returns: Aggregated usage rows grouped by model.

Raises: HTTPException: If date parameters are invalid or usage cannot be loaded.

get/billing/usage/requests-by-model

Query parameters

start_datestring nullable

Filter: created_at >= (ISO); ignored when full_history=true

Filter: created_at >= (ISO); ignored when full_history=true

end_datestring nullable

Filter: created_at <= (ISO); with full_history, caps the window

Filter: created_at <= (ISO); with full_history, caps the window

full_historyboolean

If true, from first request through end (or now); ignores start_date

If true, from first request through end (or now); ignores start_date

Response

Successful Response