Query request volume, token usage, and DA spend via the activity API.
The activity API gives you daily usage data for your account — requests, tokens, and DA cost — rolled up per day, model, and provider endpoint.
Returns the last 30 days by default. Each activity row includes:
| Field | Description |
|---|---|
date | Day of the activity (YYYY-MM-DD) |
model | Model slug used |
model_permaslug | Permanent model slug |
endpoint_id | Provider endpoint identifier |
provider_name | The lab serving the model |
prompt_tokens | Prompt tokens for the day |
completion_tokens | Completion tokens for the day |
requests | Request count for the day |
usage | DA spent for the day on this model |
| Param | Description |
|---|---|
date | Limit to a single day (YYYY-MM-DD) |
Rows arrive grouped per day × model, so account rollups are a reduce away:
The Analytics page visualizes the same data with filterable charts, model breakdowns, and a downloadable CSV export.