Token
A chunk of text — often part of a word — that a language model reads and generates.
Reviewed May 7, 2026
What it is
Models do not process characters or whole words. Text is split into tokens by a tokenizer. A common English word may be one token; a rare word, a number or a piece of code may be several. Punctuation and whitespace can also form tokens.
Why it matters
Token counts determine context limits and API cost. A long document may consume thousands of tokens before the model produces any output. Tokenisation also explains why models sometimes struggle with character-level tasks such as counting letters in a word.
Practical note
Exact token counts depend on the model and tokenizer. Use the provider's tokenizer or a compatible library when budgeting context. A rough English estimate of four characters per token is useful for planning, not for billing.
Keep learning
Concepts are easier to remember when you apply them. The foundations path connects this term to practical exercises.
AI foundations path →