Skip to main content

Parameters

start
str
ISO date ("YYYY-MM-DD"). Inclusive. Omit for no lower bound.
end
str
ISO date. Inclusive. Omit for no upper bound.
format
str
default:"\"models\""
"models" returns a typed UsageResponse; other values pass through to the underlying serializer.

Response shape

The exact response shape is server-defined; the SDK surfaces whatever list-of-rows the server returns. Use to_dicts() for the raw shape, to_df() for analysis.

Common patterns

Post-call audit — confirm a specific call actually billed:
Monitoring feed — periodically poll for use in dashboards / alerts: