Token
The smallest unit of text that a language model works with. One token is roughly ¾ of an English word or 1–2 characters for Russian.
Why Models Work with Tokens, Not Letters
LLMs do not read text letter by letter. Text is chopped into pieces — tokens — and each is assigned a numerical ID. Only after this can the model's math 'see' the text.
The process of chopping is called tokenization.
How Much Text Fits
| Text | Tokens (approximately) |
|---|---|
cat |
1 |
кот |
1–2 |
hello world |
2 |
привет мир |
3–4 |
Russian is often 'more expensive' than English: Cyrillic words are longer, and tokenizers are primarily trained on English.
Why This Is Important
- The context window is measured in tokens.
- API cost depends on the number of tokens.
- Service limits are expressed in tokens.