ApiKeyUsage
An API key's routing usage and spend over a time window, in total, per model and per day.
An identifier for the calling API key that stays the same across calls, for matching usage to keys on your side. It isn't the key and can't authenticate.
key-3kq9x2m7vbpw8n4tz6hc5dStart of the window, Unix seconds
1764547200End of the window, Unix seconds
1767225600totals object
Requests, tokens and model spend for an API key over a time window.
Requests routed
182431204554021181890002120344What the models cost in US dollars, rounded to 6 decimals. Emissary's routing fee isn't included.
12.418273by_model object[]
The usage per model that served the key's requests
claude-haiku-4.5Requests routed
182431204554021181890002120344What the models cost in US dollars, rounded to 6 decimals. Emissary's routing fee isn't included.
12.418273days object[]
The usage per UTC day. Only with granularity=day.
The UTC day, as YYYY-MM-DD
2026-12-01Requests routed
182431204554021181890002120344What the models cost in US dollars, rounded to 6 decimals. Emissary's routing fee isn't included.
12.418273{
"api_key_id": "key-3kq9x2m7vbpw8n4tz6hc5d",
"since": 1764547200,
"until": 1767225600,
"totals": {
"requests": 1824,
"input_tokens": 3120455,
"output_tokens": 402118,
"cache_read_tokens": 1890002,
"cache_write_tokens": 120344,
"spend_usd": 12.418273
},
"by_model": [
{
"model": "claude-haiku-4.5",
"requests": 1824,
"input_tokens": 3120455,
"output_tokens": 402118,
"cache_read_tokens": 1890002,
"cache_write_tokens": 120344,
"spend_usd": 12.418273
}
],
"days": [
{
"date": "2026-12-01",
"requests": 1824,
"input_tokens": 3120455,
"output_tokens": 402118,
"cache_read_tokens": 1890002,
"cache_write_tokens": 120344,
"spend_usd": 12.418273
}
]
}