All posts

What is a token in AI? How tokens work, what they cost and why they limit you

AI models read, write and bill in tokens. One token is about three quarters of an English word. A 100-page document of 50,000 words comes to roughly 67,000 to 90,000 tokens depending on the model, and reading it can cost a third more on a newer model although the price list never changed. This guide explains AI tokens from zero, with current numbers from OpenAI, Anthropic and Google.

Patric Slis
Patric Slis5 November 2026 · 13 min read

What you type

Tokenization is how an AI model reads your text.

What the model reads

TokenizationishowanAImodelreadsyourtext.
9 words48 characters11 tokens
The short answer

Definition: a token is a small piece of text, usually a short word or part of a longer one. AI models such as ChatGPT, Claude, Gemini and Copilot do not read letters or whole sentences. They cut everything into tokens first. Tokens in AI are also the unit for the three things you notice as a user: how much a model can read at once, how long its answer can be, and what you pay.

OpenAI’s rule of thumb for English: 1 token ≈ 4 characters ≈ ¾ of a word.

What is a token in AI?

Type “unbelievable” into an AI chat and what reaches the model is three numbers: one each for “un”, “bel” and “ievable”, if it uses OpenAI’s o200k_base tokenizer. A large language model (LLM), the kind of machine learning model behind ChatGPT, Claude and other generative AI tools, cannot work with letters. Before your question reaches it, a small program called a tokenizer cuts the text into pieces from a fixed list and replaces each piece with its number on that list.

Those pieces are the tokens, and the cutting is called tokenization. A short, common word such as “the” is one token. A longer or rarer word is cut into several. Punctuation counts, and so do spaces.

thethe1 token
unbelievableunbelievable3 tokens
confidentialityconfidentiality3 tokens
€1,499.00€1,499.006 tokens
hello@zedar.hosthello@zedar.host5 tokens
How one current tokenizer (OpenAI’s o200k_base) cuts single words, a price and an email address.

Why the word “token”? In everyday English a token is a small thing that stands for something else, the way a casino chip stands for money. Here a number stands for a piece of text.

Is an AI token a crypto token? No. A crypto token is an entry on a blockchain that somebody owns and can sell. An AI token is a count on a bill: nobody can own one, and it is worth nothing outside that bill. What crypto sites list as “AI coins” or “AI tokens” are coins of projects with an AI theme, traded like any other coin. A third thing shares the name: the access token, a kind of password that logs software into a service.

Is a token a word?

No. A token sits between a letter and a word. OpenAI puts it at about three quarters of an English word, so 100 tokens are roughly 75 words. Google gives a range for its Gemini models: 100 tokens are about 60 to 80 English words.

The rule breaks quickly outside plain English prose. Dates, prices, email addresses, tables and code need far more tokens than their length suggests: the price €1,499.00 is nine characters and six tokens. Other languages cost more too. We ran the same request through OpenAI’s tokenizer in English, German and French:

English9 wordsPleasesummarisetheattachedcontractandlisteverydeadline.11 tokens
German12 wordsBittefassenSiedenbeigefügtenVertragzusammenundnennenSiealleFristen.18 tokens
French10 wordsVeuillezrésumerlecontratci-jointetindiquertouslesdélais.15 tokens
The same request, counted with OpenAI’s o200k_base tokenizer. In this example German needs 64% more tokens than English.

So a team that works in German or French pays more for the same job, and fills the model’s memory faster.

How many tokens is that?

Rough conversions for English text. The first column uses OpenAI’s rule of thumb of 100 tokens ≈ 75 words. The second uses Anthropic’s figure for Claude models since Opus 4.7, about 555,000 words per million tokens, because their tokenizer counts more tokens for the same text.

TextOpenAI rule of thumbClaude since Opus 4.7
1 word, on average≈ 1.3 tokens≈ 1.8 tokens
1,000 words≈ 1,300 tokens≈ 1,800 tokens
1 page of text (500 words)≈ 670 tokens≈ 900 tokens
100-page PDF (50,000 words)≈ 67,000 tokens≈ 90,000 tokens
300-page book (90,000 words)≈ 120,000 tokens≈ 162,000 tokens
1,000-page book (300,000 words)≈ 400,000 tokens≈ 541,000 tokens
100,000 tokens (100k)≈ 75,000 words≈ 55,500 words
1 million tokens≈ 750,000 words, about 1,500 pages≈ 555,000 words, about 1,100 pages

