Skip to content

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.

Share

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.

Start from
Prompt cache hit rate60%
Share of input tokens served from cache. Cache reads are typically a tenth of the input rate, so this is the single biggest lever on a repeated-prefix workload.
ModelInputOutputMonthly totalvs cheapest
Gemini 2.5 Flash-Lite
Googlegemini-2.5-flash-lite
$27.60$6.40$34.001.0x
Gemini 3.1 Flash-Lite
Googlegemini-3.1-flash-lite
$69.00$24.00$93.002.7x
Gemini 3.5 Flash-Lite
Googlegemini-3.5-flash-lite
$82.80$40.00$122.803.6x
Gemini 2.5 Flash
Googlegemini-2.5-flash
$82.80$40.00$122.803.6x
Gemini 3.7 Flash
Googlegemini-3.7-flash
$207.00$60.00$267.007.9x
Gemini 3.6 Flash
Googlegemini-3.6-flash
$207.00$60.00$267.007.9x
Claude Haiku 4.5
Anthropicclaude-haiku-4-5
$276.00$80.00$356.0010.5x
Gemini 3.5 Flash
Googlegemini-3.5-flash
$414.00$144.00$558.0016.4x
Claude Sonnet 5
Anthropicclaude-sonnet-5 intro rate
$552.00$160.00$712.0020.9x
Gemini 3.1 Pro (Preview)
Googlegemini-3.1-pro-preview
$552.00$192.00$744.0021.9x
Claude Sonnet 4.6
Anthropicclaude-sonnet-4-6
$828.00$240.00$1,06831.4x
Claude Opus 5
Anthropicclaude-opus-5
$1,380$400.00$1,78052.4x
Claude Opus 4.8
Anthropicclaude-opus-4-8
$1,380$400.00$1,78052.4x
Claude Fable 5
Anthropicclaude-fable-5
$2,760$800.00$3,560104.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

1

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.

2

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.

3

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.