Skip to main content
All free tools

AI & LLM development

LLM API Cost Calculator

Enter your monthly requests and average token counts. The calculator prices the same workload on Claude, OpenAI, and Gemini models, grouped into price tiers so the comparison stays fair. It runs entirely in your browser, and nothing you type is sent anywhere.

This is the companion to my guide, Claude vs GPT vs Gemini: An API Comparison for Developers. I have no affiliation with any of these vendors, and the prices come from their own pricing pages.

  • Runs in your browser
  • Nothing is sent anywhere
  • Prices checked on vendor pages
Start from an example

Illustrative numbers only. Replace them with your own.

Your workload

The whole prompt: system prompt, history, documents, and tool definitions.

Include any reasoning or thinking tokens, because vendors bill them as output.

Caching and batch

Cache reads cost a small fraction of normal input. A stable prompt prefix is what makes them possible.

Claude and OpenAI charge a 25% premium on these tokens. Gemini 4 lists implicit caching only, with no write fee.

All three vendors list 50% off for asynchronous batch processing. It does not suit interactive features.

Price date

Google has announced a price increase for Gemini 3.8 Flash on January 1, 2027.

Tokenizer differences

Each vendor counts tokens differently, so the same text produces different totals. Enter the numbers above in your main vendor's tokens, then adjust the others here. A value of 1.10 means that vendor counts 10% more tokens for the same text. Measure it with each vendor's token counting feature.

Estimated monthly cost

Tiers are price groupings that I chose. They do not claim that the models are equal in quality, and a cheaper model that fails your task costs more in the end. Run your own test set before you decide.

What this does not include

  • Tool charges, such as web search at $10 per 1,000 searches on Claude and OpenAI, or Google Search grounding on Gemini.
  • Faster service tiers, such as OpenAI's Flex, Fast, and Ultrafast modes, and Claude's fast mode.
  • Longer cache lifetimes, which cost more to write, and Gemini's hourly storage fees for explicit caches.
  • Free tiers, rate limits, volume discounts, committed-use deals, data residency surcharges, and taxes.
  • Older models that each vendor still lists, and models in limited availability.
Price list and sources

Prices are USD per million tokens, checked against each vendor's own pricing page on November 20, 2026. Cache writes assume a 5-minute lifetime on Claude and a 30-minute lifetime on OpenAI.

Model prices used by the calculator
ModelTierInput / outputCache read / writeNotes
Claude Fable 5.2AnthropicTop reasoning$8.00 / $40.00$0.20 / $10.00-
GPT-6.2 AstraOpenAITop reasoning$8.00 / $40.00$0.40 / $10.00Prompts over 272,000 tokens: $16.00 / $60.00.
Gemini 4 CarbonGoogleTop reasoning$4.00 / $20.00$0.20 / $4.00-
Gemini 4 ArgonGoogleTop reasoning$4.00 / $20.00$0.20 / $4.00-
Claude Opus 5.5AnthropicStrong all-rounder$4.00 / $20.00$0.20 / $5.00-
Gemini 4 NeonGoogleStrong all-rounder$3.00 / $15.00$0.15 / $3.00-
Claude Sonnet 5.5AnthropicEveryday workhorse$2.00 / $10.00$0.10 / $2.50-
GPT-6.2 SolOpenAIEveryday workhorse$2.00 / $10.00$0.10 / $2.50Prompts over 272,000 tokens: $4.00 / $15.00.
GPT-6.1 TerraOpenAIEveryday workhorse$1.00 / $5.00$0.050 / $1.25Prompts over 272,000 tokens: $2.00 / $7.50.
Gemini 4 HydrogenGoogleEveryday workhorse$1.50 / $7.50$0.075 / $1.50-
Gemini 3.8 FlashGoogleEveryday workhorse$0.75 / $3.75$0.075 / $0.75Later: $1.50 / $7.50. Price doubles on January 1, 2027.
Claude Haiku 5.5AnthropicFast and cheap$0.10 / $0.50$0.010 / $0.13Prompts over 100,000 tokens: $0.50 / $2.50.
GPT-6 LunaOpenAIFast and cheap$0.10 / $0.50$0.010 / $0.13Prompts over 272,000 tokens: $0.20 / $0.75.
Gemini 3.5 Flash-LiteGoogleFast and cheap$0.30 / $2.50$0.030 / $0.30-