- Rank
- #164
- Total Output Tokens
- 277,315
- Response Time (avg)
- 78.76s
- Total Cost
- $0.144
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%.
Compared models
- 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 Free Available | Mercury 2.5 Preview Mercury 2.5 Preview medium |
|---|---|---|
| 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
| Agentic | Score | Consistency | Attempt pass rate | Flaky tests | Tests Correct | Response Time (avg) | Input Tokens | Output Tokens | Reasoning Tokens |
|---|---|---|---|---|---|---|---|---|---|
| Gemma 4 31B | 10.0 | 10.0 | 100.0% | 0 | 82.13s | 156,195 | 1,713 | 8,181 | |
| Mercury 2.5 Preview | 3.9 | 9.6 | 0.0% | 0 | 74.63s | 284,578 | 919 | 22,154 |
| Anti-AI Tricks | Score | Consistency | Attempt pass rate | Flaky tests | Tests Correct | Response Time (avg) | Input Tokens | Output Tokens | Reasoning Tokens |
|---|---|---|---|---|---|---|---|---|---|
| Gemma 4 31B | 10.0 | 10.0 | 100.0% | 0 | 12.89s | 816 | 962 | 2,046 | |
| Mercury 2.5 Preview | 10.0 | 10.0 | 100.0% | 0 | 1.43s | 781 | 203 | 7,921 |
| 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 |
| Combined | Score | Consistency | Attempt pass rate | Flaky tests | Tests Correct | Response Time (avg) | Input Tokens | Output Tokens | Reasoning Tokens |
|---|---|---|---|---|---|---|---|---|---|
| Gemma 4 31B | 2.9 | 5.8 | 16.7% | 1 | 433.11s | 77,035 | 12,112 | 157,552 | |
| Mercury 2.5 Preview | 6.5 | 10.0 | 50.0% | 0 | 13.86s | 92,663 | 3,607 | 41,588 |
| Data parsing and extraction | Score | Consistency | Attempt pass rate | Flaky tests | Tests Correct | Response Time (avg) | Input Tokens | Output Tokens | Reasoning Tokens |
|---|---|---|---|---|---|---|---|---|---|
| Gemma 4 31B | 10.0 | 10.0 | 100.0% | 0 | 21.11s | 8,334 | 1,822 | 2,951 | |
| Mercury 2.5 Preview | 10.0 | 10.0 | 100.0% | 0 | 2.77s | 8,292 | 514 | 11,354 |
| Domain specific | Score | Consistency | Attempt pass rate | Flaky tests | Tests Correct | Response Time (avg) | Input Tokens | Output Tokens | Reasoning Tokens |
|---|---|---|---|---|---|---|---|---|---|
| Gemma 4 31B | 5.3 | 7.2 | 44.4% | 1 | 59.92s | 853 | 4,280 | 18,729 | |
| Mercury 2.5 Preview | 5.3 | 7.2 | 44.4% | 1 | 3.72s | 853 | 62 | 17,120 |
| General Intelligence | Score | Consistency | Attempt pass rate | Flaky tests | Tests Correct | Response Time (avg) | Input Tokens | Output Tokens | Reasoning Tokens |
|---|---|---|---|---|---|---|---|---|---|
| Gemma 4 31B | 10.0 | 10.0 | 100.0% | 0 | 9.57s | 567 | 105 | 888 | |
| Mercury 2.5 Preview | 5.0 | 10.0 | 0.0% | 0 | 2.09s | 538 | 99 | 3,375 |
| Instructions following | Score | Consistency | Attempt pass rate | Flaky tests | Tests Correct | Response Time (avg) | Input Tokens | Output Tokens | Reasoning Tokens |
|---|---|---|---|---|---|---|---|---|---|
| Gemma 4 31B | 10.0 | 10.0 | 100.0% | 0 | 12.76s | 777 | 533 | 2,035 | |
| Mercury 2.5 Preview | 9.8 | 10.0 | 100.0% | 0 | 1.35s | 744 | 96 | 3,987 |
| Puzzle Solving | Score | Consistency | Attempt pass rate | Flaky tests | Tests Correct | Response Time (avg) | Input Tokens | Output Tokens | Reasoning Tokens |
|---|---|---|---|---|---|---|---|---|---|
| Gemma 4 31B | 9.9 | 10.0 | 100.0% | 0 | 26.91s | 801 | 1,795 | 5,595 | |
| Mercury 2.5 Preview | 10.0 | 10.0 | 100.0% | 0 | 1.87s | 771 | 274 | 7,323 |
| Tool Calling | Score | Consistency | Attempt pass rate | Flaky tests | Tests Correct | Response Time (avg) | Input Tokens | Output Tokens | Reasoning Tokens |
|---|---|---|---|---|---|---|---|---|---|
| Gemma 4 31B | 3.0 | 10.0 | 0.0% | 0 | 0ms | 0 | 0 | 0 | |
| Mercury 2.5 Preview | 3.0 | 10.0 | 0.0% | 0 | 2.37s | 0 | 0 | 0 |
| Trivia | Score | Consistency | Attempt pass rate | Flaky tests | Tests Correct | Response Time (avg) | Input Tokens | Output Tokens | Reasoning Tokens |
|---|---|---|---|---|---|---|---|---|---|
| Gemma 4 31B | 3.0 | 10.0 | 0.0% | 0 | 90.14s | 218 | 1,692 | 10,014 | |
| Mercury 2.5 Preview | 3.0 | 10.0 | 0.0% | 0 | 4.13s | 232 | 29 | 6,804 |
Quick Compare
Switch Comparison Pair
Mercury 2.5 PreviewmediumvsInklinglowFree AvailableGemma 4 31BmediumFree AvailablevsGPT-5.6 LunalowClaude Sonnet 5.5lowvsGemma 4 31BmediumFree AvailableClaude Opus 4.8nonevsGemma 4 31BmediumFree AvailableEmber-1highvsGemma 4 31BmediumFree AvailableMercury 2.5 PreviewmediumvsGPT-6 SolnoneClaude Opus 4.8nonevsMercury 2.5 PreviewmediumClaude Sonnet 5.5lowvsMercury 2.5 PreviewmediumMercury 2.5 PreviewmediumvsGPT-5.6 LunalowGemma 4 31BmediumFree AvailablevsInklinglowFree AvailableEmber-1highvsMercury 2.5 PreviewmediumMercury 2.5 PreviewmediumvsSpace Bunny Alphamax