What is Token?
A Token is the basic unit of text an AI language model processes, roughly corresponding to a word, part of a word, or punctuation mark, rather than a whole sentence or document. Model pricing, context window limits, and processing speed are all measured in tokens rather than words or characters.
TL;DR
A token is the small text chunk, roughly a word piece, that an AI model actually reads and bills by, which is why token count, not word count, is what determines cost and context limits.
Formula
Token Count is determined by a model-specific tokenizer that splits text into subword units; as a rough estimate, 1 token ≈ 4 characters or about 0.75 words in English.
Why It Matters
Understanding tokens matters because nearly every practical constraint and cost in working with an AI model, pricing, context window size, response speed, is measured in tokens rather than the words or characters people naturally think in. That gap between word count and token count means a document's actual processing cost or context usage can be a meaningful surprise if someone estimates based on word count alone. Different tokenizers split text differently, so the same document can use a different number of tokens depending on which model processes it, which matters when comparing cost or capacity across providers. It's also the foundation other AI metrics build on, like token efficiency, which measures how much useful output a system produces per token spent. Anyone budgeting for AI usage or designing prompts needs to think in tokens, not words, to get an accurate picture of cost and capacity.
Example
The sentence 'AI models process text as tokens' breaks into roughly 7 tokens depending on the tokenizer used, since some words split into multiple tokens and some short words merge with punctuation. A 1,000-word document might use approximately 1,300 tokens, and if an AI service charges per token, that difference between word count and token count directly affects the actual cost of processing that document, which is why token count, not word count, is the metric used for API billing and context window limits.
Frequently Asked Questions
Related Terms