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

startDatestringOptional

Start date (YYYY-MM-DD)

endDatestringOptional

End date (YYYY-MM-DD)

periodstringOptional

Convenience preset (today, yesterday, last_7_days, last_30_days, current_month, last_month, current_year)

granularitystringOptional

Time series granularity (hour, day, week, month)

modelConfigIdstringOptional
Filter by model config ID

Response

Model usage statistics
metaobject
summaryobject
usageByModelmap from strings to objects
timeSerieslist of objects

Errors

401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error
503
Service Unavailable Error