Estimates for plain English text, rounded. Page counts are our assumption: 500 words for a page of a document, 300 for a page of a book. Scanned pages, images and tables add tokens on top. Gemini can land on either side of the first column, because Google gives a range of 60 to 80 words per 100 tokens. For exact numbers, count with the tool of the model you use.

How many lines of code are 1 million tokens? The two providers that have named a figure are far apart. Google said in 2024 that the 1-million-token window of Gemini 1.5 Pro takes codebases of more than 30,000 lines. Anthropic said in 2025 that the same million tokens on Claude Sonnet 4 take more than 75,000 lines. Code has no rule of thumb like prose, because one line can be a single bracket and the next a statement of 200 characters.

How tokenization works in AI

1CutThe tokenizer cuts your text into pieces from its fixed list.
2NumberEach piece is replaced by its number. The model only works with numbers.
3PredictThe model predicts the next token, adds it, and repeats until the answer is done.

Step three is why an answer appears on your screen piece by piece: it really is written one token at a time. The speed of that is measured in tokens per second.

Why do LLMs use tokens at all? Single letters would mean far too many steps for every sentence. Whole words would need an endless list, and the model would be lost with every new name or typo. Pieces are the middle way: a list of manageable size from which any word can be built.

Every provider builds its own tokenizer. The same text therefore gives a different count in ChatGPT, Claude and Gemini, and sometimes between two models of the same provider.

How tokens are counted in ChatGPT, Claude, Gemini and Copilot

Everything that goes into the model counts as input tokens. Everything it writes counts as output tokens. Token usage is calculated this way on every platform, and input covers more than most people expect:

Input tokens
  • your question
  • files and images you attach
  • the whole conversation so far
  • instructions the app adds in the background
AI model
Output tokens
  • the answer you read
  • the thinking you never see
One request. Both sides are counted, and output is the expensive side.
  • The conversation counts again on every turn. A chat has no memory of its own. With each new question, the earlier messages are sent to the model again and counted again.
  • Thinking tokens (reasoning tokens). Newer models think before they answer. You do not see that text, but OpenAI and Anthropic both bill it as output tokens.
  • Images and audio are tokens too. On Google’s Gemini a small image counts as 258 tokens and one second of audio as 32.
  • Cached tokens. Input the provider has seen moments before can be reused at a fraction of the price. On most Claude models a cached token costs 10% of a fresh one.
  • Copilot credits. Microsoft’s Copilot Studio bills agents in a unit of its own, the Copilot Credit.

To count before you send, OpenAI offers a free online tokenizer and Anthropic and Google offer token counting in their developer tools. A token counter or token calculator built for one model gives wrong numbers for another, so check which model it counts for. ChatGPT tokens, Claude tokens and Gemini tokens are three different sizes.

The same text, more tokens: what changed with newer Claude models

A token is not a fixed unit like a litre or a kilowatt hour. Each provider defines it through its tokenizer, and can define it again with a new one. When that happens, the cost per token on the price list can stay the same while the cost of your work changes.

With Claude Opus 4.7, Anthropic introduced a new tokenizer. According to Anthropic it produces about 30% more tokens for the same text, and every Claude model since uses it. A token on the new models is a smaller piece of text than a token on the old ones. Whether your bill went up depends on what happened to the price per token at the same moment:

ModelTokenizerPrice per 1M tokens
(input / output)
A 100-page document
in tokens
Cost to
read it
Claude Sonnet 4.6earlier$3 / $15≈ 67,000$0.20
Claude Sonnet 5 and 5.5new$2 / $10≈ 90,000$0.18
Claude Opus 4.6earlier$5 / $25≈ 67,000$0.33
Claude Opus 4.7, 4.8 and 5new$5 / $25≈ 90,000$0.45
Claude Opus 5.5new$4 / $20≈ 90,000$0.36
Claude Fable 5.2new$8 / $40≈ 90,000$0.72

