Navigate
AD
Track all your projects in one dashboard. Get 📊stats, 🔥heatmaps and 👀recordings in one self-hosted dashboard.
uxwizz.com

Claude Opus 4.8 vs Gemma 4 31B (medium)

Claude Opus 4.8 leads on average score with 6.9 vs 6.9. Gemma 4 31B (medium) has the lower benchmark cost at $0.117 vs $2.328. Claude Opus 4.8 is faster at 7.71s vs 78.76s, with pass rates of 60.9% vs 66.7%.

Last updated at: 2026-10-01

Compared models

Rank
#162
Total Output Tokens
24,523
Response Time (avg)
7.71s
Total Cost
$2.328
Rank
#165
Total Output Tokens
277,315
Response Time (avg)
78.76s
Total Cost
$0.117
Recommended model Gemma 4 31B (medium)

Its score stays close to the best score here (6.9 vs 6.9), while costing about 19.9x less than Claude Opus 4.8.

Detailed comparison

Metric Claude Opus 4.8 Claude Opus 4.8 none Release: 2026-05-28 Gemma 4 31B Gemma 4 31B medium Release: 2026-04-02 Free Available
Score 6.9 6.9
Rank #162 #165
Reliability 10.0 10.0
Consistency 9.3 8.7
Attempts 69/69 69/69
Tests Correct
Attempt pass rate 60.9% 66.7%
Flaky tests 2 3
Total Runs 69 69
Cost per result 17.906 1.195
Total Cost $2.328 $0.117
Input Price $5.000 / 1M $0.090 / 1M
Output Price $25.000 / 1M $0.340 / 1M
Total Input Tokens 342,921 251,164
Output Tokens 24,523 36,112
Reasoning Tokens 0 241,203
Response Time (avg) 7.71s 78.76s
Response Time (max) 69.14s 437.40s
Response Time (total) 177.38s 1653.96s
Parameters ~5T total (~500B active) 30.7B
Availability Closed Open source

Model generation showcase

Hamster playing table tennis

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

#162 Claude Opus 4.8

none
Cost
$0.053
Time
22.0s
Tokens
2,253 tok

#165 Gemma 4 31B

medium
Cost
$0.002
Time
45.7s
Tokens
2,696 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 Opus 4.8 5.5 10.0 33.3% 0 3.29s 10,590 1,332 0
Gemma 4 31B 4.3 5.8 22.2% 1 219.76s 5,568 11,098 33,212

Quick Compare

Switch Comparison Pair