What gets measured
Tokonomics captures the following metrics for every LLM call:| Field | Description |
|---|---|
input_tokens | Tokens in the prompt sent to the model |
output_tokens | Tokens in the completion returned by the model |
cache_read_tokens | Tokens served from the provider’s prompt cache (lower cost) |
cache_creation_tokens | Tokens written to the provider’s prompt cache |
cost_usd | Total cost in USD, calculated with 8-decimal precision |
latency_ms | Round-trip latency to the upstream provider in milliseconds |
0.
Usage events
Each proxied call produces a UsageEvent — a structured record stored in your account and available via the API. Every UsageEvent contains:id— UUID uniquely identifying this eventmodel— the model name as reported by the provider (e.g.gpt-4o,claude-3-5-sonnet-20241022)provider— the provider slug (e.g.openai,anthropic)input_tokens— prompt token countoutput_tokens— completion token countcache_read_tokens— cache read token countcache_creation_tokens— cache creation token countcost_usd— calculated cost in USDlatency_ms— upstream latency in millisecondstags— key-value pairs attached via metering headerscreated_at— ISO 8601 timestamp of when the event was recorded
Spend analytics
Tokonomics aggregates your UsageEvents into three levels of reporting so you always have the right level of detail:Monthly summary
Total spend for the current billing month and what percentage of your configured budget has been used.
Daily trends
Day-by-day spend for up to the past 90 days, useful for spotting cost spikes and correlating spend with deployments.
Per-tag breakdowns
Spend grouped by any tag key you attach — for example, total cost per team, per feature, or per tenant.