Anthropic list prices, November 2026. Document: 50,000 words, input only, converted with Anthropic’s published words-per-token figures.

On Sonnet the price per token fell by a third when the tokenizer changed, so the same document got slightly cheaper. On Opus the price stayed where it was, so from Opus 4.6 to 4.7 the same document cost about a third more to read. Opus 5.5 took part of that back with a lower price.

Why the same job can cost more on a newer model

1More tokens for the same textA new tokenizer cuts finer. The words are the same, the count is higher.
2Thinking is switched onThe newest Claude models think by default, and on Opus 5.5 it cannot be switched off. Thinking is billed as output, the expensive side.
3Higher prices at the topOpenAI’s GPT-5 is priced at $1.25 / $10 per million tokens, GPT-5.5 at $5 / $30. New top models such as Claude Fable 5.2 ($8 / $40) and GPT-6 Astra ($10 / $50) sit above everything before. Google has announced that Gemini 4 Carbon will double from $2 / $10 to $4 / $20.

Over time, mid-range models have moved the other way: Claude Sonnet went from $3 to $2 per million input tokens, and OpenAI’s GPT-6.1 Sol costs $2 / $10. The cost per token has mostly fallen. The cost per job has often risen, because the same job now takes more tokens.

Token limits and the context window

The context window is the number of tokens a model can hold in view at once. Your question, your files, the conversation so far and the answer all have to fit inside. The newest Claude models (Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2) have a window of 1 million tokens, which Anthropic puts at roughly 555,000 words.

First question
Tenth question
Much later
your questionattached filesconversation so farthe answer
A long conversation fills the window, because the history is sent again with every question.

Context window or max tokens? They are two different limits. The context window caps everything together. “Max tokens” (or max output tokens) is a setting that caps only the length of one answer. On the newest Claude models that is up to 128,000 tokens.

How many tokens do you get with ChatGPT Plus? There is no monthly token allowance. What OpenAI lists for each plan is the context window of a single conversation. On Plus that is 54,000 tokens with GPT Instant and 256,000 with GPT Reasoning. OpenAI translates the two into about 40 and about 320 pages of text you can put in.

Free
27,000Reasoning: varies
Go
54,000256,000
Plus
54,000256,000
Pro
128,000400,000
GPT InstantGPT Reasoning
Context window of one conversation in ChatGPT, in tokens. OpenAI, plans and pricing, November 2026.

Usage caps in chat subscriptions. Plans such as Claude Pro add a second kind of token limit: a cap on how much you can use in a given time. Anthropic does not publish it as a token budget. It says the limits of Claude Pro depend on the length of your conversations and the number of messages you send, and can vary with demand.

What happens when you run out of tokens? When the context window is full, the token limit is reached and the model cannot take in more. Depending on the product, the oldest part of the conversation is dropped or summarised, the answer stops in the middle, or you get an error. In daily use it looks like the AI has forgotten how the conversation began.

What AI tokens cost

Token pricing works per million tokens, with one price for input and a higher one for output. On Anthropic’s price list, output costs five times as much as input for every Claude model. One million input tokens cost between $0.10 on Claude Haiku 5.5 and $10 on GPT-6 Astra.

AI token cost comparison

ModelInput per 1M tokensOutput per 1M tokens
Claude Haiku 5.5$0.10$0.50
Claude Sonnet 5.5$2$10
Claude Opus 5.5$4$20
Claude Fable 5.2$8$40
GPT-6 Luna$0.10$0.50
GPT-6.1 Sol$2$10
GPT-6 Astra$10$50
Gemini 3.5 Flash-Lite$0.30$2.50
Gemini 4 Hydrogen$1.50$7.50
Gemini 4 Carbon$2*$10*

List prices of Anthropic, OpenAI and Google in November 2026, standard rates for short prompts. *Google has announced $4 / $20 for Gemini 4 Carbon. A token is a different size at each provider, so the lowest cost per token is not always the lowest bill.

How many tokens do you get for a dollar?

