BroadRouter

Claude Opus 5 vs Gemini 3.1 Pro Preview API pricing

Updated

Claude Opus 5: USD 5 input, USD 25 output per 1M tokens (Anthropic and 3 others). Gemini 3.1 Pro Preview: USD 2 input, USD 12 output per 1M tokens (Google Gemini API and 2 others). At 3 input tokens per output token, Claude Opus 5 costs 2.22× as much as Gemini 3.1 Pro Preview (USD 10 vs USD 4.50 per 1M).

Picked by the same-tier rule: both are in the fourth quarter of the indexed models by price (above USD 1.40 per 1M tokens at 3:1) and in the same size class, large (a tier word such as Pro, Opus or Max, or 200B parameters or more). Gemini 3.1 Pro Preview is the 3rd-closest-priced model from another maker to Claude Opus 5 in that bucket. Price only: every number is computed from prices read from each provider's own pricing page (linked per cell, newest check 2026-11-15), with no claim about quality, speed or accuracy.

How do Claude Opus 5 and Gemini 3.1 Pro Preview differ on price?

Claude Opus 5 and Gemini 3.1 Pro Preview prices side by side

USD per 1M tokens, standard tier. "Cheapest" is the lowest price at 3 input tokens to 1 output token; each line can come from a different provider.

Claude Opus 5 and Gemini 3.1 Pro Preview API prices compared
PriceClaude Opus 5Gemini 3.1 Pro Preview
Model pageClaude Opus 5
Anthropic · 5 providers
Gemini 3.1 Pro Preview
Google · 3 providers
Cheapest standard price, blended 3:1USD 10
USD 5 in / USD 25 out at Anthropic and 3 others
Anthropic page checked 2026-11-14
USD 4.50 lower
USD 2 in / USD 12 out at Google Gemini API and 2 others
Google Gemini API page checked 2026-11-14
Cheapest inputUSD 5
Anthropic source
USD 2 lower
Google Gemini API source
Cheapest cached inputUSD 0.50
Anthropic source
USD 0.20 lower
Google Gemini API source
Cheapest outputUSD 25
Anthropic source
USD 12 lower
Google Gemini API source
Maker's own APIUSD 5 / USD 25
Anthropic source
USD 2 / USD 12
Google Gemini API source
Median standard priceUSD 5 / USD 25
input / output, 5 prices
USD 2 / USD 12
input / output, 3 prices
Context window1,000,000 tokens, largest stated1,048,576 tokens, largest stated
Providers with a standard price53

