Gemma 4 31B vs GLM 5.3 Flash

Price, context window & benchmark comparison

Google

Gemma 4 31B

Google
$0.20 / $0.40
Input / Output · per 1M tokens
VS
Z.ai (Zhipu)

GLM 5.3 Flash

Z.ai (Zhipu)
$0.0399 / $0.0784
Input / Output · per 1M tokens
Compare different models
Google
Z.ai (Zhipu)
Verdict: GLM 5.3 Flash is 5.0× cheaper than Gemma 4 31B on a typical 3:1 input/output mix. GLM 5.3 Flash scores higher on the Artificial Analysis Intelligence Index (27.8 vs 4.4). GLM 5.3 Flash has the larger context window (1M vs 262K).
Gemma 4 31BGLM 5.3 Flash
Input price / 1M$0.20$0.0399
Output price / 1M$0.40$0.0784
Blended price (3:1)$0.25$0.0495
Cached input / 1M—$0.03
Context window262K1M
Max output16K131K
Intelligence index4.427.8
Coding index43.471.5
Providers—42
Best provider uptime (30m)—100.0%
Vision inputYesYes
ReasoningYesYes
Tool callingYesYes
Released2026-04-022026-08-26
Retirement——

Cost calculator

FAQ

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

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

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

Gemma 4 31B: 262,144 tokens. GLM 5.3 Flash: 1,048,576 tokens.

How much would 1 million requests cost?

At 2,000 input + 500 output tokens per request: Gemma 4 31B ≈ $600.00, GLM 5.3 Flash ≈ $119.00.

More comparisons