Guide · Last verified 2026-08-23

What Is an AI Token?

Short answer: a token is the piece of text a model actually reads — and the unit every provider bills. It is smaller than a word: roughly 1 token ≈ 4 characters ≈ 0.75 English words. That ratio is a planning estimate, not a constant. Send code, JSON or raw HTML instead of prose and you pay 1.6x to 2.2x more tokens for the same information. Below: what a token really is, the conversion by content type, and why output tokens cost 5–8x input.

Definition

Not a word, not a character — a sub-word

Tokenizers split text into frequent fragments. Common English words survive whole; everything else is assembled from pieces.

Whole words when they are commonthe, and, price — one token each, which is why ordinary prose meters cheaply.
Pieces when they are notunbelievable becomes un + believ + able: one word, twelve characters, three tokens.
Digits split in groups1234567 is typically 123 + 456 + 7. IDs, SKUs and UUIDs are far more expensive than their character count suggests.
Spaces travel with the next word hello and hello are different tokens. Indentation in code is therefore billed, not free.
Punctuation bills separatelyEvery brace, quote, colon and comma in JSON and HTML is metered — in structured data, punctuation can be a third of the bill.
Each provider has its own tokenizerOpenAI, Anthropic and Google split the same text slightly differently, and tokenizers change between model generations.
Conversion

How much text one token really is

Characters per token assumes 1,000 English words ≈ 5,600 characters including spaces. Tokens-per-word ranges match the content-type table in our 1,000-word guide.

Content typeCharacters per tokenTokens per 1,000 words1,000 tokens is aboutWhy it meters that way
Plain English prose
Baseline
~4.21,250 – 1,400750 words · 1.5 pagesShort common words map to one token each.
Business / technical English
Reports, specs, docs
~3.71,400 – 1,600670 wordsJargon, numbers and abbreviations split into sub-words.
Transcribed speech
Calls, dictation
~3.9 – 4.71,200 – 1,450760 wordsFillers and short words tokenize cheaply; punctuation is sparse.
Source code
Python, JS, TypeScript
~2.61,900 – 2,400465 wordsIndentation, operators, camelCase boundaries and symbols all split.
JSON / structured data
API payloads, configs
~2.22,300 – 2,700400 wordsEvery key repeats, and each quote, brace and colon is its own token.
HTML markup
Scraped pages, emails
~2.02,500 – 3,000364 wordsTags, attributes and class names carry no content but are billed.
CJK text
Per 1,000 characters
~1.0 per character950 – 1,050 charactersRoughly one token per character; word segmentation is not meaningful.

Planning estimates, not tokenizer output. The same text meters several percent differently across providers, and the spread inside a content type is real — a dense JSON payload lands at the top of its range, a pretty-printed one higher still. Measure your own text with the Token Counter before budgeting.

Why the unit matters

The same 20 records, four token bills

Identical product data — 20 records, 6 fields each — serialized four ways and measured with this site's own estimator. Same facts, different invoices.

SerializationCharactersTokensMultiple vs proseCost per 100,000 records on Claude Sonnet 5
Plain sentences
"SKU AP3-BLK-0001 is the Acoustic Pro 3 …, priced at $249 …"
2,299532Lowest1.00x$5.32
Key–value lines
sku: … / name: … / price: … one per line
2,2395270.99x$5.27
JSON, compact
JSON.stringify(items)
2,5217271.37x$7.27
JSON, pretty-printed
JSON.stringify(items, null, 2)
3,3627941.49x$7.94

Measured with the same heuristic estimator used by the tools on this site, priced at Claude Sonnet 5's $2.00 per 1M input tokens. Two findings generalise: key–value lines cost the same as prose (the labels replace the words), and pretty-printing costs 9% more tokens than compact JSON for zero extra information. Our estimator weights punctuation lightly, so treat 1.37–1.49x as a floor — production tokenizers usually meter JSON braces, quotes and colons closer to the 1.8–1.9x implied by the content-type table above.

Pricing

Why reading is cheap and writing is not

Every tracked provider charges more for generated tokens than for prompt tokens — but not by the same multiple.

ModelInput / 1MOutput / 1MOutput ÷ inputOutput share of a 1:1 request
GPT-5.6 Sol
OpenAI · flagship (promo)
$4.00$20.005.00x83.3%
GPT-5.6 Terra
OpenAI · mid
$2.00$12.006.00x85.7%
GPT-5.6 Luna
OpenAI · budget
$0.20$1.206.00x85.7%
Claude Opus 5
Anthropic · flagship
$5.00$25.005.00x83.3%
Claude Sonnet 5
Anthropic · mid
$2.00$10.005.00x83.3%
Claude Haiku 4.5
Anthropic · budget
$1.00$5.005.00x83.3%
Gemini 3.6 Flash
Google · mid (promo)
$0.75$3.755.00x83.3%
Gemini 3.5 Flash-Lite
Google · budget · widest gap
$0.30$2.508.33x89.3%

