Last updated: 2026-04-11

Usage & Export

API reference for usage records and CSV export.

List Usage

GET /usage

Paginated usage records with filters.

ParamTypeDescription
keystringFilter by key hash
providerstringFilter by provider
modelstringFilter by model name
fromstringStart date (ISO 8601)
tostringEnd date (ISO 8601)
pagenumberPage number (default: 1)
limitnumberItems per page (default: 50, max: 200)

Export CSV

GET /usage/export

Export usage records as CSV. Accepts the same filter parameters as the list endpoint.