Report a wrong price or number (email to info@broadnet.ai, with this page's link filled in).

What do Claude Opus 5 and Gemini 3.1 Pro Preview cost for a real workload?

30 days at each model's cheapest standard price for the workload (presets of the cost calculator; cached input at the cached price where listed).

Monthly cost of three workloads on Claude Opus 5 and Gemini 3.1 Pro Preview
WorkloadClaude Opus 5Gemini 3.1 Pro PreviewDifference
Support chatbot
2,000 requests a day, 1,500 input tokens (60% cached), 300 output
USD 657.00
Anthropic
USD 298.80
Google Gemini API
USD 358.20
Gemini 3.1 Pro Preview lower
RAG over documents
1,000 requests a day, 8,000 input tokens (30% cached), 500 output
USD 1,251
Anthropic
USD 530.40
Google Gemini API
USD 720.60
Gemini 3.1 Pro Preview lower
Coding agent (one developer)
1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning
USD 4,365
Anthropic
USD 1,926
Google Gemini API
USD 2,439
Gemini 3.1 Pro Preview lower

Gemini 3.1 Pro Preview is cheaper on all three workloads. The widest gap is on RAG over documents: the dearer model costs 2.36× as much as the cheaper one.

Does the cheaper model change with your input:output ratio?

Gemini 3.1 Pro Preview is cheaper at every mix of input and output tokens, before cache discounts: its cheapest input price and its cheapest output price are both at or below Claude Opus 5's, so the input:output ratio never changes the answer.

Price per 1M tokens of Claude Opus 5 and Gemini 3.1 Pro Preview at different input:output mixes
Input : output tokensClaude Opus 5Gemini 3.1 Pro Preview
1 : 3 (long answers)USD 20
Anthropic
USD 9.50 lower
Google Gemini API
1 : 1USD 15
Anthropic
USD 7 lower
Google Gemini API
3 : 1 (the site’s blend)USD 10
Anthropic
USD 4.50 lower
Google Gemini API
10 : 1 (retrieval, long prompts)USD 6.818
Anthropic
USD 2.909 lower
Google Gemini API
30 : 1 (agents, big contexts)USD 5.645
Anthropic
USD 2.323 lower
Google Gemini API

USD per 1M tokens at the cheapest standard provider for each mix, before cache discounts. Thinking tokens bill as output.

What do Claude Opus 5 and Gemini 3.1 Pro Preview cost per character in other languages?

Not measured: the real cost by language dataset covers only tokenizers we could measure from published files, and Claude Opus 5 and Gemini 3.1 Pro Preview are not among them. Count tokens on your own text with the counters below.

Check it on your own traffic

More comparisons: Claude Opus 5.5 vs Claude Opus 5 · Claude Fable 5 vs Claude Opus 5 · Claude Opus 5 vs Claude Sonnet 5 · Gemini 3.1 Pro Preview vs Gemini 2.5 Pro · Gemini 3.1 Pro Preview vs Gemini 3.1 Flash-Lite · every Claude Opus 5 comparison · every Gemini 3.1 Pro Preview comparison · all 662 price comparisons

Questions

Is Claude Opus 5 cheaper than Gemini 3.1 Pro Preview?

No. On a blend of 3 input tokens to 1 output token, Gemini 3.1 Pro Preview costs USD 4.50 per 1M tokens and Claude Opus 5 USD 10, at each model's cheapest standard price. For input alone, Gemini 3.1 Pro Preview is cheaper (USD 2 against USD 5 per 1M); for output alone, Gemini 3.1 Pro Preview is (USD 12 against USD 25). This compares price only, not quality.

What do Claude Opus 5 and Gemini 3.1 Pro Preview cost per 1M tokens?

Claude Opus 5: from USD 5 input and USD 25 output at Anthropic and 3 others; Anthropic's own API charges USD 5 / USD 25; median of 5 standard prices USD 5 / USD 25. Gemini 3.1 Pro Preview: from USD 2 input and USD 12 output at Google Gemini API and 2 others; Google Gemini API's own API charges USD 2 / USD 12; median of 3 standard prices USD 2 / USD 12. Each price is read from the provider's own pricing page; the source is linked in the table.

Which providers sell both Claude Opus 5 and Gemini 3.1 Pro Preview?

1 provider has a standard price for both: Google Vertex AI (USD 10 and USD 4.50 at 3:1). Buying each model from its own cheapest provider costs USD 10 and USD 4.50.

Which is cheaper for a coding agent or a chatbot, Claude Opus 5 or Gemini 3.1 Pro Preview?

For a coding agent (1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning): USD 4,365 a month on Claude Opus 5 (Anthropic) against USD 1,926 on Gemini 3.1 Pro Preview (Google Gemini API), a difference of USD 2,439. For a support chatbot (2,000 requests a day, 1,500 input tokens (60% cached), 300 output): USD 657.00 a month on Claude Opus 5 (Anthropic) against USD 298.80 on Gemini 3.1 Pro Preview (Google Gemini API), a difference of USD 358.20. Each uses the cheapest standard price for that workload, cached input included. Try your own numbers.

At what input:output ratio does the cheaper of Claude Opus 5 and Gemini 3.1 Pro Preview change?

Gemini 3.1 Pro Preview is cheaper at every mix of input and output tokens, before cache discounts: its cheapest input price and its cheapest output price are both at or below Claude Opus 5's, so the input:output ratio never changes the answer.

Do Claude Opus 5 and Gemini 3.1 Pro Preview have cached input pricing?

Claude Opus 5 from USD 0.50 per 1M cached input tokens (Anthropic; 4 of 5 standard prices list a discount). Gemini 3.1 Pro Preview from USD 0.20 per 1M cached input tokens (Google Gemini API; 2 of 3 standard prices list a discount). Cached tokens are billed at the input price where no cache price is published.

Which has the larger context window, Claude Opus 5 or Gemini 3.1 Pro Preview?

Gemini 3.1 Pro Preview: up to 1,048,576 tokens, against 1,000,000 for Claude Opus 5, as stated on providers' pricing pages. Some providers offer less than the maximum; check the model pages before you pick the cheapest row for long prompts.

Read as MarkdownAsk ChatGPTAsk ClaudeAsk Perplexity