API Reference
Log In
API Reference

Get token usage broken down by type

Returns token consumption over time grouped by token type: Input, Output, Cache Read, and Cache Creation. Useful for understanding prompt caching effectiveness — the ratio of Cache Read to Input tokens indicates how much of the prompt is being served from cache.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string | null
string | null
providers
array of strings
providers
integer | null
≥ 0
Defaults to 0
integer
0 to 100
Defaults to 20
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