All models

Claude Sonnet 5 vs Gemini 3.1 Pro Preview

Claude Sonnet 5 at $2.30 in and $11.50 out and Gemini 3.1 Pro Preview at $2.30 in and $13.80 out — per million tokens, from the same wallet.

Claude Sonnet 5

Anthropic

2.1¢

for a client proposal

$2.30 in · $11.50 out / 1M

1M context · released 1 month ago

Full page →

Gemini 3.1 Pro Preview

Google

2.3¢

for a client proposal

$2.30 in · $13.80 out / 1M

1.05M context · released 6 months ago

Full page →

Asking all both at once — identical prompt, identical context — costs about 4.3¢ for a typical client proposal.

At a glance

  • All 2 cost the same on input.
  • Cheapest output: Claude Sonnet 5 at $11.50 per million tokens.
  • Largest context: Gemini 3.1 Pro Preview at 1.05M tokens — about 1,500 pages.

Cost per task

Estimated totals at the rates above. Solid bar is input, lighter bar is output.

Quick code fix

2K in · 500 out
Claude Sonnet 5
Gemini 3.1 Pro Preview
1.1¢

Draft a client proposal from notes

5K in · 800 out
Claude Sonnet 5
2.1¢
Gemini 3.1 Pro Preview
2.3¢

Context-heavy session (Alyph workspace)

155K in · 4K out
Claude Sonnet 5
$0.40
Gemini 3.1 Pro Preview
$0.41

Analyze a 50-page legal contract

35K in · 1K out
Claude Sonnet 5
$0.09
Gemini 3.1 Pro Preview
$0.09

Large architecture refactor

250K in · 3K out
Claude Sonnet 5
$0.61
Gemini 3.1 Pro Preview
$1.21

Long-context rate applied at this input size.

Solid part of each bar is input tokens, the lighter part is output. Models that don’t fit a task are marked instead of priced.

Cost vs Token Amount

Drag the slider to adjust the split between input and output workload.

80% Input20% Output
free$3.91$7.820 tokens250k500k750k1000k
Claude Sonnet 5
Gemini 3.1 Pro Preview

Adjust the ratio slider to change how output tokens influence the final price for equivalent workloads.

Pricing

Claude Sonnet 5
Gemini 3.1 Pro Preview
Input / 1M tokens
$2.30
$2.30
Output / 1M tokens
$11.50
$13.80
Cached input / 1M
$0.230
$0.230
Web search
1.1¢ / search
1.6¢ / search

Specs

Claude Sonnet 5
Gemini 3.1 Pro Preview
Released
1 month ago
6 months ago
Context window
1M
1.05M
Max output
128K
66K
Input
Text, Images, and Files
Audio, Files, Images, Text, and Video
Output
Text
Text
Reasoning
Shows its thinking
Shows its thinking
Knowledge cutoff

Try it with real numbers

2K tokens in · 500 tokens out.

Claude Sonnet 5

Anthropic

for this task

44% input · 56% output

Full pricing →

Gemini 3.1 Pro Preview

Google

1.1¢

for this task

40% input · 60% output

Full pricing →

All 2, same prompt and context: 2.2¢. That is the entire cost of the comparison.

Your $5 welcome credit covers about 228 of these.

Which should you pick?

For long documents, Gemini 3.1 Pro Preview has the largest context window here — 1.05M tokens.

On price, Claude Sonnet 5 is the cheapest of the two on a typical task, at about 2.1¢.

Or don’t pick. Send the identical prompt to all both, read the answers side by side, and keep the winner. How to run a fair bake-off →

Questions, answered

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

On a typical client proposal (5K tokens in, 800 out): Claude Sonnet 5 at 2.1¢; Gemini 3.1 Pro Preview at 2.3¢. Long prompts can change the order when long-context rates apply.

Which has the largest context window?

Gemini 3.1 Pro Preview — 1.05M tokens, about 1,500 pages.

Can I run Claude Sonnet 5 and Gemini 3.1 Pro Preview side by side on Alyph?

Yes — that is what Alyph is built for: the identical prompt with identical context to all 2, answers rendered side by side, billed from one wallet. This exact combination costs about 4.3¢ for a typical task.

Ask both at once

Identical prompt, identical context, answers side by side — about 4.3¢ for a typical client proposal. Free to start, with $5 of credit.