A low token price is a purchasing decision. A low cost per completed task is an engineering decision. The two diverge whenever output has to be re-generated, truncated, reformatted or abandoned because it arrived too slowly. High-quality tokens cost more at the margin and less in total.
The full cost stack
Five lines matter more than the rate card:
- Billable tokens per attempt. Input, cached input and output, each with its own rate.
- Attempts per accepted answer. The retry multiplier. A 15% failure rate with full retries adds roughly 18% to effective cost before any human review.
- Output length discipline. Verbose models bill more and often need post-processing, which bills again.
- Latency abandonment. Users who leave before the first token or abandon mid-stream are cost without revenue.
- Review time. Every ungrounded or malformed answer that reaches a human is the most expensive token in the system.
Key takeaway Effective cost per accepted answer = (billable tokens × price) × attempts per success + review cost. The last two terms are where quality lives.
Why quality reduces cost
Quality is not a premium feature bolted onto inference. It changes the distribution of outcomes. A serving stack that holds format and groundedness more reliably shortens the retry tail; a stack that keeps time to first token low reduces abandonment; one that respects output budgets reduces gratuitous length. All three reduce the numerator and the denominator at once.
The counterintuitive result: a provider charging 20–30% more per token can be cheaper per task if it cuts attempts per success by a third. Procurement teams that compare only rates systematically under-buy quality.
Where caching changes the math
Long-context workloads — agents with tool schemas, retrieval-augmented generation with fixed instructions — spend most of their input budget on repeated context. Cached input pricing can reduce that line by an order of magnitude, but only if the serving stack manages the KV cache deliberately. Providers that treat caching as an afterthought pass the full cost through.
The same engineering that makes caching efficient — separating prefill from decode, managing KV transfer — is what makes disaggregated serving worthwhile in the first place.
Model count is a cost line too
Every additional model in production carries its own evaluation suite, prompt variants, monitoring thresholds and on-call knowledge. Teams that run six models for six surfaces usually pay more in coordination than they save in per-token pricing. Consolidation is covered in Fewer Models, Better Systems.
A simple model to run before signing
| Input | Example |
|---|---|
| Monthly accepted answers | 2,000,000 |
| Attempts per success | 1.2 |
| Average billable tokens per attempt | 2,400 in / 600 out |
| Blended price per million | From the provider’s rules |
| Review minutes per 1,000 answers | From your support data |
Multiply, then repeat for each candidate with its own retry and review assumptions. The provider with the best rate card rarely wins this table.
What to negotiate instead of price
Ask for committed quality bands and metering rules rather than volume discounts: a p95 latency floor, a failure-rate ceiling, cached-input treatment, and clarity on billing for truncated output. Those terms move the cost stack more than a percentage point off the rate.
FAQ
Are high-quality tokens always worth the premium?
No. For low-stakes, high-volume classification, throughput matters more than polish. The premium pays where errors trigger retries, human review or customer-facing failure.
How do we estimate attempts per success before a pilot?
Use your current provider’s logs if you have them. If not, run a two-week pilot on real traffic and instrument acceptance at the schema level, not by eyeballing outputs.
Does caching apply to generated output?
Rarely. Caching pays on repeated input context — instructions, schemas, retrieved documents. Treat output caching as an application-layer decision.