Navigate
Advertise here

Gemma 4 31B (medium) vs Mercury 2.5 Preview (medium)

Gemma 4 31B (medium) leads on average score with 6.9 vs 6.8. Mercury 2.5 Preview (medium) has the lower benchmark cost at $0.039 vs $0.144. Mercury 2.5 Preview (medium) is faster at 6.66s vs 78.76s, with pass rates of 66.7% vs 66.7%.

Last updated at: 2026-10-01

Compared models

Rank
#164
Total Output Tokens
277,315
Response Time (avg)
78.76s
Total Cost
$0.144
Rank
#171
Total Output Tokens
150,107
Response Time (avg)
6.66s
Total Cost
$0.039
Recommended model Mercury 2.5 Preview (medium)

Its score stays close to the best score here (6.8 vs 6.9), while costing about 3.7x less than Gemma 4 31B (medium).

Detailed comparison

Metric Gemma 4 31B Gemma 4 31B medium Release: 2026-04-02 Free Available Mercury 2.5 Preview Mercury 2.5 Preview medium Release: 2026-09-02
Score 6.9 6.8
Rank #164 #171
Reliability 10.0 10.0
Consistency 8.7 9.6
Attempts 69/69 69/69
Tests Correct
Attempt pass rate 66.7% 66.7%
Flaky tests 3 1
Total Runs 69 69
Cost per result 1.195 0.244
Total Cost $0.144 $0.039
Input Price $0.090 / 1M $0.040 / 1M
Output Price $0.340 / 1M $0.150 / 1M
Cache Read Price $0.050 / 1M N/A
Cache Write Price N/A N/A
Total Input Tokens 251,164 397,291
Output Tokens 36,112 6,355
Reasoning Tokens 241,203 143,752
Response Time (avg) 78.76s 6.66s
Response Time (max) 437.40s 74.63s
Response Time (total) 1653.96s 153.29s
Parameters 30.7B ~100B
Availability Open source 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.

#164 Gemma 4 31B

medium
Cost
$0.002
Time
45.7s
Tokens
2,696 tok

#171 Mercury 2.5 Preview

medium
Cost
$0.001
Time
2.7s
Tokens
2,241 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
Gemma 4 31B 4.3 5.8 22.2% 1 219.76s 5,568 11,098 33,212
Mercury 2.5 Preview 7.8 10.0 66.7% 0 3.86s 7,839 552 22,126

Quick Compare

Switch Comparison Pair