Claude Sonnet 5 vs Gemini 3.1

Anthropic's mid-tier against Google's multimodal flagship (ultra · pro tiers) — published pricing, context windows and specs, side by side.

At a glance: Claude Sonnet 5 lists at $2 / $10 intro (to 31 Aug 2026) · $3 / $15 standard with a 1,000,000 tokens context window; Gemini 3.1 lists at ~$2 / $12 per 1M tokens (3.1 Pro) with 2,000,000 tokens of context. The full spec table, price table and each model's published benchmarks are below.

Claude Sonnet 5 vs Gemini 3.1: side-by-side

 Claude Sonnet 5Gemini 3.1
MakerAnthropicGoogle
Released30 June 2026April 2026
TierMid-tierMultimodal flagship (Ultra · Pro tiers)
Context window1,000,000 tokens (default & max)2,000,000 tokens — largest publicly available
Max outputUp to 128,000 tokensNot specified
API price (per 1M)$2 / $10 intro (to 31 Aug 2026) · $3 / $15 standard~$2 / $12 per 1M tokens (3.1 Pro)
AccessProprietary — Claude API & claude.ai (default model on Free & Pro plans)Proprietary — Gemini API (Google) · consumer plan $19.99/month
Best atAgentic coding, high-volume production work, large-codebase tasksMultimodal understanding, very long documents, media analysis
Standout1M context by default; early-access partners report it finishes tasks earlier Sonnets stopped short on and checks its own outputNative video, audio and text in one pass + sandboxed Python execution

Price comparison

ModelInput (per 1M)Output (per 1M)
Claude Sonnet 5 (intro, to 31 Aug 2026)$2.00$10.00
Claude Sonnet 5 (standard, from 1 Sep 2026)$3.00$15.00
Gemini 3.1 Pro (approx.)~$2.00~$12.00

Estimate your monthly API cost for Claude Sonnet 5 vs Gemini 3.1 with the LLM API pricing calculator →

What the table says

Key takeaway

Everything above is drawn from the two models' published rate cards and spec sheets. Which one fits depends on the workload you price it against — run your own token volumes through the pricing calculator to see the monthly difference.

Full Claude Sonnet 5 overview   Full Gemini 3.1 overview

Ad slot — AdSense in-article unit

Frequently asked questions

Which is cheaper, Claude Sonnet 5 or Gemini 3.1?

Claude Sonnet 5 — it lists at $2 / $10 intro (to 31 Aug 2026) · $3 / $15 standard versus ~$2 / $12 per 1M tokens (3.1 Pro) for Gemini 3.1 (Gemini 3.1 Pro pricing is approximate).

Which has the bigger context window, Claude Sonnet 5 or Gemini 3.1?

Gemini 3.1 — 2,000,000 tokens — largest publicly available, versus 1,000,000 tokens (default & max) for Claude Sonnet 5.

Which model is newer?

Claude Sonnet 5 is the more recent release (30 June 2026); Gemini 3.1 was released April 2026.

Can I run Claude Sonnet 5 or Gemini 3.1 locally?

No — both Claude Sonnet 5 and Gemini 3.1 are proprietary models accessed through their vendors' APIs and apps; neither publishes weights.

Related comparisons