Get model usage statistics
Get aggregated model usage statistics with optional date range and time series.
Authentication
AuthorizationBearer
API key or Clerk session token
Query parameters
startDate
Start date (YYYY-MM-DD)
endDate
End date (YYYY-MM-DD)
period
Convenience preset (today, yesterday, last_7_days, last_30_days, current_month, last_month, current_year)
granularity
Time series granularity (hour, day, week, month)
modelConfigId
Filter by model config ID
Response
Model usage statistics
meta
summary
usageByModel
timeSeries
Errors
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error
503
Service Unavailable Error