On the models in the price list above, one dollar buys between 100,000 and 10 million input tokens. On Claude Sonnet 5.5 it is 500,000 tokens, about 277,500 words of reading. Twenty dollars buy 10 million tokens there, and a hundred dollars 50 million.

Model$1 buys$20 buys$100 buys
Claude Haiku 5.510 million200 million1 billion
Claude Sonnet 5.5500,00010 million50 million
GPT-6.1 Sol500,00010 million50 million
Claude Opus 5.5250,0005 million25 million
Claude Fable 5.2125,0002.5 million12.5 million
GPT-6 Astra100,0002 million10 million

Input tokens at the list prices of November 2026, Claude Haiku 5.5 at its rate for prompts of up to 100,000 tokens. Output costs five times as much on every model in the table, so the same money buys a fifth of these numbers in written text.

In documents, $20 of input on Claude Sonnet 5.5 reads a 100-page PDF 111 times. Spent on output, the same $20 buys 2 million tokens, about 1.1 million written words.

A chat subscription is a different deal. ChatGPT Plus and Claude Pro charge a fixed price per month and cap how much you can use. Neither plan is sold as a number of tokens, so these figures apply to the pay-per-token price lists only.

A worked example

You ask Claude Sonnet 5.5 to summarise a 20-page contract (10,000 words) on one page.

Input: about 18,000 tokens at $2 per million$0.036
Output: about 900 tokens at $10 per million$0.009
One request, before thinking tokensabout $0.05

Five cents for one question. The bill grows through repetition. Ask twenty questions about a 100-page document in one conversation, and the document is sent twenty times: 1.8 million input tokens. Without caching that is $3.60 on Claude Sonnet 5.5, $7.20 on Opus 5.5 and $14.40 on Fable 5.2, for one person and one document. An AI agent that works through hundreds of files repeats this pattern all day.

Why are AI tokens so expensive? A token is the provider’s unit of work. Every token read or written takes computing time on specialised chips, and writing takes more of it than reading. That is why output and thinking cost more.

Are AI tokens getting cheaper?

Per token, yes. When GPT-3 opened to the public in November 2021, a million tokens cost $60. Three years later a model with the same score on a standard knowledge test cost $0.06, a thousandth of the price. The investment firm Andreessen Horowitz, which ran the numbers in 2024, puts the AI token cost trend at roughly ten times cheaper every year for the same quality.

Anthropic’s price list shows the same direction from one model generation to the next:

Claude Opus
Opus 4, 2025$15Opus 5.5, 2026$4
−73%
Claude Sonnet
Sonnet 4, 2025$3Sonnet 5.5, 2026$2
−33%
Claude Haiku
Haiku 4.5, 2025$1Haiku 5.5, 2026$0.10
−90%
Price of 1 million input tokens on Anthropic’s price list, standard rates for short prompts. Each pair of bars has its own scale: the comparison is between the two bars of one model.

The bill does not have to follow. New tiers keep opening above the old top: Claude Fable 5.2 costs $8 per million input tokens, twice the price of Opus 5.5, and GPT-6 Astra costs $10. The same job also takes more tokens on newer models, for the reasons listed in the section on newer Claude models.

How to use fewer tokens

  1. Start a new chat for a new topic. The old conversation is otherwise counted again with every question.
  2. Send the pages you need. Ten relevant pages cost a tenth of the whole file.
  3. Say how long the answer should be. Output is the expensive side.
  4. Use the smallest model that does the job. Claude Haiku 5.5 costs $0.10 per million input tokens, Fable 5.2 costs $8. That is a factor of 80.
  5. Keep it in plain prose where you can. Tables, code and long numbers are token-heavy.

AI without token limits

Counting tokens is a strange job to give a lawyer, a tax adviser or a doctor’s practice. The alternative is a flat rate: a fixed price per person, however much they use.

Billed by token

The bill follows usage. A busy month, a long document or a newer model changes what you pay.

Flat rate with Zedar

€200 per seat and month. No token limits and no usage bills, on servers that never save your files.

See how Zedar handles this on your own documents.

Request a call
Sources

All figures checked in November 2026.

Get the hours back and keep your files.

Tell us what your team works on. We call you back and work out honestly whether private AI pays off for you.

Request a call