sessions
Cost By Model
Cost + token totals grouped by the model that produced them.
Aggregates session_model_usage rows (one per session × model),
so a session that used multiple models splits its cost correctly.
Filters on session_records.last_activity_at to scope by
range — requires a join back to the session row.
Request Parameters
- range (Literal): Time window: 24h, 7d, 30d, or all (default: 30d).
GET
Cost By Model
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Time window filtered on session_records.last_activity_at: 24h, 7d, 30d, or all.
Available options:
24h, 7d, 30d, all Example:
"30d"
Response
Successful Response
Cost By Model