Skip to content
Eldan.ai
Glossary

Token

A token is the unit of text a model reads and writes: usually a word fragment, a whole short word or a punctuation mark.

Providers count and bill in tokens, and context limits are measured in them. English averages roughly four characters per token, while Russian text usually needs more tokens per word.

Models do not see letters or words. A tokenizer first cuts your text into pieces from a fixed vocabulary, and the model works on the numbers for those pieces. The same sentence can have a different token count on different models, because each provider uses its own tokenizer.

Common mistake. Estimating cost by counting words. Code, numbers and non-English text often split into many more tokens than the word count suggests.

In practice. Count tokens with the provider’s own tokenizer or the usage field in the response, and log input and output counts per request. Output tokens usually cost more and arrive more slowly than input tokens.

Where this is taught

  • Context window

    The context window is the maximum number of tokens a model can take into account in one request, covering the prompt, the conversation and, depending on the provider, the reply. It is working memory for a single call, not long-term memory: anything you want the model to use has to be sent again every time.

  • Prompt caching

    Prompt caching is a provider feature that reuses the work done on the unchanging beginning of a prompt, so repeated prefixes are billed at a lower rate and answered faster. It only helps when stable content such as instructions and examples comes first and varies last. Minimum lengths and lifetimes differ between providers.

Cite this page

Eldan Abdrashim. "Token." Eldan.ai, 23 November 2026. https://eldan.ai/glossary/token.

The date you read it is added when you copy.

BibTeX

@online{abdrashim2026token,
  author = {Eldan Abdrashim},
  title = {Token},
  organization = {Eldan.ai},
  date = {2026-11-23},
  year = {2026},
  month = nov,
  url = {https://eldan.ai/glossary/token},
  langid = {english}
}

All terms

Section: Models and context. Last updated 23 Nov 2026.