Query your daily usage activity — requests, tokens, and DA spend per model.
Pull your account's usage activity — one row per day, model, and provider endpoint, with request counts, token totals, and DA spend.
Authenticate with your API key: Authorization: Bearer $OPENDUNES_API_KEY. Returns the last 30 days by default.
| Parameter | Type | Description |
|---|---|---|
date | string | Limit to a single day (YYYY-MM-DD) |
| Field | Type | Description |
|---|---|---|
date | string | Day of the activity (YYYY-MM-DD) |
model | string | Model slug |
model_permaslug | string | Permanent model slug |
endpoint_id | string | Provider endpoint identifier |
provider_name | string | The lab serving the model |
prompt_tokens | integer | Input tokens for the day |
completion_tokens | integer | Output tokens for the day |
requests | integer | Request count for the day |
usage | number | DA spent for the day on this model |