AI Search
Token
A token is a basic unit of text, averaging roughly three quarters of a word, that a language model reads, processes, and generates.
// definition
Converting text into numerical sequences enables a large language model to calculate statistical relationships across text input. This process relies on tokens, which serve as the fundamental units of language processing, averaging roughly three quarters of a word. Rather than reading whole words, a model assigns numerical identifiers to these text fragments.
A single word frequently splits into multiple tokens based on frequency and complexity. For example, the seven word sentence "Artificial intelligence is changing software development" breaks into nine tokens, including fragments like "Art" and "ificial". Simple terms like "cat" form one token, while complex terms or punctuation mark additional units.
// Token vs. Context window
A token represents a single discrete unit of processed text, whereas a context window defines the maximum total capacity of tokens a language model can evaluate at one time. A token has an individual numerical identifier, a property that is not true of a context window.
Consider a municipal utility portal using an automated assistant for billing inquiries. Each word fragment, space, or symbol in a query is an individual token. The context window is the total capacity limit, determining how many overall tokens from customer logs and prompts the system can read at once before truncation occurs.
// why it matters
For businesses deploying language models, token metrics directly determine operational expenditure and system performance. Application programming interface providers bill usage based on input and output token counts rather than word volume.
Because models possess fixed context limits, oversized prompts or website content can cause truncated output or force costly system modifications. Monitoring token volume allows organizations to control cloud infrastructure budgets, prevent truncated data processing, and maintain low response latency across software applications.
Questions and Answers
- How many tokens are in a normal word?
- A normal word typically equals one to two tokens, with an average of roughly three quarters of a word per token. Simple terms usually map to a single token, whereas longer or uncommon words split into multiple sub-word units. Punctuation marks and spaces also count as individual token units during model processing.
- Why do AI providers charge by tokens instead of word count?
- AI providers charge by tokens because computational workloads depend on mathematical sub-word processing rather than full human words. Processing longer, complex, or multi-language words requires more model calculations. Measuring usage by tokens accurately reflects the compute resources, memory, and infrastructure required to process and generate text.
