Claude vs Gemini: API Pricing Compared
Side-by-side Claude and Gemini API pricing on the same workload. Claude is the premium option at both ends of the range, by roughly 5x to 10x.
Short answer
Gemini is cheaper at every point in the range, by roughly 10x at the bottom and 5x at the top. The question is whether the output difference earns it.
Prices verified 2026-08-15. Set your own token counts below, because the ranking changes with workload shape.
| Model | Input | Output | Monthly total | vs cheapest |
|---|---|---|---|---|
Gemini 2.5 Flash-Lite Google gemini-2.5-flash-lite | $27.60 | $6.40 | $34.00 | 1.0x |
Gemini 3.1 Flash-Lite Google gemini-3.1-flash-lite | $69.00 | $24.00 | $93.00 | 2.7x |
Gemini 3.5 Flash-Lite Google gemini-3.5-flash-lite | $82.80 | $40.00 | $122.80 | 3.6x |
Gemini 2.5 Flash Google gemini-2.5-flash | $82.80 | $40.00 | $122.80 | 3.6x |
Gemini 3.7 Flash Google gemini-3.7-flash | $207.00 | $60.00 | $267.00 | 7.9x |
Gemini 3.6 Flash Google gemini-3.6-flash | $207.00 | $60.00 | $267.00 | 7.9x |
Claude Haiku 4.5 Anthropic claude-haiku-4-5 | $276.00 | $80.00 | $356.00 | 10.5x |
Gemini 3.5 Flash Google gemini-3.5-flash | $414.00 | $144.00 | $558.00 | 16.4x |
Claude Sonnet 5 Anthropic claude-sonnet-5 intro rate | $552.00 | $160.00 | $712.00 | 20.9x |
Gemini 3.1 Pro (Preview) Google gemini-3.1-pro-preview | $552.00 | $192.00 | $744.00 | 21.9x |
Claude Sonnet 4.6 Anthropic claude-sonnet-4-6 | $828.00 | $240.00 | $1,068 | 31.4x |
Claude Opus 5 Anthropic claude-opus-5 | $1,380 | $400.00 | $1,780 | 52.4x |
Claude Opus 4.8 Anthropic claude-opus-4-8 | $1,380 | $400.00 | $1,780 | 52.4x |
Claude Fable 5 Anthropic claude-fable-5 | $2,760 | $800.00 | $3,560 | 104.7x |
Across the models shown, this workload ranges from $34.00 to $3,560 a month, a 105x spread. Model choice is almost always a larger lever than prompt optimisation.
Prices are USD per million tokens, taken from each provider's own pricing page and last verified on 2026-08-15. Standard tier only: enterprise discounts, committed-use pricing, and free tiers are not modelled. Verify against Anthropic, OpenAI, Google, xAI before committing budget.
Comparing something else? See the other head-to-heads or use the full calculator across all four providers.
How to use Claude vs Gemini: API Pricing Compared
Describe one request
Enter the input and output tokens for a single typical request, or pick a preset. The table is fixed to Anthropic and Google.
Set volume and caching
Add your monthly request count, then set the share of input tokens served from the prompt cache. Caching usually moves the answer more than the choice of provider does.
Compare the monthly bill
Models are ranked cheapest first across both providers, with the multiple over the cheapest option so you can see whether a switch is worth the migration.
This one is not close
Unlike the other comparisons on this site, there is no crossover point here. On the same workload, the cheapest Claude model costs about ten times the cheapest Gemini model, and the most expensive Claude model costs about five times the most expensive Gemini one. Gemini is cheaper everywhere.
That makes this a capability question rather than a pricing question. Nobody picks Claude on this table, so the only honest way to run the comparison is to work out whether the output difference on your actual task is worth a five to tenfold premium. For a lot of extraction, classification and summarisation work it plainly is not. For work where a wrong answer is expensive to catch, it often is.
The useful discipline is to measure cost per successfully completed task rather than cost per million tokens. A cheaper model that needs two attempts, a longer prompt and a human check is not cheaper. A cheaper model that gets it right first time on your workload makes the premium indefensible.
Where the premium is easiest to justify
Long agentic runs are the clearest case. When a model executes many steps against tools, small differences in instruction-following compound, and a failure at step twelve wastes everything before it. Cost per completed run can favour the more expensive model even at a large per-token premium.
The reverse case is high-volume, low-stakes, well-specified work. Tagging support tickets, extracting fields from documents, routing requests. The task is easy to verify, a failure is cheap, and volume is exactly where a tenfold rate difference turns into a real number on the invoice.
Prompt caching narrows the gap but does not close it. Both providers discount cached input to roughly a tenth of the standard rate, so a high hit rate scales both bills down together and leaves the ratio between them broadly intact.
Frequently Asked Questions
Is Gemini cheaper than Claude?
Yes, at every point in both catalogues. On the same workload the cheapest Gemini model costs roughly a tenth of the cheapest Claude model, and the most expensive Gemini model roughly a fifth of the most expensive Claude one. There is no workload shape where the table favours Claude on price alone.
Then why would anyone pay for Claude?
Because cost per million tokens is not cost per completed task. If a model needs fewer retries, shorter prompts, or less human correction on your specific work, it can be cheaper overall despite a much higher rate. That is worth measuring on your own task rather than assuming in either direction.
Does prompt caching change the ratio?
Not really. Both providers discount cached input to about a tenth of the standard input rate, so raising your cache hit rate scales both bills down and leaves the gap between them roughly where it was. Caching is worth doing on either provider, but it is not a reason to pick one.
How should I actually decide?
Run the same evaluation set against one model from each side, and count successful completions rather than tokens. Multiply your failure rate by what a failure costs you, in retries and in human time, then add that to the token cost from the calculator above. The answer is frequently different from what the raw rates suggest.
Suggested Tools
LLM API Cost Calculator
Compare what a workload costs across Anthropic, OpenAI, Google and xAI, including prompt caching, batch rates and long-context tiers.
Token Counter & Context Visualizer
Paste a prompt or file to estimate its token count, see how much of each model's context window it fills, and what it costs to send.