Skip to content

AI basics

What is a token in AI?

A token is a small piece of text, such as a word, part of a word or a punctuation mark, into which a language model splits text before processing it; context windows and prices are measured in tokens.

Also: Tokens · Tokenization · Input tokens · Output tokens

Language models do not read text the way people do. A so-called tokenizer first splits every text into tokens. Common words are often a single token, while rare or long words are broken into several pieces. Long compound words, which are frequent in German, therefore usually consist of several tokens.

Why tokens matter

  • Cost: most model providers charge per million tokens, split into input and output. Output tokens are usually more expensive, and prices vary considerably between models.
  • Context window: how much text a model can consider at once is measured in tokens. Prompt, attachments, history and answer all share this budget (context window).
  • Answer length: many applications cap the number of output tokens per answer.

Rule of thumb

How many tokens a text has depends on the model and the language. For English, a rough rule of thumb is about four characters per token; German text tends to need somewhat more tokens. Only the count from the specific tokenizer is reliable.

Example

You attach a 30-page PDF and ask a question. The model processes the PDF’s content, your question and any previous history as input tokens and produces the answer as output tokens. If you ask a follow-up in the same chat, the history is sent again. Long conversations with large attachments therefore cost more than short, focused questions.

How token prices translate into monthly costs is shown in our article on per-seat vs. usage-based AI costs.

Glossary

Related terms

Terms that often come up together.

Next step

From definition to practice.

Search, chat, agents and tasks in one platform. Hosted in Frankfurt, every model processed in the EU.

No per-seat fee · From €399 a month · Cancel monthly