
Quick Summary
- A token is the basic unit an AI model reads and generates. It can be a word, subword, character, space, or punctuation mark.
- Tokenization is the process of splitting input into tokens before the model does any computation.
- In English, one token is roughly four characters or about three-quarters of a word. 100 tokens equals about 75 words.
- Tokens directly affect AI cost, speed, and context limits. Output tokens typically cost more than input tokens.
- You can reduce token usage by writing tighter prompts, trimming conversation history, and setting output limits.
A token in AI is the smallest unit of text or data that an AI language model processes.
Before a large language model can read or generate text, it breaks input into discrete fragments called tokens. Tokens affect how AI models interpret prompts, how much API usage costs, and how much information a model can hold at once.
~4
Characters per
token in English
75
Words per
100 tokens
~30
Tokens per
1 to 2 sentences
~100
Tokens per
paragraph
What Is a Token in AI?
Summary: A token is the smallest discrete unit of data an AI model reads, processes, or generates, and it can be a whole word, part of a word, a space, or a punctuation mark.
AI models do not read language the way humans do. When you type a sentence into ChatGPT or another AI tool, the model first splits your text into tokens using a component called a tokenizer.
Common words may stay intact as one token. Longer or rarer words may be broken into subword pieces, and punctuation marks or spaces may become their own tokens.
Tokens are not limited to text. In multimodal AI systems, tokens can represent image patches, audio snippets, video segments, or sensor data. Any time an AI model processes information in discrete units, tokenization is the mechanism that makes it possible.
How Do Tokens Work Inside an AI Model?
Summary: Tokens move through an AI model in a sequence: text comes in, the tokenizer splits it, embeddings convert it to numbers, and the model generates output tokens one at a time.
Here is the basic flow from prompt to response:
Input text is received.
Your prompt or query enters the model as raw text.
Tokenization occurs.
The raw text is split into tokens using the model’s specific tokenizer before any computation begins.
Tokens are converted to embeddings.
Each token is mapped to a numerical vector so the model can process language mathematically and identify context.
The model generates output tokens.
The model predicts the next token one at a time until the response is complete or a token limit is reached.
Two performance metrics are tied directly to tokens. Time to first token is the delay before a model starts responding. Inter-token latency is the rate at which subsequent output tokens are generated. Both affect how fast a response feels to the user.
Models also have a maximum token limit called a context window. The context window is the total number of tokens the model can consider at once, including input tokens, output tokens, system instructions, and conversation history.
If a prompt exceeds the context window, content may be truncated, which can reduce accuracy because the model loses important earlier context.
Tokens vs. Words: What Is the Difference?
Summary: A token is not always a word, and one word can be one token or several, depending on how common it is and which model is reading it.
Short, common words often map to a single token. Longer, rarer, or technical words are more likely to be broken into subword fragments.
Here is a side-by-side comparison:
| Concept | Word | Token |
|---|---|---|
| Definition | A unit of language defined by spaces and meaning | The smallest unit a specific AI model processes |
| Size | Always a complete word | Can be a character, subword, whole word, space, or punctuation |
| Consistency | Usually stable across contexts | Varies by model and tokenizer |
| Example: “unhappiness” | 1 word | May be 3 tokens: “un,” “happi,” “ness” |
A useful rule of thumb from OpenAI’s tokenizer documentation is that one token is roughly four characters, or about three-quarters of a word in English. That means 100 tokens is approximately 75 words.
Tokenization also varies by model and encoding. The same sentence can produce different token counts across different AI systems. Non-English text, programming code, and unusual symbols often produce more tokens per character than standard English prose.
How Does Tokenization Work?
Summary: Tokenization is the translation layer between human-readable language and machine-computable data, and most modern models use a method called Byte Pair Encoding to do it.
Most modern language models use subword tokenization methods such as Byte Pair Encoding, or BPE. BPE starts with individual characters and repeatedly merges the most frequent pairs into larger tokens.
This creates a vocabulary that balances size with coverage, letting the model handle rare words by breaking them into known fragments instead of treating them as unknown.
Here is a simple example:
Input: Tokenization is fascinating!
Output tokens: [“Token”, “ization”, ” is”, ” fascinating”, “!”]
“Tokenization” is split into two tokens. The spaces before words are included in tokens, and the exclamation mark becomes its own token. That is why token counts do not neatly match word counts.
To get exact token counts for a specific model, use OpenAI’s tokenizer tool or the open-source tiktoken library.
Exact counts matter because small differences can affect cost and determine whether your prompt fits inside a model’s context window.
Why Tokens Affect AI Cost, Limits, and Speed
Summary: The more tokens you send or generate, the more computation the model performs, which directly drives up cost, fills context windows faster, and slows responses.
| Dimension | How Tokens Affect It |
|---|---|
| Cost | AI services price usage by tokens consumed and generated. Input and output tokens are billed at different rates, and output tokens typically cost more. Extra words in prompts increase token usage and cost. |
| Limits | Models have a fixed context window covering both input and output tokens. Exceeding it means content may be truncated, causing the model to lose context and produce less accurate responses. |
| Speed | Generation time scales with the number of output tokens. Faster token processing reduces response time. Token limits also affect latency and overall user experience. |
Total token count includes more than the visible user message. System prompts, tool definitions, function schemas, and full conversation history all consume tokens. That is why a short prompt can sometimes cost more than expected.
Some AI services also set token limits per minute for individual users, which matters for teams and developers running high-volume workflows.
How to Manage Tokens and Reduce AI Usage
Summary: Good token management comes down to making prompts shorter, limiting output length, trimming old context, and checking counts before sending requests.
- Measure before you send. Use OpenAI’s tokenizer or tiktoken to see exactly how many tokens your prompt consumes. Do not guess.
- Shorten prompts and cut verbosity. Remove filler words, repeated instructions, and overly detailed system prompts. Every unnecessary word adds tokens and cost.
- Trim conversation history. Summarize or compress previous messages before including them in a new prompt. Full conversation logs can quickly fill a context window.
- Compact structured data. Minify code, simplify JSON, and strip unnecessary formatting when sending structured content to a model.
- Set output length limits. Use max-token parameters to cap response length and prevent unexpectedly long or expensive outputs.
- Choose the right model for the task. Smaller or more affordable models handle simple tasks well, reducing per-token costs without sacrificing quality.
Quick Reference
One to two sentences is roughly 30 tokens. A full paragraph is about 100 tokens. These are approximations, not exact counts, and vary by model and language.
Effective token management is a form of prompt engineering. The tighter and more intentional your prompts are, the better your results tend to be and the lower your costs.
For more on writing effective prompts, see our breakdown of how to structure AI prompts for better output.
Frequently Asked Questions
What is the difference between input tokens and output tokens?
Input tokens are the tokens in the prompt you send to an AI model, including your question, instructions, context, and conversation history. Output tokens are the tokens the model generates in its response. Both count toward usage limits and billing, and output tokens are often priced higher than input tokens.
How many words is one token?
In English, one token is roughly three-quarters of a word. A useful approximation is that 100 tokens equals about 75 words. Exact counts vary by model tokenizer and text type. Code, non-English languages, and technical jargon often produce more tokens per word.
What happens when an AI model reaches its token limit?
When an AI model reaches its context-window token limit, it can no longer process additional input in the same request. Older content may be truncated or summarized, causing the model to lose important context and produce less accurate or incomplete responses.
Why do tokens affect the cost of using AI?
Most AI API providers charge per token processed, covering both the input tokens you send and the output tokens the model generates. Longer prompts, extensive conversation histories, and verbose responses all increase token counts and usage costs.
Can tokens apply to data other than text?
Yes. In multimodal AI systems, tokens can represent text, images, audio snippets, video segments, or sensor data. Tokenization applies to any data type that a transformer-based model needs to process in discrete units, which makes tokens a core part of modern AI.
About the author
Kai Williams
Kai Williams has been in marketing for years, with a long background in SEO before AEO had a name. He stepped into Answer Engine Optimization the moment AI started reshaping how people search, and has been tracking the shift ever since. At Prompt Insider, he covers AEO, AI marketing, and the future of search, breaking down what is changing and what brands need to do about it.


