Architecture
What Arabic Costs You Per Token
· 7 min read · Anton Babayan, Founder
Models are billed by the token, and a token is a fragment of a word. How a particular model cuts Arabic into fragments was decided before you arrived, by whoever assembled its training corpus. For a government service or a bank operating in two languages, that decision sets the bill, the context limit and the response times, without appearing in any of them by name.
Where the fragments come from
A model has a fixed vocabulary, typically tens of thousands of entries, and every piece of text has to be expressed in it. The vocabulary is learned by scanning an enormous corpus and repeatedly merging whichever pair of neighbouring fragments appears most often, until the target size is reached.
The consequence is simple. Sequences common in the training corpus end up as single entries, and sequences that are rare end up spelled out in pieces. When the corpus is mostly English, English words survive whole and Arabic gets spelled out.
Arabic also makes this worse by being more inflected than English. A root carries prefixes and suffixes that English would write as separate words, so an Arabic word is already carrying more grammar, and a vocabulary that was not built with it in mind has no single entry for the combination.
The size of it
The multiplier is not a property of Arabic. It is a property of the model you chose, and that is the part that catches teams out. Published comparisons of the same text across different tokenisers put Arabic anywhere from a few per cent more expensive than English to several times more expensive, depending entirely on which model is measured.
Measurements of tokens per word tell the same story. English tends to sit a little above one. Arabic on an English-centric vocabulary commonly sits around two, and on some widely used models considerably higher.
So the spread between two candidate models can exceed anything you will later recover through prompt engineering or caching. It is worth half a day before the decision and nothing afterwards.
Three bills, not one
Money. Input and output are both priced per token, so a multiplier on tokens is a multiplier on the invoice for the same work.
Context. The window is counted in tokens too. A case file that fits comfortably in English may not fit in Arabic, and the failure arrives as truncation rather than an error, which means the model answers confidently from half a document.
Time. Generation produces one token at a time, so a reply that needs more tokens takes longer to finish. Two users asking the same question in different languages get noticeably different waits, and the slower one is usually the local language.
What to do about it
Measure it on your own text before you choose. Take a few hundred real documents, run them through each candidate's tokeniser, and compare the counts. This is an afternoon and it is the only number that reflects your actual content, which is full of names, numbers and formatting that general comparisons do not contain.
Then prefer a model whose vocabulary was built with Arabic in it. Several exist now, and the gap between those and an English-first model is usually larger than the gap between the English-first models.
Set your limits against the more expensive language. A chunk size, a context budget or a maximum response length chosen while testing in English will behave differently in production in Arabic, and the behaviour will be truncation rather than a warning.
Think in words rather than tokens when you are designing. Tokens are an implementation detail of the model you happen to be using, and they change when you change model, which happens more often than teams expect.
Where this meets the rest of the build
A bilingual system has a longer list of problems than its interface, and this is one of the quieter ones because it shows up as a number on an invoice rather than as a defect anyone can see.
It also belongs in the figure you approve a pilot against, since a pilot run in English and a production system running in Arabic do not cost the same per case, and the difference is discovered after the budget is set.
The short version
Arabic produces more tokens than English for the same meaning, and how many more depends on the model rather than on the language. Measure it on your own documents before choosing, prefer a vocabulary built with Arabic in it, and set every limit against the costlier language, because the failure mode is silent truncation rather than an error.
Frequently asked questions
Why does Arabic cost more than English per sentence?
Models are billed by the token, and a token is a piece of a word rather than a word. The pieces were learned from a training corpus that was mostly English, so English words often survive as one or two tokens while Arabic words get cut into more. You pay per piece.
How much more?
It depends entirely on the model, which is the part that surprises people. Published comparisons across tokenisers put Arabic anywhere from a few per cent above English to several times it for the same text. The spread between models is wider than most teams' entire cost optimisation effort.
Does it only affect the bill?
No. The context window is counted in tokens too, so a document that fits in English may not fit in Arabic. Generation time scales with tokens produced, so Arabic replies are slower. And any limit you set in tokens means something different in each language.
What can be done about it?
Measure it before choosing, on your own text, which takes an afternoon. Then prefer a model whose tokeniser was built with Arabic in it, budget the context in words rather than tokens, and size your limits against the more expensive language rather than the cheaper one.