Claude Sonnet 5 is 1.2× cheaper per million tokens (blended). Claude Sonnet 5 leads quality index by 3.5 points (85.3 vs 81.8). Gemini 3.1 Pro Preview has the larger context window (1,048,576 vs 1,000,000 tokens).

Claude Sonnet 5 vs Gemini 3.1 Pro Preview

Live catalog fields. Best-in-row is highlighted.

Claude Sonnet 5

Anthropic · anthropic__claude-sonnet-5

Gemini 3.1 Pro Preview

Google · google__gemini-3.1-pro-preview

Identity

Fieldanthropic__claude-sonnet-5google__gemini-3.1-pro-preview
ProviderAnthropicGoogle
Sluganthropic__claude-sonnet-5google__gemini-3.1-pro-preview
Statuslivelive
Open weightsNoNo
License
HuggingFace

Quality

Fieldanthropic__claude-sonnet-5google__gemini-3.1-pro-preview
Quality index (0–100)85.381.8

Cost

Fieldanthropic__claude-sonnet-5google__gemini-3.1-pro-preview
Input $ / 1M tokens$2.00$2.00
Cached input $ / 1M$0.20$0.20
Output $ / 1M tokens$10.00$12.00

Context

Fieldanthropic__claude-sonnet-5google__gemini-3.1-pro-preview
Max context tokens1,000,0001,048,576
Max output tokens128,00065,536

Modalities

Fieldanthropic__claude-sonnet-5google__gemini-3.1-pro-preview
Inputtext, image, fileaudio, file, image, text, video
Outputtexttext