Token
A token is a processing unit for text, often a word, word fragment or punctuation mark. Tokens affect cost, speed and context size.
A token is a unit into which a model divides text for processing. Depending on the tokenizer, it may represent a word, part of a word, punctuation or another character sequence.
Why models work with tokens instead of characters or words
Tokenisation maps text to a limited vocabulary of numerical identifiers. This allows the model to compose unfamiliar words from smaller existing units.
Different models may tokenise the same text differently.
Why tokens are decisive for cost and speed
Many language-model APIs price input and output tokens separately and at different rates. Long documents therefore increase usage and cost even when the actual question is short.
The number of generated tokens also affects response time because autoregressive models produce output step by step. Reliable estimates depend on the tokenizer of the specific model version in use.
The connection to the context window
A language model’s context window is measured in tokens. Available capacity must account for input, supplied context and, depending on the service, potential output.
A realistic token estimate shows whether documents or histories fit into one request, need to be divided or require a different architecture.
Related terms
Related terms
Context Window
The context window is the maximum amount of text, measured in tokens, that a language model can process at once in a single request.
View term
Large Language Model (LLM)
A large language model is an AI model trained on large amounts of text that processes language patterns to generate, summarise and edit text.
View term
Related topics
Related topics
Private AI Infrastructure
We determine whether private AI infrastructure is appropriate for your use case and which data, security and operational questions need to be resolved first.
View overview
Related services
Related services
Infrastructure
For AI, automation and software systems with clear technical requirements for data, availability and operations.
View overview
What would you like to assess or build?
Briefly describe the situation, your objective and the systems involved. We will respond with a technical assessment and a practical next step.