Two providers both advertise $0.50 per million output tokens, why is that comparison still dishonest?
A finance leader hands you a spreadsheet ranking three LLM providers by published $ per million output tokens. Explain why the ranking is misleading even when the prices are accurate, and describe the comparison you would run instead. Cover the role of tokenizer family, the typical magnitude of the gap, and the unit that actually matters to a buyer.
Each provider's tokenizer turns the same text into a different number of tokens. $/M-token rates compare only within a family; across providers, normalize to a shared source corpus.
Imagine three coffee shops all charging $5 per cup. Sounds equal, until you notice their cups hold different amounts: 8 oz, 12 oz, and 16 oz. The dollar per cup price tells you nothing about who is cheapest per ounce of coffee. LLM tokens work the same way. Each provider has its own cup size, that is what a tokenizer is, and the same paragraph of text needs more or fewer cups depending on whose cup you use. To compare honestly you have to convert back to ounces, which is to say, to the actual amount of text. Tokenize the same paragraph through each provider's tokenizer, count the cups you got, multiply by the per-cup price, and only then can you say who is cheaper.
Detailed answer & concept explanation~7 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
30 sec: tokens are vocabulary-specific, not a universal unit. 1 min: typical gap is 10-30 percent on English, larger on code and non-English. 1 min: output dominates because it is priced higher and is the verbose direction. 1 min: procurement workflow, tokenize same corpus through each tokenizer, multiply by rate, compare dollars.
| Comparison unit | Tokenizer-independent? | What it tells you | When to use |
|---|---|---|---|
| $/M tokens (headline) | No, family-specific | Provider's pricing within its own unit | Within-family rate changes only |
| $/M characters input + $/M characters output | Yes | Honest cross-provider total cost | Procurement decisions |
| $ per representative request | Yes (corpus-fixed) | Practical real-traffic cost | Pre-purchase load testing |
| $ per delivered useful answer | Yes (semantic) | What the buyer actually cares about | Production cost dashboards |
Real products, models, and research that use this idea.
- OpenAI's tiktoken library is published precisely so procurement teams can count tokens for their corpus before signing a contract.
- Anthropic publishes a count_tokens endpoint for the same purpose; treat 'we estimated' as a procurement red flag.
- On Japanese text, Llama-2 (older tokenizer) used roughly 2x more tokens per character than GPT-4 (cl100k), making nominally 'cheaper' Llama hosted endpoints more expensive on Japanese workloads.
- Anthropic's Claude tokenizer compresses JSON and code competitively with OpenAI's o200k; that matters for tool-use workloads where structured output dominates.
- When DeepSeek-V3 was released, third-party providers measured a tokenizer that was 15-20 percent more verbose than GPT-4 on English, which changed the effective cost comparison meaningfully.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhat workloads see the largest tokenizer-driven cost variance across providers?
QAnthropic and OpenAI both offer prompt caching. Does that change the procurement math?
QIf two providers happen to use the exact same tokenizer (e.g., a Mistral-derivative and Mistral itself), is $/M tokens then directly comparable?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating $/M tokens as a universal price unit across providers. Tokens are vocabulary-specific; the same sentence is a different number of tokens at each provider. Always normalize to a tokenizer-independent unit before comparing.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.