Token Cost Calculator: Compare API Prices Across Providers

This page puts every major model's list price in one table and one calculator. Enter your input tokens, cached tokens, and output tokens, and the calculator returns the cost per request and per month for each model.

Current list prices, all providers

List prices verified 2026-10-11. All prices are USD per 1 million tokens, standard tier.

ModelInput $/1MCached input $/1MOutput $/1MContext
Claude Fable 5.1$10.00$0.25$50.001,000,000
Claude Opus 5.5$4.00$0.20$20.001,000,000
Claude Sonnet 5.5$2.00$0.10$10.001,000,000
Claude Haiku 5.5 (up to 100K prompt)$0.10$0.01$0.501,000,000
Claude Haiku 5.5 (over 100K prompt)$0.50$0.05$2.501,000,000
Claude Fable 5 (legacy)$10.00$1.00$50.001,000,000
Claude Opus 5 (legacy)$5.00$0.50$25.001,000,000
Claude Opus 4.8 (legacy)$5.00$0.50$25.001,000,000
Claude Sonnet 5 (legacy)$2.00$0.20$10.001,000,000
Claude Sonnet 4.6 (legacy)$3.00$0.30$15.001,000,000
Claude Haiku 4.5 (legacy)$1.00$0.10$5.00200,000
GPT-6 Astra$10.00$1.00$50.001,050,000
GPT-6.1 Sol$2.00$0.10$10.001,050,000
GPT-6 Luna$0.10$0.01$0.501,050,000
GPT-5.6 Sol (promo price)$4.00$0.40$20.001,050,000
GPT-5.6 Terra$2.00$0.20$12.001,050,000
GPT-5.6 Luna$0.20$0.02$1.201,050,000
GPT-5.5$5.00$0.50$30.001,050,000
GPT-5 (shuts down Dec 11, 2026)$1.25$0.125$10.00400,000
GPT-5 mini (shuts down Dec 11, 2026)$0.25$0.025$2.00400,000
GPT-5 nano (shuts down Dec 11, 2026)$0.05$0.005$0.40400,000
GPT-4.1$2.00$0.50$8.001,047,576
GPT-4o$2.50$1.25$10.00128,000
GPT-4o mini$0.15$0.075$0.60128,000
Gemini 3.8 Flash (promo price)$0.75$0.075$3.751,048,576
Gemini 3.6 Flash (promo price)$0.75$0.075$3.751,048,576
Gemini 3.5 Flash-Lite$0.30$0.03$2.501,048,576
Gemini 3.1 Pro (preview) (up to 200K prompt)$2.00$0.20$12.001,048,576
Gemini 3.1 Pro (preview) (over 200K prompt)$4.00$0.40$18.001,048,576
Gemini 3.1 Flash-Lite$0.25$0.025$1.501,048,576
Gemini 2.5 Pro (up to 200K prompt)$1.25$0.125$10.001,048,576
Gemini 2.5 Pro (over 200K prompt)$2.50$0.25$15.001,048,576
Gemini 2.5 Flash$0.30$0.03$2.501,048,576
Gemini 2.5 Flash-Lite$0.10$0.01$0.401,048,576
DeepSeek V4.1 Flash$0.30$0.006$1.201,000,000
DeepSeek V4 Pro$1.32$0.044$3.961,000,000
Kimi K3$3.00$0.30$15.001,048,576
Kimi K2.7 Code$0.95$0.19$4.00262,144
Kimi K2.7 Code Highspeed$1.90$0.38$8.00262,144
Kimi K2.6$0.95$0.16$4.00262,144
Grok 4.7 (under 200K prompt)$2.00$0.50$6.00500,000
Grok 4.7 (200K+ prompt)$4.00$1.00$12.00500,000
Grok 4.6 (under 200K prompt)$2.00$0.50$6.00500,000
Grok 4.6 (200K+ prompt)$4.00$1.00$12.00500,000
Grok 4.5 (under 200K prompt)$2.00$0.30$6.00500,000
Grok 4.5 (200K+ prompt)$4.00$0.60$12.00500,000
Grok 4.3 (under 200K prompt)$1.25$0.20$2.501,000,000
Grok 4.3 (200K+ prompt)$2.50$0.40$5.001,000,000
Grok Build 0.1 (under 200K prompt)$1.00$0.20$2.00256,000
Grok Build 0.1 (200K+ prompt)$2.00$0.40$4.00256,000

Anthropic cached input is the prompt cache read price: 0.1x the input price on most Claude models, 0.05x on Opus 5.5 and Sonnet 5.5, and 0.025x on Fable 5.1. Promotional prices: GPT-5.6 Sol through at least 2026-11-21, then $5.00 / $0.50 / $30.00; Gemini 3.8 Flash and 3.6 Flash through 2026-12-31, then $1.50 / $0.15 / $7.50. Rows split by prompt size bill the higher rate for the whole request once the prompt crosses the threshold. DeepSeek prices are peak rates, checked 2026-10-11; every DeepSeek rate is half price during DeepSeek off-peak hours.

How to compare these prices

Which column matters depends on your workload.

For chat workloads, the output price dominates. A chat response is long relative to its prompt, and output tokens cost 3x to 8x more than input tokens on most models in the table. Two models with similar input prices can produce very different bills once output volume grows.

For agent workloads, the cached input price dominates. An agent re-sends a large stable prefix, system prompt, tools, and history, on every step. When that prefix is cached, most of your input tokens bill at the cached rate. GPT-5 charges $0.125 per 1M cached input tokens against $1.25 uncached, and Claude cache reads bill at 0.1x the input price. The cached column is the one to compare for any loop that runs many steps.

Tokens are not comparable across providers

Each provider counts tokens with its own tokenizer, so identical text produces different token counts on different platforms. The same difference exists inside a provider. Claude models from Opus 4.7 onward use a newer tokenizer that produces roughly 1x to 1.35x the tokens of the older family on the same text. A price-per-token comparison is only exact after you count the tokens with each provider's own counter. Use the token counter before you trust a cross-provider estimate.

Per-provider pricing pages

Claude API pricing

All Claude models, cache and batch discounts, tokenizer differences by generation.

Gemini API pricing

Gemini 2.5 Pro and Flash, and the 200K prompt price tier explained.

OpenAI API pricing

The full GPT lineup with cached input prices for every model.

Context limits also constrain what a model can do at any price. See context windows compared.