The same sentence in English, Spanish, Hindi, and Japanese. Predict the token ratio on o200k_base for each.
Take the same semantic content (say a 100-word English passage) and translate it to Spanish, Hindi, and Japanese. Tokenize each translation with o200k_base. Predict the approximate ratio of token counts for each language relative to English (English baseline = 1.0). Then briefly explain why these ratios improved on o200k_base versus cl100k_base.
On o200k_base: English 1.0, Spanish ~1.2, Hindi 2-3, Japanese 1.5-2. Better than cl100k_base because o200k_base added dedicated CJK and Devanagari tokens. Validate with tiktoken on real samples.
Imagine four people from different countries trying to send the same message using a shared shorthand notebook. The notebook was designed mostly with English in mind. The English speaker writes the message in a few quick squiggles. The Spanish speaker is also pretty fast because their alphabet is similar. The Hindi and Japanese speakers find that their writing systems are not really in the notebook, so they have to spell things out in tiny pieces, which takes much more space. A newer notebook (o200k_base) added shortcuts for Hindi, Japanese, and Chinese characters, so they now spell things out in fewer pieces than before, but they are still slower than English. The numbers: English baseline of 1, Spanish about 1.2, Hindi about 2.5, Japanese about 1.7. These ratios determine how much you pay per message in each language.
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.
Lead with the ratios: English 1.0, Spanish ~1.2, Hindi 2-3, Japanese 1.5-2 on o200k_base. Explain that o200k_base doubled vocabulary to 200K and allocated heavily to multilingual coverage (dedicated Devanagari and CJK tokens). Quote the improvement vs cl100k_base (Hindi halved, Japanese dropped from 3x to ~1.7x). Cover the operational implications: per-language cost multipliers, context-window math, the fairness angle. Close with validation discipline: tiktoken on real samples per language.
Real products, models, and research that use this idea.
- tiktoken.get_encoding('o200k_base') on Hindi medical text in 2026 returns roughly 2.5 tokens per word versus 1.3 for English on the same content domain.
- OpenAI's GPT-4o tokenizer announcement explicitly highlighted improved multilingual fertility as a design goal, citing CJK and Devanagari as primary targets.
- Anthropic's Claude family tokenizer is not published but empirically shows similar non-English fertility patterns; running messages.count_tokens on multilingual samples reveals the per-language cost.
- Llama 3+ and Qwen 3.5 ship with vocabularies designed for stronger non-English coverage than OpenAI's tokenizers; teams with heavy Hindi or Mandarin workloads sometimes route to those open-weight models for cost reasons.
What an interviewer would ask next. Try answering before peeking at the approach.
QYour service expands to Tamil and Bengali users. What do you expect to happen to per-ticket cost?
QHow would code-mixed content (Hinglish: Hindi+English in the same message) tokenize compared to pure Hindi?
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.
Assuming a single 'tokens per word' multiplier applies across all languages, when fertility varies 1.0 to 3.0 within o200k_base alone.
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.