Skip to content
QueenNexa

GuideGuides

AI Tokens Explained: How They're Counted and Priced

What an AI token is, how text, images and audio become tokens, which token types you pay for, and a worked monthly cost calculation with variations.

By QueenNexa Editorial TeamPublished 14 min readFact-checked November 28, 2026

A token is a small chunk of text, such as a word, part of a word, a punctuation mark or a space, that an AI model reads and writes. Providers count tokens to set limits and to bill you. OpenAI estimates 100 English tokens at about 75 words. On API pricing you pay for the tokens you send and the tokens the model writes back, and on the models in cloudfathom’s November 2026 pricing summary, output costs several times more than input. Below: how counting works, what gets billed and how to estimate a monthly bill.

Where these figures come from

This article is research-based. QueenNexa did not run these tokenizers or models. Prices for Claude Sonnet 5.5 come from Anthropic’s pricing page, which we read on 2026-11-28. Other figures come from OpenAI’s help article on tokens, cloudfathom’s token guide (which reports its own tokenizer runs and summarizes provider documentation), NVIDIA’s explainer and OpenAI’s ChatGPT rate card. Where a figure reaches us only through cloudfathom’s secondary summary, we say so, and figures are dated where their source dates them.

How text turns into tokens

Before a model can work with your message, a tokenizer cuts the text into pieces and swaps each piece for a number from a fixed list called the vocabulary. According to cloudfathom, OpenAI’s recent tokenizers have vocabularies of roughly 100,000 to 200,000 entries, and most modern models use byte-pair encoding or a close relative. Training starts from single characters or bytes. The pairs that appear together most often are merged into bigger pieces, and the merging repeats until the vocabulary reaches its target size. Frequent words end up as one token. Rare words stay split.

Here is how one sentence splits on o200k_base, the tokenizer OpenAI’s tiktoken library uses for GPT-4o and the GPT-5 family, as published by cloudfathom. Other tokenizers can split the same text differently, so treat this as an illustration.

How one sentence splits into tokens (illustrative, o200k_base)The·cat·sat·on·the·mat.
How one sentence splits into tokens (illustrative, o200k_base) Dots mark spaces. This split is illustrative: every model's tokenizer divides text differently.

In this o200k_base example, and often in these tokenizers, spaces attach to the following word. Cloudfathom says most tokens in its runs include the space in front of them. OpenAI’s help article makes a related point: “red”, “Red” and ” red” with a leading space are different text and can be encoded differently.

In cloudfathom’s runs, plain English sentences landed near one token per word. Some other kinds of text used more. On the same tokenizer:

Text How it split Tokens
unbelievably un / bel / ievably 3
2026-11-07 202 / 6 / - / 11 / - / 07 6
A 41-character web address 16 pieces 16

The web address worked out to about one token per 2.6 characters, well below the usual four. Cloudfathom attributes that to brand names and slugs being rare in training data. Numbers and dates also split in unexpected places: the year 2026 became two tokens, “202” and “6”. More broadly, cloudfathom says tokenizers are less efficient at unusual text such as long web addresses, rare names or languages they saw less of. If your workload is heavy on that kind of text, the rough ratios below may undercount.

Tokens are not limited to text. NVIDIA describes visual inputs being mapped into discrete tokens, and audio being converted into spectrograms or semantic tokens.

How many words is a token? It depends on the provider

The published rules of thumb disagree, which is expected because each provider uses its own tokenizer. Here they are converted to a common unit: roughly how many tokens 1,000 English words would take. The conversions are our arithmetic on the ratios in cloudfathom’s summary of official guidance.

Provider Published rule of thumb Tokens for 1,000 English words
OpenAI 1 token ≈ 4 characters ≈ 0.75 words 1,000 ÷ 0.75 ≈ 1,333
Google (Gemini) 100 tokens ≈ 60 to 80 words 1,000 ÷ 0.8 = 1,250 to 1,000 ÷ 0.6 ≈ 1,667
Anthropic (current Claude tokenizer) 1M tokens ≈ 555,000 words 1,000 ÷ 0.555 ≈ 1,802
Anthropic (models before Claude Opus 4.7) 1M tokens ≈ 750,000 words 1,000 ÷ 0.75 ≈ 1,333

