← Measures

Cost per Token

Performance per dollar. The number that decides whether a better model is actually worth using, once the bill arrives.

At a glance

Full name Cost per token (or cost per request, cost per completed task)
What it measures The dollar cost of producing one unit of model output, combining compute cost with throughput
Formula Infrastructure or API cost over a period ÷ total tokens (or requests) processed in that period
Typical range Fractions of a cent to several cents per 1,000 tokens, depending heavily on model size and provider
Used for Comparing models or vendors on efficiency, not just quality, and estimating the running cost of a product feature
Best used for Any decision about which model to use in production, where quality differences must be weighed against cost differences
Pair with Quality metrics specific to the task, since the cheapest model is worthless if it fails the job, and the best model is unaffordable if nobody can use it

Every other metric on this list answers some version of “how good is the output.” Cost per token answers a different, equally important question: what does it cost to get that output at all? A small quality improvement that costs ten times more to generate is often not worth it, and a dramatically cheaper model that is only slightly worse is often the better business decision, a trade-off that only shows up once cost is measured alongside quality rather than instead of it.

What it is and how it’s computed

For API-based models, cost per token is usually set directly by the provider’s pricing, often split into separate input-token and output-token rates, since generating new text is typically more expensive than processing existing text. For self-hosted models, cost per token is derived rather than quoted: total infrastructure spend over some period (GPU rental, electricity, amortised hardware cost) divided by total tokens produced in that period, which links this metric directly back to throughput, since higher throughput on the same hardware directly lowers the cost per token.

A worked example

Suppose a team is choosing between two models for a customer support feature. Model A costs $0.002 per 1,000 output tokens and produces responses averaging 150 tokens, for a cost of $0.0003 per response. Model B costs $0.015 per 1,000 output tokens, roughly seven and a half times more, and produces similarly sized responses, at $0.00225 each. At 1 million responses a month, Model A costs about $300, Model B about $2,250, a difference of nearly $2,000 a month for the same volume. Whether that gap is worth paying depends entirely on how much better Model B’s answers actually are, measured by whatever quality metric fits the task, win rate, hallucination rate, task-specific accuracy, which is exactly why cost per token is never evaluated alone.

Where it matters

This number drives real build-versus-buy and vendor-selection decisions across the industry: which model to call for a given feature, whether to fine-tune a smaller model instead of calling a larger general-purpose one, and whether a quality improvement measured in a benchmark is actually worth its cost at the volume the product expects to run at. It also matters enormously for features that get called many times to answer one user request, such as agentic workflows that chain several model calls together, where the per-call cost compounds quickly across a single task.

Strengths

It is the most direct link between a model’s technical performance and its business viability, turning an abstract quality score into a concrete monthly bill. It is straightforward to compute from either published API pricing or measured infrastructure spend, and it naturally rewards the efficiency gains, better throughput, smaller models that perform just as well, quantisation, that matter enormously at production scale.

Limitations, and the things that go wrong

Cost per token varies by prompt length, output length and provider pricing tiers, so a single average figure can mask large differences across different parts of a product; a feature with long prompts and short answers has a very different cost profile than one with the reverse. Published API pricing also changes frequently as providers compete and improve efficiency, so cost comparisons go stale faster than most quality benchmarks do. And cost per token says nothing at all about quality, which means it is actively dangerous to optimise alone: the cheapest possible model is free to compute but worthless if it cannot do the job, so this metric only means something next to a measure of whether the output was actually good.

When I would use it, and what to pair it with

I compute cost per token for every serious model or vendor comparison, alongside, never instead of, a quality metric appropriate to the specific task. I look at total cost at expected production volume, not just the headline per-token rate, since prompt and output length assumptions change the real-world number substantially. And whenever a cheaper model is being considered to replace a more expensive one, I insist on a direct quality comparison on the actual task first, since the savings are only real if the cheaper model still does the job well enough to use.