All posts

Hindi LLM token cost: why the same chatbot costs more in Indic languages

Hindi and other Indic languages split into many more tokens than English, so the same conversation costs more and fits less context. How to measure the gap on your own text and what to do about it.

CodeKrypt 5 min read

If you are pricing an AI chatbot for Indian users, there is a line in the estimate that English-first calculators miss: the same conversation, in Hindi, is a bigger bill. Hindi LLM token cost is higher because LLM APIs charge by the token, and a tokenizer built mostly around English breaks Devanagari text into many more pieces than it breaks the equivalent English sentence.

This post explains why that happens, how to measure the gap on your own content, and the levers that bring it down. It does not give you a single multiplier, because there isn't an honest one: the gap depends on the model.

Why does Hindi use more tokens than English?

A tokenizer splits text into sub-word pieces from a fixed vocabulary learned from its training data. Common English words often map to a single token. Scripts that were rare in that data get split into smaller fragments, down to individual bytes in the worst case. Researchers measure this with fertility: the average number of tokens needed per word. Higher fertility means more tokens for the same meaning.

Two published results show the shape of the problem:

Treat those figures as evidence of direction and rough order of magnitude, not as today's numbers. Both come from tokenizers that have since been superseded in some models, and vendors have been improving multilingual coverage. The only number that matters for your budget is the one you measure.

What does the extra token count actually cost you?

Tokens drive three things at once:

EffectWhat happens in a token-heavy language
Input and output costEvery prompt, reply and retrieved passage bills for more tokens
Context budgetThe context window fills sooner, so less history or retrieved text fits
LatencyOutput is generated token by token, so longer token sequences take longer to stream

The third one is easy to miss. If a Hindi answer needs several times the output tokens of its English equivalent, the user waits longer for the last word even at the same tokens-per-second. See LLM latency and time to first token for how to separate those effects.

Notice also that your system prompt is a fixed cost on every request. If you write it in Hindi, you pay the token premium on it every time. Instructions written in English usually work fine even when the user conversation is in Hindi, and that is a cheap thing to test.

How do you measure Indic token cost on your own text?

Do this before you commit to a model or a price.

  1. Collect a real sample. Take 100 to 200 genuine user messages and assistant answers in each language you will support: English, Devanagari Hindi, and romanised Hinglish if your users type it.
  2. Count tokens with the target model's tokenizer. Use the tokenizer or token-counting endpoint of the model you will call, not a stand-in. Counts from one vendor's tokenizer do not transfer to another's.
  3. Compute tokens per message and the ratio to English for the same content, separately for input and output.
  4. Multiply by the provider's current price for input and output tokens to get a cost per conversation.
  5. Check quality alongside cost. A cheaper tokenizer on a model that answers worse in Hindi is not a saving. Run your own eval set per language; see LLM evals in CI.

Which levers reduce the Hindi token bill?

LeverWhat it doesTrade-off
Compare models by measured tokensDifferent tokenizers give different counts for the same Hindi textCheapest per-token model is not always cheapest per conversation
English system prompt and instructionsRemoves the Hindi premium from the fixed part of every requestTest that instruction-following holds for Hindi users
Shorter answers by designFewer output tokens, which are usually priced above input tokensMust not cut useful content; set limits per use case
Retrieve less, retrieve betterSmaller retrieved context per requestNeeds good retrieval; see RAG hybrid search and reranking
Caching and routingApplies the usual cost levers to the larger token baseSee how to reduce LLM API costs
Romanised input where acceptableLatin script often tokenizes more compactlyA product and UX decision; users and downstream tools may expect Devanagari

Switching to a self-hosted model with a better Indic tokenizer is another option, but it only pays off at volume. The method for that decision is in self-hosted LLM vs API break-even.

How should this change your chatbot budget?

Do not take an English cost-per-conversation and assume it carries over. For an Indian-language product, the budget should:

For the other costs around an Indian chatbot, such as build tiers and running costs, see AI chatbot development cost in India and voice AI agent cost in India.

What should you do next?

Run the five-step measurement above on a sample of your real traffic before you pick a model. It takes an afternoon and replaces a guess with a number. If you are planning an Indian-language assistant and want to sanity-check the model choice and the budget, our AI chatbots page describes how we approach these builds.

CodeKrypt avatar

CodeKrypt

Drafted by CodeKrypt's AI writing pipeline, built and maintained by our engineers, under fixed rules on sources and claims. How we write

Frequently asked questions

Does Hindi cost more than English on an LLM API?
Usually yes. LLM APIs bill per token, and tokenizers trained mostly on English text split Devanagari into many more tokens for the same meaning. Research on commercial APIs found that the token count for equivalent content varies widely by language, so speakers of many languages pay more. The size of the gap depends on the model and tokenizer, so measure it on your own text.
How many more tokens does Hindi use than English?
It depends on the tokenizer. The SUTRA paper reported that the tokenizers of Llama-2, Mistral and GPT-4 consumed 4.5x to 8x more tokens than English for Indian languages such as Hindi, Gujarati and Tamil. Those were the tokenizers at that paper's time of writing; newer models may differ, which is why you should count tokens with the tokenizer of the model you will actually call.
Is romanised Hinglish cheaper than Devanagari Hindi?
Often, because Latin-script text tends to tokenize more efficiently. But it is a product decision, not just a cost one: users, search, and downstream tools may expect Devanagari. Test both on your model and compare cost and answer quality together.
Does token cost also affect context length?
Yes. Context windows are measured in tokens, so a conversation or document in a token-heavy language fills the window sooner. That affects how much chat history, retrieved context and instructions you can include per request.

Related reading

Chat on WhatsApp