What is a token in AI? A simple guide to AI tokens
By the ChatGBot Team · Published December 2, 2026
A token in AI is the basic unit of text that a language model reads and writes. A token can be a short word, a piece of a longer word, a number or a punctuation mark, and in English one token averages about four characters, or roughly three quarters of a word. Tokens matter because they decide how much text a model can handle at once, how fast it answers and, for API users, how much each request costs.
Every top AI in one app
GPT, Claude, DeepSeek, Qwen and GLM. One subscription.
Try ChatGBot →What is a token in AI, exactly?
Computers do not read letters the way people do. Before a model like GPT, Claude or DeepSeek can work with your message, a program called a tokenizer cuts the text into small chunks and maps each chunk to a number. Those chunks are tokens, and the numbers are what the neural network actually processes.
Common words are usually a single token. Rarer or longer words get split into several pieces. Spaces and punctuation are often folded into the tokens next to them. Here is a rough illustration of how a typical tokenizer might split a sentence:
| Text | Possible tokens | Count |
|---|---|---|
| I love pizza | I | love | pizza | 3 |
| Tokenization is fun | Token | ization | is | fun | 4 |
| ChatGBot! | Chat | GB | ot | ! | 4 |
| 2026-12-02 | 202 | 6 | - | 12 | - | 02 | 6 |
The exact splits depend on the tokenizer, so treat this table as an example of the idea, not a precise count for any one model.
How many words is a token?
OpenAI's help center gives a simple rule of thumb for English text: one token is about 4 characters, and 100 tokens are about 75 words. That makes these quick conversions handy:
| Tokens | Approximate English words | Roughly equal to |
|---|---|---|
| 100 | 75 | A short paragraph |
| 1,000 | 750 | A one to two page memo |
| 10,000 | 7,500 | A long report |
| 100,000 | 75,000 | A short novel |
| 1,000,000 | 750,000 | Several books |
These are averages. Text in languages such as Chinese, Japanese, Turkish or Hindi often needs more tokens for the same meaning, and computer code, numbers and unusual names can also use more tokens than plain English prose.
Why tokens matter
1. They set the context window
Every model has a context window, the maximum number of tokens it can keep in view at once. That budget covers everything: your instructions, uploaded files, the earlier messages in the chat and the reply itself. When a conversation grows past the window, the oldest parts fall out of view, which is why very long chats can lose track of early details.
Context windows have grown fast. As of December 2026, official documentation lists these limits:
| Model | Context window | Max output |
|---|---|---|
| Claude Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2 | 1M tokens | 128K tokens |
| OpenAI GPT-6.2 Astra (API) | 1.05M tokens | 128K tokens |
| DeepSeek deepseek-flash and deepseek-v4-pro (API) | 1M tokens | 384K tokens |
Sources: Anthropic's models overview, OpenAI's API model docs and DeepSeek's pricing page, checked December 2, 2026. Chat apps may give you a smaller window than the raw API, depending on the plan. For more on how Claude handles long inputs, see our guide to the Claude context window.
2. They decide what API calls cost
AI APIs bill by the token. Prices are listed per million input tokens (what you send) and per million output tokens (what the model writes), and output almost always costs more. Many providers also discount cached input, meaning repeated text such as a long system prompt that the model has already processed. Reasoning models add another wrinkle: the hidden thinking they do before answering is counted as output tokens, so a short final answer can still cost a lot. Our breakdown of DeepSeek API pricing shows a full worked example.
3. They affect speed
Models generate one token at a time. A longer answer means more tokens to produce, so it takes longer to finish. That is why asking for a short, focused answer is often both faster and cheaper.
How models use tokens to write
A large language model is trained to predict the next token. When you send a prompt, the model looks at all the tokens so far and calculates how likely each possible next token is. It picks one, adds it to the text, and repeats the process until the answer is done. Settings like temperature control how adventurous those picks are. A low temperature favors the most likely token, which suits facts and code. A higher one allows more variety, which can help with creative writing.
Inside the model, each token is turned into a long list of numbers called an embedding, which captures something about its meaning and how it relates to other tokens. If you want the bigger picture, read what an LLM is and how ChatGPT works.
Different models, different tokenizers
There is no universal token. Each AI company builds its own tokenizer, so the same paragraph can become a different number of tokens on different models. Anthropic's token counting docs, for example, note that Claude Opus 4.7 and later models use a newer tokenizer that produces about 30% more tokens for the same text. This matters when you compare prices: a model with a lower price per token is not automatically cheaper if it needs more tokens to say the same thing, or writes longer answers.
The practical rule is to test your own prompts. Run the same task through two or three models and compare the actual token usage each API reports.
How to count tokens
- OpenAI Tokenizer. A web tool that shows how text splits into tokens for OpenAI models, linked from OpenAI's help article on tokens.
- tiktoken. OpenAI's open-source tokenizer library for developers, released under the MIT license.
- Claude token counting. Anthropic's API includes an endpoint that estimates the tokens in a message before you send it.
- API usage fields. Most AI APIs return the exact number of input and output tokens with every response, which is the most reliable count for billing.
- Quick math. For English prose, divide the character count by 4, or multiply the word count by about 1.33.
Tips to use fewer tokens
- Ask for the length you need, such as "answer in three bullet points".
- Start a new chat when you change topics, so old messages do not fill the context window.
- Paste only the relevant part of a long document instead of the whole thing.
- Keep reusable instructions short and put them at the start of the prompt, where providers that cache input can reuse them.
- For simple tasks, use a smaller, faster model rather than a large reasoning model.
Try different AI models without counting tokens
If you just want answers rather than an API bill, you do not need to track tokens at all. ChatGBot gives you GPT, Claude, DeepSeek, Qwen and GLM models in one app, so you can send the same long document or question to several models and see which one handles it best. You can switch models in the same chat, upload PDFs and files for analysis, and use web search when you need current information.
Ready to try it yourself?
Switch between top AI models in one chat.
Try ChatGBot →Frequently asked questions
What is a token in AI?
A token is the small unit of text an AI language model reads and writes. It can be a whole word, part of a word, a number or a punctuation mark. Models split your text into tokens, process them as numbers and generate their reply one token at a time.
How many words is 1,000 tokens?
In English, about 750 words. OpenAI's rule of thumb is that one token is roughly 4 characters of English text and 100 tokens are roughly 75 words. Other languages and code often use more tokens for the same amount of meaning.
Why do AI companies charge by the token?
Tokens are what the model actually processes, so they track the computing cost of a request. API prices are listed per million input tokens and per million output tokens, and output usually costs more than input.
What is a context window?
The context window is the maximum number of tokens a model can consider at once, including your prompt, any files, the chat history and its own reply. As of December 2026, current Claude models and DeepSeek's API models list a 1 million token context window.
Do all AI models count tokens the same way?
No. Each company uses its own tokenizer, so the same sentence can produce a different number of tokens on GPT, Claude or DeepSeek. Compare costs by testing your real text, not by token prices alone.
How can I count tokens?
OpenAI offers a Tokenizer web tool and the open-source tiktoken library. Anthropic offers a token counting endpoint for Claude. Most AI APIs also return the exact token usage with every response.