Gemma 4 31B vs GLM 5.3 Prime

Price, context window & benchmark comparison

G

Gemma 4 31B

Google
$0.09 / $0.34
Input / Output · per 1M tokens
VS
Z

GLM 5.3 Prime

Z.ai (Zhipu)
$2.80 / $8.80
Input / Output · per 1M tokens
Compare different models
G
Z
Verdict: Gemma 4 31B is 28.2× cheaper than GLM 5.3 Prime on a typical 3:1 input/output mix. GLM 5.3 Prime has the larger context window (1M vs 262K).
Gemma 4 31BGLM 5.3 Prime
Input price / 1M$0.09$2.80
Output price / 1M$0.34$8.80
Blended price (3:1)$0.15$4.30
Cached input / 1M$0.05$0.56
Context window262K1M
Max output16K131K
Intelligence index
Coding index43.4
Providers1
Best provider uptime (30m)100.0%
Vision inputYesNo
ReasoningYesYes
Tool callingYesYes
Released2026-04-022026-09-23
Retirement

Cost calculator

FAQ

Which is cheaper, Gemma 4 31B or GLM 5.3 Prime?

Gemma 4 31B is 28.2× cheaper than GLM 5.3 Prime on a typical 3:1 input/output mix.

Gemma 4 31B vs GLM 5.3 Prime: which has a bigger context window?

Gemma 4 31B: 262,144 tokens. GLM 5.3 Prime: 1,000,000 tokens.

How much would 1 million requests cost?

At 2,000 input + 500 output tokens per request: Gemma 4 31B ≈ $350.00, GLM 5.3 Prime ≈ $10,000.

More comparisons