A token is the smallest unit of text a language model works with - usually a word fragment, a short whole word, or a punctuation mark.
Before an LLM can process text, it is broken down into tokens (tokenization). An English word typically corresponds to roughly 0.75 tokens, while a German word – due to longer compound words and umlauts – often takes slightly more.
Both the context window (how much text a model can process at once) and API usage costs are typically measured in tokens – providers usually charge separate rates for input tokens (the text you send) and output tokens (the generated response).
Because tokens don't map 1:1 to words or characters, the actual amount of text that fits in a context window can vary depending on language and content type.