The spread runs from about 1,250 to about 1,800 tokens for the same 1,000 words, in line with cloudfathom’s planning range of 1.3 to 1.8 tokens per English word. A word counter plus these ratios gives a quick range for a document. It is not a budget.

What actually gets billed

For token-based API pricing, OpenAI says the rate depends on the model and the token category, and input, cached input and output tokens can have different prices. The categories that matter for most text workloads:

  • Input tokens (also called prompt tokens). What you send: your question, instructions, pasted documents, earlier messages in the conversation and tool definitions.
  • Cached input tokens. Input the provider reuses through prompt caching, such as a long system prompt repeated across requests. Cloudfathom reports that on Claude Sonnet 5.5 and GPT-6.1 Sol, a cache read costs 5% of the standard input price.
  • Output tokens (completion tokens in OpenAI’s Chat Completions). The text the model writes. For the models in its November 2026 summary, cloudfathom says output is typically priced at five times the input rate or more. Other providers, models and plans may differ.
  • Reasoning tokens. Used internally by reasoning models before the visible answer. OpenAI says they count toward output usage and are billed as output tokens. Per cloudfathom, Google prices Gemini output “including thinking tokens.” A short visible answer can carry a large hidden output count.

Other things add tokens less obviously:

  • Multiple completions. On OpenAI’s Chat Completions, setting n above 1 generates several answers, and you pay for the generated tokens across them. On the legacy Completions API, best_of = 3 can generate up to 3 × max_tokens across candidates that are not all returned.
  • Request structure. OpenAI notes that message structure, tools, schemas, images and files can affect the full input count beyond the plain text.
  • Images. Per cloudfathom’s summary of Anthropic’s documentation, Claude charges one visual token per 28 × 28 pixel patch. An A4 page scanned at 130 DPI (1075 × 1520 pixels) comes to 2,145 visual tokens.
  • Audio and video. Per the same summary of Google’s Gemini documentation, a 60-second audio clip is about 1,920 tokens (32 per second × 60) and a 60-second video about 15,780 tokens (roughly 263 per second × 60).

OpenAI also notes that some API capabilities use billing units other than tokens, so not every invoice line maps to this list.

Count tokens before you commit

The four-characters rule is fine for a first guess. Before a number goes into a budget, count with the provider’s own tools. OpenAI’s help article documents three levels:

  1. The Tokenizer, for seeing how a piece of plain text splits.
  2. tiktoken, for counting plain text in code. Select the encoding for your target model, for example with tiktoken.encoding_for_model(model).
  3. The input-token counting API (POST /v1/responses/input_tokens). It accepts complete Responses inputs, including messages, images, files, tools and conversations, and its count includes formatting tokens such as message roles and boundaries. OpenAI states that counting with this endpoint is free and does not consume your model’s normal inference quota.

The limit: an input count does not predict how many output tokens the model will generate. Output, including reasoning, has to be estimated from test runs. After each request, the usage fields show what was counted. Chat Completions reports prompt_tokens, completion_tokens and total_tokens. The Responses API reports input_tokens, output_tokens and total_tokens. Activity over time appears in OpenAI’s Usage Dashboard. If you use another provider, check whether it offers a tokenizer or counting endpoint; the sources for this article don’t document those tools.

Worked calculation: one chatbot, five versions of the bill

The setup follows cloudfathom’s example. A small business runs a support chatbot on Claude Sonnet 5.5. It handles 10,000 conversations a month, each using about 1,500 input tokens and 500 output tokens.

On rates: Anthropic’s pricing page lists Claude Sonnet 5.5 at $2 per million input tokens and $10 per million output tokens, with a cache read at $0.10 per million, a 5-minute cache write at $2.50 and a 1-hour cache write at $4 (we checked the page on 2026-11-28; prices change, so confirm them before you budget). The example ignores taxes, other billing units and any plan-specific terms.

