Amux

Usage and cost analytics

Last updated September 15, 2026

What the usage and cost pages each answer, the available breakdowns, and how they relate to billing.

The console provides two analytics pages, answering different questions:

PageAnswers
UsageHow much was called — request counts and the distribution across token types
CostHow much was spent — how the amount splits across models, keys, and billing components

Both read from the same daily aggregates, so long time ranges stay fast.

Usage

Metrics

MetricMeaning
Total tokensThe sum of input, output, cache read, and cache write
Input / output tokensPrompt tokens and tokens the model generated
Cache read / write tokensTokens served from and written to the cache
Total API requestsNumber of calls in the range

Upstream providers have no uniform "total" field in their usage reports, and their definitions differ, so the total is computed by the platform as the sum of the four figures above.

Breakdowns

  • By model — which models consumed how many tokens
  • By API key — how much each key consumed, the primary way to attribute usage to a project
  • By workspace — visible in the organization view, for comparing departments
  • By member — filterable by member in the workspace view

Cost

Metrics

MetricMeaning
Total costAll spend in the range
Input / output costThe amount for each of the two main components
Other costCache reads and writes, per-request charges, and the remaining components
Average per requestTotal cost ÷ request count
Average per million tokensTotal cost ÷ total tokens, useful for comparing the real cost of different models

Breakdowns

  • By model — which models the money went to
  • By billing component — the share taken by input, output, cache read, cache write, reasoning, per-request, and the rest
  • By API key — attribution to a project
  • By workspace — departmental split in the organization view

"By billing component" is usually the first place to look when optimizing cost: a high share of cache writes often means a low cache hit rate, while a high share of reasoning tokens suggests the reasoning effort is set higher than the task needs.

Relationship to billing

The analytics pages and the billing page use the same definitions: amounts are actual charges.

Anything not charged does not appear here, including calls that returned an upstream error and attempts that failed during routing failover — those costs are absorbed by the platform. See billing overview.

Visibility

RoleScope
Organization owner / adminOrganization-wide, splittable by workspace and member
Organization financeOrganization-wide amounts
Workspace adminAll of their workspace
Workspace memberTheir own only

See roles and permissions.

Attribution is only as fine as your keys

Usage and cost are reported per key, and requests made with the same key cannot be separated afterwards. To distinguish purposes, create a separate key for each from the start.

Calls made with a shared key also record the actual operator, so the playground and similar contexts can still be attributed to a person; calls made through the API, however, can only be attributed to a key.