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

Gemma 4 31B vs GLM 5

Gemma 4 31B leads on average score with 5.7 vs 5.6. Gemma 4 31B has the lower benchmark cost at $0.031 vs $0.140. Gemma 4 31B is faster at 7.28s vs 8.74s, with pass rates of 42.0% vs 40.6%.

Last updated at: 2026-10-01

Compared models

Rank
#258
Total Output Tokens
15,499
Response Time (avg)
7.28s
Total Cost
$0.031
Rank
#262
Total Output Tokens
5,577
Response Time (avg)
8.74s
Total Cost
$0.140
Recommended model Gemma 4 31B

It has the best score here (5.7), while costing about 4.5x less than GLM 5.

Detailed comparison

Metric Gemma 4 31B Gemma 4 31B none Release: 2026-04-02 Free Available GLM 5 GLM 5 none Release: 2026-02-12
Score 5.7 5.6
Rank #258 #262
Reliability 10.0 10.0
Consistency 9.6 9.3
Attempts 69/69 66/69
Tests Correct
Attempt pass rate 42.0% 40.6%
Flaky tests 1 1
Total Runs 69 66
Cost per result 0.520 1.363
Total Cost $0.031 $0.140
Input Price $0.090 / 1M $0.600 / 1M
Output Price $0.340 / 1M $1.920 / 1M
Cache Read Price $0.050 / 1M $0.120 / 1M
Cache Write Price N/A N/A
Total Input Tokens 270,970 190,675
Output Tokens 15,499 5,577
Reasoning Tokens 0 0
Response Time (avg) 7.28s 8.74s
Response Time (max) 44.73s 74.80s
Response Time (total) 152.84s 131.17s
Parameters 30.7B 744B total (40B active)
Availability Open source Open source

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.

#258 Gemma 4 31B

none
Cost
$0.001
Time
12.8s
Tokens
795 tok

#262 GLM 5

none
Cost
$0.007
Time
32.1s
Tokens
2,023 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 5.5 10.0 33.3% 0 11.19s 8,381 735 0
GLM 5 4.0 7.8 11.1% 1 5.12s 7,256 428 0

Quick Compare

Switch Comparison Pair