Diagnose the reasoning error in 'a bigger tokenizer vocabulary always cuts our token bill'
Click any words you think contain an error. Click again to unmark.
Fewer tokens does not mean fewer dollars. Cost = tokens × price-per-token, and different models have different per-token prices.
Imagine two grocery stores selling the same fruit but in differently sized boxes. One store packs three apples per box, the other packs four. The four-apple box has fewer boxes per pound of apples, but each box might also cost more. You cannot tell which store is cheaper just by counting boxes; you have to multiply boxes by box price to get dollars. Tokens are the boxes. The new model packs more text per token, so you have fewer tokens, but each token may also cost more. Always do the multiplication on the real price sheet before celebrating the box count.
Detailed answer & concept explanation~8 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.
3 min: write the cost formula, identify the price-per-token term as the missing factor, debunk the tokens-equals-dollars equivalence, and prescribe dollars-per-byte as the migration metric.
Real products, models, and research that use this idea.
- GPT-4o uses the o200k_base tokenizer (200k vocab) vs cl100k_base on GPT-3.5/4, encoding the same text in ~10-30% fewer tokens on English but with a higher per-token output price.
- Anthropic's tokenizer is similar in size to OpenAI's older models, so a Claude-to-GPT-4o migration changes both the tokenizer ratio and the price simultaneously; the net cost depends on language and direction.
- DeepSeek-V3 uses a 100k vocab optimized for English+Chinese and prices well below frontier US models, so its win is dominated by the price ratio, not the tokenizer ratio.
- Llama-3 vs Llama-2 swapped to a 128k vocab from a 32k vocab, reducing token counts ~15-20% on most corpora but the self-hosted cost depends on serving infrastructure, not the tokenizer alone.
- Most provider price sheets in 2026 list per-million-token prices distinctly for input and output and for prompt-cache reads, all of which interact with tokenizer changes differently.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy do providers tend to charge more per token on models with richer tokenizers?
QHow should you decompose a tokenizer migration into input and output components for cost analysis?
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.
Equating fewer tokens with lower cost without checking that the per-token price held constant. A new model with a richer vocabulary typically prices each token differently; the comparison must be dollars per unit text, not tokens per unit text.
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.