Navigate
Advertise here

Gemma 4 31B vs GPT-5.4 Mini

The average score is effectively tied at 5.7 vs 5.7. Gemma 4 31B has the lower benchmark cost at $0.031 vs $0.170. GPT-5.4 Mini is faster at 3.34s vs 7.28s, with pass rates of 42.0% vs 30.4%.

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
#255
Total Output Tokens
8,828
Response Time (avg)
3.34s
Total Cost
$0.170
Recommended model Gemma 4 31B

It has the best score here (5.7), while costing about 5.5x less than GPT-5.4 Mini.

Detailed comparison

Metric Gemma 4 31B Gemma 4 31B none Release: 2026-04-02 Free Available GPT-5.4 Mini GPT-5.4 Mini none Release: 2026-03-17
Score 5.7 5.7
Rank #258 #255
Reliability 10.0 10.0
Consistency 9.6 9.3
Attempts 69/69 69/69
Tests Correct
Attempt pass rate 42.0% 30.4%
Flaky tests 1 2
Total Runs 69 69
Cost per result 0.520 2.818
Total Cost $0.031 $0.170
Input Price $0.090 / 1M $0.750 / 1M
Output Price $0.340 / 1M $4.500 / 1M
Cache Read Price $0.050 / 1M $0.075 / 1M
Cache Write Price N/A N/A
Total Input Tokens 270,970 172,438
Output Tokens 15,499 8,828
Reasoning Tokens 0 0
Response Time (avg) 7.28s 3.34s
Response Time (max) 44.73s 41.98s
Response Time (total) 152.84s 76.84s
Parameters 30.7B ~400B total (~17B active)
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.

#258 Gemma 4 31B

none
Cost
$0.001
Time
12.8s
Tokens
795 tok

#255 GPT-5.4 Mini

none
Cost
$0.010
Time
11.7s
Tokens
2,151 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
GPT-5.4 Mini 5.5 10.0 33.3% 0 913ms 7,305 401 0

Quick Compare

Switch Comparison Pair