Navigate
Advertise here

Claude Sonnet 5 (medium) vs Gemini 3.1 Pro Preview (medium)

Claude Sonnet 5 (medium) leads on average score with 8.5 vs 8.4. Claude Sonnet 5 (medium) has the lower benchmark cost at $1.438 vs $1.585. Claude Sonnet 5 (medium) is faster at 15.01s vs 22.71s, with pass rates of 76.8% vs 89.9%.

Last updated at: 2026-10-02

Compared models

Rank
#66
Total Output Tokens
73,261
Response Time (avg)
15.01s
Total Cost
$1.438
Rank
#71
Total Output Tokens
102,691
Response Time (avg)
22.71s
Total Cost
$1.585
Recommended model Claude Sonnet 5 (medium)

It has the best score here (8.5), while responding about 1.5x faster than Gemini 3.1 Pro Preview (medium).

Detailed comparison

Metric Claude Sonnet 5 Claude Sonnet 5 medium Release: 2026-06-30 Gemini 3.1 Pro Preview Gemini 3.1 Pro Preview medium Release: 2026-02-19
Score 8.5 8.4
Rank #66 #71
Reliability 10.0 9.8
Consistency 9.1 9.6
Attempts 69/69 69/69
Tests Correct
Attempt pass rate 76.8% 89.9%
Flaky tests 3 1
Total Runs 69 69
Cost per result 8.985 7.924
Total Cost $1.438 $1.585
Input Price $2.000 / 1M $2.000 / 1M
Output Price $10.000 / 1M $12.000 / 1M
Cache Read Price $0.200 / 1M $0.200 / 1M
Cache Write Price $2.500 / 1M $0.375 / 1M
Total Input Tokens 353,658 176,208
Output Tokens 54,891 6,093
Reasoning Tokens 18,370 96,598
Response Time (avg) 15.01s 22.71s
Response Time (max) 69.26s 88.68s
Response Time (total) 345.16s 386.11s
Parameters ~1T total (~100B active) ~1.2T total (~20B active)
Availability Closed Closed

Cache prices apply to input tokens. Reads reuse cached prompts; writes store them and can cost extra. Output tokens use the output price.

Model generation showcase

Hamster playing table tennis

Prompt: Create a detailed SVG illustration of a hamster playing table tennis.

#66 Claude Sonnet 5

medium
Cost
$0.007
Time
6.4s
Tokens
832 tok

#71 Gemini 3.1 Pro Preview

medium
Cost
$0.115
Time
87.2s
Tokens
9,629 tok

Top Models by Score

Score vs Total Cost

Response Time (avg)

Score vs Response Time (avg)

Total Output Tokens

Score vs Total Output Tokens

Category Breakdown

Coding Score Consistency Attempt pass rate Flaky tests Tests Correct Response Time (avg) Input Tokens Output Tokens Reasoning Tokens
Claude Sonnet 5 9.0 7.9 88.9% 1 17.28s 10,590 13,153 2,379
Gemini 3.1 Pro Preview 7.9 9.9 66.7% 0 40.17s 8,124 435 41,247

Quick Compare

Switch Comparison Pair