v1
latestOpenAPI 3.1.02026-08-04134182237.9 KBGet Usage Stats
Get comprehensive usage statistics with time series.
Query parameters
Time period: last_day, last_week, last_month, last_3_months, last_6_months, last_90_days, last_year, current_month, custom
Time period: last_day, last_week, last_month, last_3_months, last_6_months, last_90_days, last_year, current_month, custom
Start date for custom period (YYYY-MM-DD)
Start date for custom period (YYYY-MM-DD)
End date for custom period (YYYY-MM-DD)
End date for custom period (YYYY-MM-DD)
Group by: hour or day
Group by: hour or day
Filter by specific API key ID
Filter by specific API key ID
Filter by specific model
Filter by specific model
When true (and no api_key_id filter), include per-key breakdown in one response.
When true (and no api_key_id filter), include per-key breakdown in one response.
Force-drain the Redis usage stream so pending events land in usage_logs before reading. Use when the user clicks refresh.
Force-drain the Redis usage stream so pending events land in usage_logs before reading. Use when the user clicks refresh.
Response
Successful Response