Base case

  • Input: 10,000 × 1,500 = 15,000,000 tokens. 15 × $2 = $30
  • Output: 10,000 × 500 = 5,000,000 tokens. 5 × $10 = $50
  • Total: $30 + $50 = $80 a month, or $80 ÷ 10,000 = $0.008 per conversation

You can rerun the numbers with your own volumes below. The starting values match the base case.

AI API monthly cost estimator

Illustrative inputs you can change. Not current vendor quotes.

With these illustrative inputs, 10,000 requests a month cost $80.00 ($30.00 input, $50.00 output).

Variation A: prompt caching (illustrative split). Assume 1,000 of the 1,500 input tokens are a stable system prompt that gets cached. A cache read costs $0.10 per million, 5% of the $2 input price.

  • Cached reads: 10,000 × 1,000 = 10,000,000 tokens. 10 × $0.10 = $1
  • Fresh input: 10,000 × 500 = 5,000,000 tokens. 5 × $2 = $10
  • Input subtotal: $1 + $10 = $11
  • Total: $11 + $50 output = $61

That is the best case, where every request reads from a cache that already exists. Writing the cache costs more than normal input: $2.50 per million for the 5-minute cache. If the cache were never reused, so that all 10,000,000 cached tokens were written instead of read, the cache line would be 10 × $2.50 = $25, and the total would be $25 + $10 + $50 = $85, $5 more than the base case. Real traffic lands between the two, depending on how often the same prompt prefix is reused inside the cache window.

Variation B: hidden reasoning (illustrative what-if). Assume 1,500 reasoning tokens per conversation, billed at the output rate. Note the source mismatch: OpenAI documents reasoning tokens billed as output, and cloudfathom reports Google prices Gemini output including thinking tokens. The sources do not say how Anthropic bills this for Sonnet 5.5, so read this as a sensitivity test on Sonnet 5.5’s rates, not a statement about Anthropic’s billing.

  • Reasoning: 10,000 × 1,500 = 15,000,000 tokens. 15 × $10 = $150
  • Total: $80 + $150 = $230, which is $230 ÷ $80 ≈ 2.9 times the base case

Variation C: tokenizer change (hypothetical). When Anthropic introduced a new tokenizer with Claude Opus 4.7, it warned that identical text could produce anywhere from the same number of tokens to about 35% more, at an unchanged per-token price, per cloudfathom. Applying that upper bound to this bill: $80 × 1.35 = $108.

Variation D: batch processing. Anthropic’s pricing page says its Batch API gives a 50 percent discount on both input and output tokens for asynchronous work, and cloudfathom reports that OpenAI and Google offer a half-price batch option too. $80 × 0.5 = $40. That condition matters here. Our practical read, not a sourced rule: customers in a live support chat expect replies right away, so the chat itself is a poor fit for batch. A non-urgent job attached to it, such as tagging past tickets overnight, is the kind of work the batch option describes.

Version Monthly cost Change vs. base
Base $80 —
A: caching, best case (every request reads the cache) $61 −$19
A2: caching, worst case (cache never reused, all writes) $85 +$5
B: 1,500 reasoning tokens per chat $230 +$150
C: 35% more tokens from a tokenizer change $108 +$28
D: batch, non-urgent work only $40 −$40

The takeaway: in this example, output and hidden reasoning move the bill far more than prompt length. As a hypothetical, trimming 300 input tokens from each conversation saves 10,000 × 300 = 3,000,000 tokens, or 3 × $2 = $6 a month, which is $6 ÷ 10,000 = $0.0006 per conversation. Adding 1,500 reasoning tokens per reply adds $150 a month. To compare these numbers across models, the AI model price comparison and the AI token cost calculator let you swap in different rates.

Why your estimate will probably be wrong

An estimate built from a word count is a starting point. These are the ways it tends to drift, as documented in the sources.

The tokenizer differs, or changes

The same text can produce different counts on different models. OpenAI says this directly and warns against assuming a token ID applies to every model. Variation C shows the risk: a workload can get more expensive with no price change at all. OpenAI draws the practical conclusion that a lower price per million tokens does not necessarily mean a lower total cost, because models tokenize differently and produce different amounts of output and reasoning. Compare models on representative tasks, not on list price.

Language matters

