Prices checked November 26, 2026

AI token calculator

This AI token calculator counts the tokens in your text and shows what it costs to run on every GPT, Claude and Gemini model, cheapest first.

How much of the input is cached?

Each request
Tokens a month
Cheapest a month
Priciest a month

Monthly figures assume 30.44 days. The cached share of the input is priced at each model’s cache-read rate; cache writes and batch discounts are not included. Claude token counts are the GPT estimate plus about 30% (see below). List prices in USD per million tokens, checked on November 26, 2026 against each provider's official pricing page (linked in the Source column). Anthropic bills cache hits on Fable 5.2 at 0.025× input ($0.20), not the 0.05× of Opus and Sonnet. Before batch discounts and regional multipliers.

What AI costs per month on the API

Monthly bill across all 11 models below at an 80% input / 20% output mix, uncached (heavy prompt caching in coding tools cuts the input share by roughly 90–97%, depending on the model).

Monthly volumeBudget (from)Mid-tierFrontier (up to)
1M tokens (~750k words)$0.18$3.60$14.40
10M tokens (~7.5M words)$1.80$36$144
100M tokens (~75M words)$18$360$1,440

Budget = GPT-6 Luna / Claude Haiku 5.5; mid-tier = GPT-6.2 Sol / Claude Sonnet 5.5; frontier = GPT-6.2 Astra / Claude Fable 5.2. Computed directly from the list prices below.

API prices per 1M tokens used in this calculator

ModelProviderInput / 1MCached input / 1MOutput / 1MLong promptsSource
GPT-6.2 SolOpenAI$2.00$0.10$10.00$4 / $15 for prompts over 272,000 tokensdevelopers.openai.com
GPT-6.2 AstraOpenAI$8.00$0.40$40.00$16 / $60 for prompts over 272,000 tokensdevelopers.openai.com
GPT-6.1 TerraOpenAI$1.00$0.05$5.00$2 / $7.50 for prompts over 272,000 tokensdevelopers.openai.com
GPT-6 LunaOpenAI$0.10$0.01$0.50$0.20 / $0.75 for prompts over 272,000 tokensdevelopers.openai.com
Claude Opus 5.5Anthropic$4.00$0.20$20.00platform.claude.com
Claude Fable 5.2Anthropic$8.00$0.20$40.00platform.claude.com
Claude Sonnet 5.5Anthropic$2.00$0.10$10.00platform.claude.com
Claude Haiku 5.5Anthropic$0.10$0.01$0.50$0.50 / $2.50 for prompts over 100,000 tokensplatform.claude.com
Gemini 4 NeonGoogle$3.00$0.15$15.00aistudio.google.com
Gemini 4 CarbonGoogle$4.00$0.20$20.00aistudio.google.com
Gemini 4 HydrogenGoogle$1.50$0.075$7.50aistudio.google.com

List prices in USD per million tokens, checked on November 26, 2026 against each provider's official pricing page (linked in the Source column). Anthropic bills cache hits on Fable 5.2 at 0.025× input ($0.20), not the 0.05× of Opus and Sonnet. Before batch discounts and regional multipliers.

How to use the AI token calculator

  1. Start from what you have. Paste a prompt, document or code; pick a typical task such as a chat message or a coding-agent step; or type the token counts if you already know them.
  2. Set the volume. Enter how many requests you run a day and how much of each prompt is cached. Coding tools cache most of their context, chat usually caches none.
  3. Read the result. Every model is priced on the same workload and sorted cheapest first, with the cost of one request and of a month.

Everything runs in your browser: the text you paste is not sent anywhere.

How many tokens is my text?

Models read text in tokens, which are pieces of words. For English the common rule is about four characters, or three quarters of a word, per token. That gives a quick words to tokens conversion, and the reverse for tokens to words:

WordsTokens, aboutTokensWords, about
100 words1331,000 tokens750
750 words1,00010,000 tokens7,500
1,000 words1,333100,000 tokens75,000
10,000 words13,3331,000,000 tokens750,000

Chinese, Japanese and Korean text works out closer to one token per character, and code with many symbols uses more tokens than prose of the same length.

Claude token counter

Claude counts more tokens than GPT for the same text. Anthropic says its tokenizer for Claude 4.7 and later models produces about 30% more tokens than the one before, so this calculator adds about 30% to the estimate for Claude models. For an exact number in code, Anthropic’s API has a count_tokens endpoint. For how many tokens a Claude subscription holds, see Claude usage limits.

OpenAI token calculator

For GPT models the four-characters rule is a close estimate for English. OpenAI publishes its tokenizer, so developers can count exactly in code, and every API response reports the tokens that were billed.

Gemini token calculator

Gemini models count close to GPT for ordinary text, so the calculator uses the same estimate. The Gemini API can also count tokens for a request before you send it.

What your tokens cost

API prices are quoted per million tokens, with input and output priced separately; output costs several times more. The cost of one request is input tokens times the input price, plus output tokens times the output price, divided by one million. Three things change the bill:

Related

To see roughly how many tokens a subscription holds, see AI subscription usage limits, or one provider at a time: ChatGPT usage limits, Claude usage limits and Gemini usage limits. For plan prices, see ChatGPT pricing, Claude pricing, Gemini pricing or the full price table.

Frequently asked questions

How many tokens is 1,000 words?

About 1,300 tokens of English on GPT and Gemini models, using the common rule of about four characters, or three quarters of a word, per token. Claude models count roughly 30% more for the same text. Chinese and Japanese run closer to one token per character.

Is the token count exact?

No, it is an estimate that is usually within about 10 to 20% for ordinary text. Each provider offers an exact count in code, for example Anthropic’s count_tokens endpoint, and the API response reports the tokens actually billed.

How do I calculate the API cost from tokens?

Multiply input tokens by the input price per million and output tokens by the output price per million, add them, and divide by one million. Then multiply by the number of requests. The calculator does this for every model at once.

Does prompt caching lower the cost?

Yes. Cached input is billed at a small fraction of the normal input price, around 5 to 10% on the models listed here. Coding tools that resend the same context on every step benefit the most, which is what the cache setting in the calculator models.

Which AI model is cheapest per token?

Among the models in this calculator, GPT-6 Luna and Claude Haiku 5.5 are the cheapest at $0.10 per million input tokens and $0.50 per million output tokens. The flagship models, GPT-6.2 Astra and Claude Fable 5.2, cost about 80 times as much. The cheapest model for your task depends on how long your prompts and answers are, which is what the calculator sorts by.