API Reference
Log In
API Reference

Get tokens per minute by provider

Returns how many tokens per minute each provider processed, per time bucket, over the date range. The bucket size grows with the length of the range, from a minute to a month; for buckets wider than a minute the figure is the average over the minutes of the bucket that had calls. For one figure per group over the whole period, a far smaller answer over a long date range, use get_tokens_per_minute_aggregated, which does not take providers, tokenType.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string | null

Start of the date range, ISO 8601 in UTC, for example 2026-01-01T00:00:00Z. Defaults to 24 hours before endDate.

string | null

End of the date range, ISO 8601 in UTC. Defaults to now.

providers
array of strings

Keep only these providers. Repeat the parameter for each provider. A single value is currently rejected with a 400, so to filter on one provider pass it twice.

providers
string
enum

Which tokens to count: INPUT, OUTPUT, REASONING, CACHED or TOTAL. Defaults to TOTAL.

Allowed:
integer | null
≥ 0
Defaults to 0

Zero-based page of _embedded.items to return. Defaults to 0.

integer
≤ 100
Defaults to 20

Number of _embedded.items per page, from 1 to 100. Defaults to 20.

string

Hashed id of the team to answer for. Optional. With a user token it may be any team the user belongs to; without it the user's default team answers. An API key always answers for its own team, and naming any other team is refused with 403.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
API Key
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json