Cloudfathom says tokenizers are trained on text heavily weighted toward English, so many other languages need more tokens for the same meaning. Cloudfathom ran one sentence, “Where is the nearest train station?”, through two OpenAI tokenizers. It is a single-sentence test, so treat it as anecdotal:

Language Newer tokenizer (o200k_base) Older tokenizer (cl100k_base)
English 7 7
Hindi 11 37
Urdu 12 33
Spanish 10 14

The newer tokenizer narrowed the gap, but Hindi still needs about 11 ÷ 7 ≈ 1.6 times as many tokens as English on this example. Cloudfathom also cites a NeurIPS 2023 study by University of Oxford researchers that found one passage’s token count can vary by as much as 15 times across languages. If you serve customers in several languages, count samples in each.

Reasoning is invisible in the answer

Variation B is what cloudfathom calls a common surprise: a short reply, a large output bill. NVIDIA notes that the added tokens from long thinking can require over 100 times more compute than a single inference pass on a traditional model. That is compute, not price, but it helps explain why reasoning-heavy settings can cost more. OpenAI also advises leaving room in the output limit for reasoning tokens as well as the visible answer.

Conversation history gets resent

Per cloudfathom, input includes earlier messages in the conversation. In a chat app that resends the history each turn, input grows as the conversation goes on. A hypothetical: a 500-token system prompt, 100-token user messages and 200-token assistant replies.

  • Turn 1 input: 500 + 100 = 600
  • Turn 2 input: 500 + 100 + 200 + 100 = 900
  • Turn 3 input: 500 + 100 + 200 + 100 + 200 + 100 = 1,200
  • Total input over three turns: 600 + 900 + 1,200 = 2,700 tokens

A naive estimate that counts the system prompt once and the three new user messages once, while ignoring that prior assistant replies become future input, would give 500 + (3 × 100) = 800 tokens. The resent history makes the real figure more than three times that. How much history an app resends varies by product. Cloudfathom notes that when a conversation passes the context window, older parts have to be dropped or summarized.

Long prompts and agents add multipliers

Some providers charge more once a prompt passes a size threshold. Per cloudfathom, OpenAI doubles the GPT-5.5 input price for prompts over 272,000 tokens. Agent-style features can multiply usage too. OpenAI’s ChatGPT rate card says the Ultra setting uses maximum reasoning and may run additional agents, so credit usage depends on the tokens produced by the task and any agents it runs. If you are sizing an automation project, the automation ROI calculator can help check whether time saved still covers a higher token bill.

Tokens inside subscription plans

You may meet tokens without touching an API. OpenAI’s rate card for ChatGPT Business and Enterprise/Edu credit-based pricing measures some features with a fixed number of credits per message or task and others in credits per million tokens. For token-based features it gives this formula:

Total credits = (input tokens ÷ 1,000,000 × input rate) + (cached input tokens ÷ 1,000,000 × cached input rate) + (output tokens ÷ 1,000,000 × output rate)

The familiar split appears again. GPT-6.1 Sol in ChatGPT Work and Codex is listed at 50 credits per million input tokens, 2.5 for cached input and 250 for output, so output is five times input on that row. Two things on the card change the effective cost in different ways. Agent mode is a fixed per-message feature, listed at about 30 credits per message. Fast mode is not priced per message: when using credits, it is charged at 2× the Standard rate for the same model, applied to the token-based Work and Codex rates for supported models such as GPT-6.1 Sol and GPT-6.2 Sol. The rate card doesn’t give a dollar value per credit, and it says your agreement determines which rates apply. For a broader look at products that bill this way, see the AI tools directory.

A decision rule for estimating your token budget

Use the four-characters rule for rough sizing only. Before you budget, count real samples with the provider’s tool. Then multiply for what doesn’t show in the visible text: output length, reasoning, conversation history, multiple completions, agents and re-runs.

Six steps to a token budget you can defend1. Size it roughlyAbout 4 characters per token for English, as a first guess only2. Count with the provider's toolRun representative prompts through a tokenizer or counting endpoint3. Estimate output and reasoningInput counts don't predict output; test real tasks to measure both4. Price each token typeApply input, cached and output rates from the live pricing page5. Add hidden multipliersHistory, multiple completions, agents, re-runs, long-prompt surcharges6. Check actual usageCompare usage fields and dashboards against your estimate after launch
Six steps to a token budget you can defend

