Comparisons

Gemini 3.1 Pro vs Claude Sonnet 5

On provider list prices, Gemini 3.1 Pro costs $2 per million input tokens against $3 for Claude Sonnet 5: 1.5x apart. Output is $12 against $15 (1.3x). On Allocate both bill at list plus the 7% transaction fee.

Gemini 3.1 Pro Claude Sonnet 5
LabGoogleAnthropic
AccessAPI onlyAPI only
Context window1M tokens1M tokens
List price, input$2 / M tokens$3 / M tokens
List price, output$12 / M tokens$15 / M tokens
Cached inputn/an/a
LicenseProprietary APIProprietary API
Fine-tunableNoNo

Specifications and provider list prices from the Allocate catalog, checked 2026-07-08. Billed price is list plus the 7% transaction fee.

What the numbers say

Take 1,000,000 requests a month at 1,200 input and 350 output tokens each. That workload costs $6,600 a month on Gemini 3.1 Pro and $8,850 on Claude Sonnet 5 at list: a gap of $2,250, or 1.3x.

Gemini 3.1 Pro$2$12
Claude Sonnet 5$3$15
InputOutput

Choose Gemini 3.1 Pro for

  • Judgment-heavy workflows
  • Long-context analysis
  • Escalation tier above Flash
Gemini 3.1 Pro details

Choose Claude Sonnet 5 for

  • Judgment calls with policy context
  • Customer-facing writing
  • Review and escalation flows
Claude Sonnet 5 details

Common questions

Which is cheaper, Gemini 3.1 Pro or Claude Sonnet 5?

Gemini 3.1 Pro, on this workload shape. At list prices it is $2/$12 per million tokens in and out against $3/$15 for Claude Sonnet 5. Billed on Allocate: $2.14/$12.84 against $3.21/$16.05, list plus 7%.

Which has the bigger context window?

They match: both read 1,000,000 tokens (1M) per request.

Can I fine-tune Gemini 3.1 Pro or Claude Sonnet 5?

No. Both are closed models served over API. If you want a model you can train and own, start from an open-weights base in the catalog.

Related comparisons

Run the numbers on your workload

Or don’t choose. On Allocate a route name is the contract: point yours at one model today, swap to the other tomorrow, and compare them on your live traffic with per-token metering.