Computed from published per-1M rates (OpenAI verified 2026-08-23, Anthropic and Google 2026-08-09 to 2026-08-16). "Output share" assumes a request with equal input and output token counts. OpenAI's long-context surcharge above 272,000 input tokens raises input by 2x and output by 1.5x, which narrows the ratio to roughly 3.75x on GPT-5.6 models. Caching, batch and taxes excluded.

What this means in practice

Tokens are the budget. Everything else is a proxy.

Teams plan in words, pages, documents or API calls. Providers bill in tokens, and the translation between the two depends entirely on what kind of text you are sending. A 1,000-word article and a 1,000-word JSON payload differ by roughly 2x in tokens before a single output token is generated.

The practical consequence is that the cheapest optimization is usually in the input, not the model choice. Sending the same information with less scaffolding — converted HTML instead of raw markup, compact records instead of pretty-printed JSON, 8 retrieved chunks instead of 25 — cuts tokens on every request forever, and it compounds with whatever model you route to.

The second consequence is that output dominates conversational bills. Because output is priced 5–8x input, a chat endpoint that reads 2,000 tokens and writes 500 spends more on the answer than the prompt. Capping max_tokens and asking for shorter answers is a direct cost lever — see what a 1,000-word exchange costs on every model.

1.33 tokens per wordThe English prose rule of thumb: 1,000 words ≈ 1,325 tokens ≈ 750 words per 1,000 tokens.
2.75 tokens per word for HTMLRaw markup is the densest common content type — and the easiest to fix: HTML Token Savings.
5–8x for outputGeneration is serial work, so it is priced accordingly — 8.33x on Gemini 3.5 Flash-Lite.
Estimates, not exact countsTokenizers differ per provider. Reconcile with the usage object in the API response: Methodology.
FAQ

AI token questions

What is an AI token in simple terms?

A token is the chunk of text a language model actually reads and that providers bill for. It is usually smaller than a word: common English words are one token, longer words split into pieces such as un + believ + able. A practical rule of thumb is 1 token ≈ 4 characters ≈ 0.75 English words, or about 1.33 tokens per word.

How many tokens is one word?

For plain English prose, roughly 1.25 to 1.40 tokens per word — about 1.33 on average, which is the 0.75 words-per-token rule used across this site. Technical English runs 1.4 to 1.6, source code 1.9 to 2.4, JSON 2.3 to 2.7 and raw HTML 2.5 to 3.0 tokens per word. CJK text is better measured per character: about 0.95 to 1.05 tokens per Chinese character.

Why are output tokens more expensive than input tokens?

Reading a prompt can be processed in parallel, while generating a reply happens one token at a time and each new token depends on the ones before it. Providers price that serial work higher: on the eight models tracked here, output costs 5.00x input on GPT-5.6 Sol, Claude Opus 5, Sonnet 5, Haiku 4.5 and Gemini 3.6 Flash, 6.00x on GPT-5.6 Terra and Luna, and 8.33x on Gemini 3.5 Flash-Lite. At equal input and output volumes, output is 83% to 89% of the bill.

Do all models count tokens the same way?

No. Each provider trains its own tokenizer, so the same text can meter several percent differently across OpenAI, Anthropic and Google — and tokenizers also change between model generations. That is why the calculators on this site label results as estimates. If you are budgeting against an invoice, reconcile with the usage object the API returns.

How can I use fewer tokens?

Four levers cover most workloads: strip markup before sending web content, send fewer and smaller retrieved chunks, shorten the system prompt and move repeated instructions into a cached prefix, and route easy requests to a cheaper model. Converting scraped HTML to Markdown is usually the largest single win on input-heavy pipelines.

Methodology

Where these numbers come from.

Per-million input and output rates are provider-published values, re-verified weekly against official pricing documentation; the output-to-input multiples above are computed directly from those rates. Conversion figures — characters per token, tokens per 1,000 words — are planning estimates derived from the content-type ranges published in our 1,000-word guide, assuming 1,000 English words ≈ 5,600 characters including spaces. They are not tokenizer output, and real counts vary by provider, model generation and the specific text. The token-counter estimator used across this site weights CJK characters, emoji, punctuation, whitespace and Latin characters separately; it is a cross-model approximation, not an exact count. Caching, batch, tool use and taxes are excluded throughout.

Official sources: OpenAI model docs, Anthropic pricing, Google Gemini API pricing. Always confirm the invoice before making purchasing decisions.

Count your own textCharacters, words and tokens side by side with per-model cost: Token Counter.
Convert a token budgetWords, pages and CJK capacity for any token count: Tokens ↔ Words.
Strip the markupMeasure what HTML → Markdown actually saves on your pages: HTML Token Savings.
Tokens in 1,000 wordsContent-type conversion table with per-model pricing: How Many Tokens in 1,000 Words?
What 100K tokens isWords, pages and the chunk size that avoids the 272K surcharge: How Many Words Is 100K Tokens?
Provider rate cardsOpenAI · Claude · Gemini · all three.
1M tokens in words750,000 words, 1,500 pages — and why only 5 of 8 models accept it in one request: How Many Words Is 1M Tokens?
Trim the promptFind repeated instructions, markup and filler: Prompt Weight Analyzer
How we verifySources, weekly cadence and what our estimates exclude: Methodology · Pricing changelog.