A token is the basic unit of text a large language model reads and writes. It is usually a piece of a word: a whole short word, part of a longer one, a punctuation mark or a space plus a word. As a rule of thumb from OpenAI, one token is about 4 characters or roughly three quarters of an English word, so 100 tokens come to about 75 words.
When you build with LLMs, tokens are the thing you pay for and the only number you can really rely on. Every API call is billed by the number of input tokens you send and output tokens the model generates, so it is worth understanding what a token is before you look at any price list.
How tokenization works
Before a model processes your prompt, a tokenizer breaks the text into smaller units called tokens. Each token is assigned a number, its token ID, from a fixed vocabulary. The model never sees letters or words. It sees a sequence of IDs, turns each one into a vector, and predicts the next token based on everything before it. The answer you read is generated one token at a time and then converted back into text.
Originally, tokens meant characters or whole words. Modern LLMs use subword tokenization, most often a method called byte pair encoding. The tokenizer starts from single characters and keeps merging the pairs that appear most often in its training text until the vocabulary size is reached. Common words end up as a single token. Rare words are split into multiple tokens.
Take a URL as an example. OpenAI's tokenizer splits https://www.lovelaice.com/resources into nine tokens. "https" appears so often in training data that it is one token, while "lovelaice" is unusual and gets cut into four pieces.
Each model has its own tokenizer, and they are not the same. OpenAI, Anthropic, Google and open models like Llama all use different vocabularies.
Why LLMs use tokens instead of words
A vocabulary of whole words would have to contain every word in every language, every name and every typo. Any word outside the list would be unreadable for the AI model. A vocabulary of single characters would solve that, but every text would become a very long sequence, and the transformer at the core of generative AI would need far more computation per answer.
Subword tokens sit between the two. OpenAI's o200k_base tokenizer, for example, has about 200,000 unique tokens. A vocabulary of that size is enough for an LLM to represent any text in any language, because an unknown word can always be built from smaller pieces. Tokenizers also add special tokens that never appear in normal text, for example markers for where a message starts and ends or which part of a conversation comes from the user. Those count toward your token usage as well.
Examples: text to tokens
We ran a few sentences through OpenAI's o200k_base tokenizer, which is used by GPT-4o and newer OpenAI models. The vertical bars show where the text is split.
| Text | Words | Characters | Tokens | How it is split |
|---|---|---|---|---|
| Hello world | 2 | 11 | 2 | Hello | world |
| The cat sat on the mat. | 6 | 23 | 7 | The | cat | sat | on | the | mat | . |
| unbelievable | 1 | 12 | 3 | un | bel | ievable |
| Tokenization | 1 | 12 | 2 | Token | ization |
| 2026-10-28 | 1 | 10 | 6 | 202 | 6 | - | 10 | - | 28 |
| Please extract the name, address and phone number from this invoice. | 11 | 68 | 13 | one token per word, plus comma and period |
| The same request in German | 9 | 69 | 13 | "extrahiere" alone takes 3 tokens |
| The same request in Russian | 10 | 65 | 17 | "Пожалуйста" (please) alone takes 3 tokens |
Three patterns show up. Short, common English words are one token each. Punctuation counts. Dates, numbers and long or rare words cost more than their length suggests.
How many tokens is a word?
In English, one word is on average about 1.3 tokens. That is where the "three quarters of a word" rule comes from: 1,000 tokens are roughly 750 English words, or about one and a half pages of single-spaced text.
The average hides a lot of variation:
- •Common words such as "the", "cat" or "invoice" are usually one token.
- •Long or rare words are split into several tokens. "Unbelievable" is three.
- •Other languages need more tokens for the same meaning. In our example the German request used as many tokens as the English one with fewer words, and the Russian version needed about 30% more tokens than the English one.
- •Code, URLs and numbers are tokenized less efficiently than plain prose.
If you need an exact number, do not estimate. Paste the text into the model provider's tokenizer tool or read the token count the API returns with every response.
Why the same prompt costs different amounts on different models
Because each model counts tokens its own way, the exact same prompt can record different input token numbers across models. The text is identical, but the count is not.
Language matters too. English tends to be very efficient, because a lot of the data the models were trained on is in English, so there is high probability for many words and parts of words. For less common languages, and especially non-Latin ones, tokens are more expensive, because those character sequences are rarer.
Output tokens always depend on the result.
Input, output and reasoning tokens
Providers bill three types of tokens, and they do not cost the same:
- •Input tokens: everything you send, including the system prompt, instructions, examples, the conversation history and any documents.
- •Output tokens: the text the model generates. They are usually priced several times higher than input tokens.
- •Reasoning tokens: the tokens a reasoning model spends thinking through the task before it answers. You do not see them in the response, but they are billed as output tokens.
The reasoning tokens are the hidden cost. This showed up clearly in an experiment where the model had to extract a few fields from a document, like a name, address, phone number and job title. That was the text output every model was supposed to return. But when you looked at actual token usage, some frontier models, like GPT-5, used ten, twenty or a hundred times more tokens, because they were doing a lot of reading and reasoning behind the scenes before outputting those few items.
You can estimate the text output. You generally cannot estimate the reasoning tokens. Only by testing on your own use case do you learn this, and it has a large impact on cost. Setting a max tokens limit caps the output, but if it is too low the answer gets cut off.
Token limits and the context window
Every model has a context window: the maximum number of tokens it can handle in one call, input and output combined. In a chat, the whole conversation is re-sent with every message, so the token count grows with each turn until it hits that limit. We explain the consequences in why ChatGPT gets dumber the longer you talk to it.
The cost you see is an estimate
When you make an API call, you get back the answer plus information about what it did, mostly the tokens: how many input tokens, how many output tokens, and sometimes the total. None of them return a cost.
The cost is calculated from the model's pricing per million input and output tokens. As a reference point, one model was listed at five dollars per million input tokens and twenty-five dollars per million output tokens. At that price, 1,000 input tokens cost half a cent and 1,000 output tokens cost two and a half cents. But pricing changes, so any cost figure is an estimate until the bill comes. The only thing you can actually rely on is the token usage, input and output.
Web search is not free
Giving a model access to the web also costs tokens. When it searches, it goes to the website, scrapes the content and treats that as a message, as if you had copy-pasted the whole page in as input, then processes it. That is why web search is still quite expensive, with one model listed at ten dollars per thousand web searches.
How to reduce token usage
- •Shorten the system prompt. It is sent with every single call, so each word in it is paid for thousands of times.
- •Send only the context the task needs. Trim documents and old conversation turns instead of passing everything.
- •Choose the model per task. A reasoning model can multiply output tokens for a job a smaller model handles just as well.
- •Measure on real inputs. Run your actual prompts across models and compare token usage, accuracy and latency side by side before you decide.
Frequently asked questions
- How much text is 1,000 tokens?
- About 750 English words, or roughly one and a half pages of single-spaced text. For other languages and for code, 1,000 tokens cover less text.
- How many tokens is one word?
- On average about 1.3 tokens in English. Short, common words are one token. Long, rare or non-English words are often split into two to four tokens.
- Are input and output tokens priced the same?
- No. Output tokens are usually several times more expensive than input tokens. Reasoning tokens from thinking models are billed as output tokens even though you do not see them in the answer.
Enjoyed reading? Add us as a preferred source in Google to support us.
Add Lovelaice as a preferred source



