Skip to content
MyStackCost
Leer en español

Why LLM APIs cost more in languages other than English

The same content often takes more tokens outside English, and LLM APIs charge per token. We measured it in Spanish and explain why it happens and how to cut it.

Published: 7 min read

Teams that build AI features for customers in Spanish, Portuguese, German, Japanese or Hindi often run into the same surprise when the first LLM API invoice arrives: it’s higher than they budgeted. One reason rarely shows up on pricing pages. The same content usually takes more tokens in other languages than in English, and providers charge per token, not per word.

This guide explains why that happens, how much it can add to your bill and what you can do about it. We use Spanish as the main example, with a real measurement, but the same logic applies to any language other than English. To estimate costs with your own numbers, use our LLM API cost calculator.

What a token is

Language models don’t read whole words. They read tokens: chunks of text that can be a full word, part of a word or a punctuation mark. Every model uses a tokenizer, the set of rules that splits text into those chunks.

Tokenizers are built from huge amounts of text, and English usually dominates that text. As a result, common English words tend to take a single token, while many words in other languages get split into several. The less a language is represented in the tokenizer’s training data, the more it tends to get split up.

Why other languages cost more

1. More tokens per word

Long words, rich verb conjugation, accents and special characters all make it more likely that a word gets split into several tokens. With OpenAI’s o200k_base tokenizer, “refund” is one token and its Spanish equivalent, “reembolso”, is two; “Dear user” is two tokens and “Estimado usuario” is four. It doesn’t happen with every word: “configuración” is a single token, just like “configuration”. But across a full text, the split words add up.

The effect is usually larger for languages that don’t use the Latin alphabet, such as Hindi, Thai or Arabic, and for languages that build very long compound words. If your product serves several languages, don’t assume the Spanish numbers below apply to all of them: measure each one.

2. Sometimes, more words to say the same thing

A translation can also come out longer than the English original, especially when the target language uses more articles and prepositions or more elaborate polite phrasing. It depends heavily on the text. In our measurement, the Spanish translation had almost exactly the same number of words as the original (303 versus 306) and only about 4% more characters. Nearly all of the difference came from tokens per word.

When both factors are present, they compound: more words, and more tokens for each word.

Our measurement

Rather than rely on rules of thumb, we wrote a typical customer support reply in English, 306 words long (a delayed order, a partial refund and two options for the customer), and translated it naturally into Spanish: 303 words. Then we counted the tokens in both versions with three public tokenizers:

  • o200k_base, from the tiktoken library: the one OpenAI introduced with GPT-4o.
  • cl100k_base, also from tiktoken: the tokenizer used by GPT-4 and GPT-3.5 Turbo.
  • The Qwen2.5 tokenizer, from an open-weight model, using Hugging Face’s tokenizers library.
Tokenizer English tokens Spanish tokens Tokens per word (English / Spanish) Spanish difference
o200k_base 361 400 1.18 / 1.32 +10.8%
cl100k_base 369 460 1.21 / 1.52 +24.7%
Qwen2.5 380 468 1.24 / 1.54 +23.2%

With o200k_base, the Spanish version needed 39 more tokens, 10.8% more. With the other two tokenizers, the gap grew to nearly a quarter. We counted words as chunks separated by spaces, so English contractions like “I’m” and “hasn’t” count as one word.

Treat these numbers as a reference point, not a rule. It’s a single text of a single type: casual chat, product specs or legal contracts can produce different ratios, and other languages will produce different ratios again. Also, each provider uses its own tokenizer. Anthropic, Google and others don’t use o200k_base, so the same text may come out to more or fewer tokens on their models. Newer tokenizers, trained on more non-English text, tend to shrink the gap, as the comparison between o200k_base and cl100k_base shows.

A worked example with our numbers

Say a chatbot answers 100,000 requests a month with replies like our sample, using Claude Sonnet 5.5 (US$10 per million output tokens). Claude uses its own tokenizer, so we use the two tiktoken tokenizers we measured as reference points:

If the tokenizer behaves like… English Spanish Monthly difference
o200k_base 36.1 million tokens: US$361 40 million tokens: US$400 US$39 (+10.8%)
cl100k_base 36.9 million tokens: US$369 46 million tokens: US$460 US$91 (+24.7%)

For example, with o200k_base: 100,000 replies × 400 tokens = 40 million tokens, and 40 × US$10 = US$400 a month, compared with 100,000 × 361 = 36.1 million tokens, or US$361, in English.

In this example, answering in Spanish costs US$39 to US$91 more per month, or US$468 to US$1,092 a year, with the same model and the same volume. And that’s only output. If the system prompt, conversation history and reference documents are also in Spanish, input tokens grow by a similar proportion. The exact ratios depend on the tokenizer, the language and the type of text, which is why it pays to measure them with your own data.

Price per token isn’t price per word

This matters when you compare providers. Two models with the same price per million tokens can cost different amounts for the same non-English text, because their tokenizers split it differently. In our measurement, the same Spanish text came to 460 tokens with cl100k_base and 400 with o200k_base: 13% fewer just from a different tokenizer. A model with a slightly higher price per token but a more efficient tokenizer for your language could end up cheaper in practice.

The only way to know is to measure. Send the same text in your language to each model you’re evaluating and compare how many tokens each one reports. Several providers offer tools or API endpoints that count tokens before you send a request.

Six ways to reduce costs in other languages

1. Measure your real token counts

Before optimizing anything, log how many input and output tokens your typical requests use in each language. With that number, the LLM API cost calculator gives you a realistic estimate instead of one based on English averages.

2. Write the system prompt in English

The system prompt is sent with every request. If it’s written in English and you ask the model to reply in the user’s language, you pay for fewer input tokens on every call. Test the quality before you switch: in most cases, current models reply just as well in Spanish or other major languages when the instructions are in English.

3. Ask for concise answers

Output tokens are the most expensive ones, and many languages lean toward elaborate politeness: long greetings, formal openings and sign-offs that restate the question. Asking for direct answers in the system prompt cuts output without losing warmth.

4. Don’t translate twice

Some systems generate content in English and then translate it with a second API call. That means paying twice: once for the generation and once for the translation. Generating directly in the target language is usually cheaper.

5. Compare models with your own text

Because tokenizer efficiency varies, run the same set of texts in your language through the models you’re considering. Compare the cost per reply, not just the price per million tokens.

6. Apply the general techniques

Picking the right model for each task, prompt caching, batch processing and caching frequent answers work the same way in any language. We explain them with worked examples in our guide How to reduce LLM API costs.

What it means for a customer support chatbot

If your chatbot serves customers in a language other than English, the AI cost per conversation will be higher than English-based examples suggest. Even so, it’s usually a small share of the total cost compared with the platform and agent time. You can check this in our AI chatbot ROI calculator by entering the token counts you measured in your language.

Conclusion

Using AI in languages other than English doesn’t have to be expensive, but it should be budgeted with your own data. The same content usually needs more tokens than in English (in our Spanish measurement, 11% to 25% more depending on the tokenizer), and that gap is multiplied by every request. Measure your real token counts, write the system prompt in English, ask for concise answers and compare models with your own text. With those adjustments, the gap shrinks and your budget stops producing surprises.