In practice:

  1. Collect a set of real examples of the work you plan to send, in each language you support.
  2. Count their input with the provider’s tool. On OpenAI, the Responses input-token counting endpoint is documented as free.
  3. Run them on the candidate models and record output and reasoning tokens from the usage fields.
  4. Price each token type separately, using the provider’s live pricing page rather than a secondary summary. Treat caching and batch as discounts you earn by design, such as keeping a repeated system prompt unchanged or moving work that doesn’t need an instant answer to batch, not as defaults.
  5. As our own rule of thumb: if reasoning or history adds more than about half again to your base figure, test a lighter model or setting before you commit, and redo the estimate whenever the provider changes a model, tokenizer or price.

Frequently asked questions

How many words are in 1,000 tokens?

It depends on the provider's tokenizer. OpenAI's rule of thumb for English is about 750 words per 1,000 tokens. Google's published ratio works out to 600 to 800 words for Gemini. Anthropic's figure for its current Claude tokenizer works out to about 555 words. These are English estimates. Other languages, and text such as numbers or web addresses, can produce a different ratio. For budgeting, cloudfathom recommends counting the real tokens with the provider's own tool.

Are output tokens more expensive than input tokens?

On the models in cloudfathom's November 2026 summary of provider pricing pages, yes. That summary says output is typically priced at about five times the input rate or more. Claude Sonnet 5.5, for example, was listed at $2 per million input tokens and $10 per million output tokens. OpenAI's ChatGPT rate card shows a similar five-to-one gap in credits for GPT-6.1 Sol. Rates vary by provider, model and plan, and they change, so check the provider's live pricing page before you budget.

Do I pay for reasoning tokens I can't see?

For OpenAI's reasoning models, yes. OpenAI says reasoning tokens are used internally before the visible answer, count toward output usage and are billed as output tokens. Per cloudfathom, Google prices Gemini output including thinking tokens. A three-line answer can therefore be billed for thousands of output tokens. The sources here don't describe how every provider handles this, so check your provider's documentation and test representative tasks rather than judging cost by the visible answer.

How can I count tokens before sending a request?

OpenAI documents a Tokenizer tool for seeing how plain text splits and the tiktoken library for counting plain text in code. For a complete request, including messages, images, files, tools and formatting tokens, it offers the Responses input-token counting endpoint (POST /v1/responses/input_tokens). OpenAI states that this endpoint is free and does not consume your normal inference quota. It does not predict output tokens, so you still need test runs. For other providers, check whether they offer a tokenizer or counting endpoint.

Does a lower price per million tokens mean a cheaper bill?

Not necessarily. OpenAI's own guidance says a lower per-million price does not guarantee a lower total cost, because models can split the same text into different numbers of tokens and can generate different amounts of output or reasoning. A cheaper model that writes longer replies or reasons more can cost more per finished task. Compare models by running the same representative tasks and checking the total tokens and cost each one needs.

Do images, audio and video use tokens too?

Yes, for multimodal models. Per cloudfathom's summary of Anthropic's documentation, Claude charges one visual token per 28 by 28 pixel patch, and an A4 page scanned at 130 DPI comes to 2,145 visual tokens. Per the same summary of Google's Gemini documentation, audio runs about 32 tokens per second and video about 263 tokens per second. A screenshot or short clip can therefore use as many tokens as several pages of text.

References

  1. Understanding and counting tokens — OpenAI Help Center
  2. What Are Tokens in AI? How AI Tokens Work & Cost (2026) — Cloudfathom
  3. What Are AI Tokens? The Language and Currency Powering Modern AI — NVIDIA Blog
  4. ChatGPT Rate Card (Business, Enterprise/Edu credit-based pricing) — OpenAI Help Center
  5. Pricing — Anthropic

Get smarter about AI, every week

One practical email with the tools, guides and developments that matter for your business.

One email every Tuesday. Free, and you can unsubscribe in one click.