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.
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 volume | Budget (from) | Mid-tier | Frontier (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
| Model | Provider | Input / 1M | Cached input / 1M | Output / 1M | Long prompts | Source |
|---|---|---|---|---|---|---|
| GPT-6.2 Sol | OpenAI | $2.00 | $0.10 | $10.00 | $4 / $15 for prompts over 272,000 tokens | developers.openai.com |
| GPT-6.2 Astra | OpenAI | $8.00 | $0.40 | $40.00 | $16 / $60 for prompts over 272,000 tokens | developers.openai.com |
| GPT-6.1 Terra | OpenAI | $1.00 | $0.05 | $5.00 | $2 / $7.50 for prompts over 272,000 tokens | developers.openai.com |
| GPT-6 Luna | OpenAI | $0.10 | $0.01 | $0.50 | $0.20 / $0.75 for prompts over 272,000 tokens | developers.openai.com |
| Claude Opus 5.5 | Anthropic | $4.00 | $0.20 | $20.00 | platform.claude.com | |
| Claude Fable 5.2 | Anthropic | $8.00 | $0.20 | $40.00 | platform.claude.com | |
| Claude Sonnet 5.5 | Anthropic | $2.00 | $0.10 | $10.00 | platform.claude.com | |
| Claude Haiku 5.5 | Anthropic | $0.10 | $0.01 | $0.50 | $0.50 / $2.50 for prompts over 100,000 tokens | platform.claude.com |
| Gemini 4 Neon | $3.00 | $0.15 | $15.00 | aistudio.google.com | ||
| Gemini 4 Carbon | $4.00 | $0.20 | $20.00 | aistudio.google.com | ||
| Gemini 4 Hydrogen | $1.50 | $0.075 | $7.50 | aistudio.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
- 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.
- 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.
- 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:
| Words | Tokens, about | Tokens | Words, about |
|---|---|---|---|
| 100 words | 133 | 1,000 tokens | 750 |
| 750 words | 1,000 | 10,000 tokens | 7,500 |
| 1,000 words | 1,333 | 100,000 tokens | 75,000 |
| 10,000 words | 13,333 | 1,000,000 tokens | 750,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:
- Caching. Repeated context read from the cache costs a small fraction of normal input. The cache setting applies each model’s cache-read price to that share of the input.
- Long prompts. Some models charge a higher rate once a single prompt passes a size limit, listed in the price table. The calculator switches automatically.
- Batch discounts. Running requests in batch is usually half price. That is not included here.
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.