LLMCostLab

PricesCompare → Claude Opus 5 vs Gemini 3.1 Pro

Claude Opus 5 vs Gemini 3.1 Pro: API cost compared

Claude Opus 5 lists at $5.000 in / $25.00 out per 1M tokens. Gemini 3.1 Pro lists at $2.000 in / $12.00. Sticker price only tells you so much — below is what each actually costs across eight production workloads.

advertisement
Cheaper on more workloads
Gemini 3.1 Pro
wins 8 of 8
Blended rate gap
2.2x
at 3:1 in:out

Side by side

Claude Opus 5Gemini 3.1 Pro
ProviderAnthropicGoogle
Input per 1M$5.000$2.000
Output per 1M$25.00$12.00
Cached input per 1M$0.500not published
Context window200k1M
Blended per 1M (3:1)$10.00$4.500

Monthly cost by workload

Caching applied at each workload's typical hit rate. This is where the two models actually separate.

WorkloadClaude Opus 5Gemini 3.1 ProCheaperDifference
Customer support chatbot$644.50$390.00Gemini 3.1 Pro$254.50 (39%)
RAG document Q&A$920.00$464.00Gemini 3.1 Pro$456.00 (50%)
Coding agent$462.50$344.00Gemini 3.1 Pro$118.50 (26%)
Bulk summarization$6,730$2,880Gemini 3.1 Pro$3,850 (57%)
Structured data extraction$8,725$5,000Gemini 3.1 Pro$3,725 (43%)
Long-form content generation$1,073$520.00Gemini 3.1 Pro$553.00 (52%)
Email triage agent$2,012$1,360Gemini 3.1 Pro$652.50 (32%)
Translation pipeline$7,024$3,330Gemini 3.1 Pro$3,694 (53%)
advertisement

How to read this

Gemini 3.1 Pro is cheaper on the majority of these workloads, but "majority" is not the decision. The output:input price ratio is 5.0 for Claude Opus 5 and 6.0 for Gemini 3.1 Pro. If your traffic is output-heavy — long-form drafting, translation — the model with the lower output price wins regardless of what the input price suggests. If you are input-heavy — RAG, bulk summarization, agents re-reading a codebase — the cached input rate matters more than either headline number.

Cost is also not the only axis. This site does not benchmark quality, latency, or rate limits, and a model that is 3x cheaper but needs two attempts per task is not cheaper. Use these numbers to size a bill, then validate on your own evals.

Run your own numbers

Cost calculator

Enter your own numbers, or start from a workload preset. Costs are monthly and update as you type.

Cheapest model
Cheapest → priciest spread
ModelIn /1MOut /1MMonthlyvs best