Navigate
Advertise here

Gemma 4 31B vs GPT-5.4

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

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
#260
Total Output Tokens
9,372
Response Time (avg)
3.89s
Total Cost
$0.690
Recommended model Gemma 4 31B

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

Detailed comparison

Metric Gemma 4 31B Gemma 4 31B none Release: 2026-04-02 Free Available GPT-5.4 GPT-5.4 none Release: 2026-03-05
Score 5.7 5.6
Rank #258 #260
Reliability 10.0 10.0
Consistency 9.6 9.3
Attempts 69/69 69/69
Tests Correct
Attempt pass rate 42.0% 33.3%
Flaky tests 1 2
Total Runs 69 69
Cost per result 0.520 9.845
Total Cost $0.031 $0.690
Input Price $0.090 / 1M $2.500 / 1M
Output Price $0.340 / 1M $15.000 / 1M
Cache Read Price $0.050 / 1M $0.250 / 1M
Cache Write Price N/A N/A
Total Input Tokens 270,970 219,404
Output Tokens 15,499 9,372
Reasoning Tokens 0 0
Response Time (avg) 7.28s 3.89s
Response Time (max) 44.73s 43.73s
Response Time (total) 152.84s 89.48s
Parameters 30.7B ~1.5T total (~100B 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

#260 GPT-5.4

none
Cost
$0.026
Time
18.1s
Tokens
1,792 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 5.5 10.0 33.3% 0 1.62s 7,305 516 0

Quick Compare

Switch Comparison Pair