Claude Sonnet 4.6 vs Gemini 3.1 Pro

Claude Sonnet 4.6 and Gemini 3.1 Pro are both current production-tier models. Claude Sonnet 4.6 leads on tool use. Gemini 3.1 Pro leads on general knowledge, long-context retrieval, multilingual.

Specs side by side

Metric
Anthropic
Claude Sonnet 4.6
Google
Gemini 3.1 Pro
Input price (per 1M)$3$2
Output price (per 1M)$15$12
Context window1M tokens2M tokens
Speed tierbalancedbalanced
Open weightsNoNo
EU regionYesYes
Free tierNoNo
Prompt cachingYesYes
Vision inputYesYes
Extended thinkingYesYes

When to choose each

Anthropic

Choose Claude Sonnet 4.6 if…

  • Tool use is central to your workload
Google

Choose Gemini 3.1 Pro if…

  • You need 2M context (2× more than Claude Sonnet 4.6)
  • General knowledge is central to your workload
  • Long-context retrieval is central to your workload

Benchmark delta

Claude Sonnet 4.6 leads on

  • Tool use

Gemini 3.1 Pro leads on

  • General knowledge
  • Long-context retrieval
  • Multilingual
  • Vision

FAQ — Claude Sonnet 4.6 vs Gemini 3.1 Pro

Claude Sonnet 4.6 vs Gemini 3.1 Pro — which is better?

Claude Sonnet 4.6 and Gemini 3.1 Pro are both current production-tier models. Claude Sonnet 4.6 leads on tool use. Gemini 3.1 Pro leads on general knowledge, long-context retrieval, multilingual. The right pick depends on your use case — see "When to choose each" above for a data-driven decision.

How does Claude Sonnet 4.6 pricing compare to Gemini 3.1 Pro?

Claude Sonnet 4.6 costs $3 / $15 per 1M vs Gemini 3.1 Pro at $2 / $12 per 1M. Gemini 3.1 Pro is cheaper on output tokens by roughly 25%. Both support prompt caching, which reduces effective cost by 80-90% on repeat system prompts.

Does Claude Sonnet 4.6 or Gemini 3.1 Pro have the bigger context window?

Gemini 3.1 Pro has a 2M-token context window — 2× the 1M context of Claude Sonnet 4.6. Enough for entire codebases, books, or multi-document RAG.

Is there a free tier for Claude Sonnet 4.6 or Gemini 3.1 Pro?

Claude Sonnet 4.6: no — Free via Claude.ai web chat; API requires paid credits. Gemini 3.1 Pro: no — Paid-only since 2026-04-01 (previously had free tier via AI Studio).

Which is better for coding — Claude Sonnet 4.6 or Gemini 3.1 Pro?

Both leads on coding benchmarks (Claude Sonnet 4.6: 94/100, Gemini 3.1 Pro: 94/100). For production coding agents also weigh tool-use performance — Claude Sonnet 4.6 scores 96, Gemini 3.1 Pro scores 91.