Gemma 4 31B vs GLM 5.3 FlashX

Price, context window & benchmark comparison

Google

Gemma 4 31B

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

GLM 5.3 FlashX

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

Cost calculator

FAQ

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

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

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

Gemma 4 31B: 262,144 tokens. GLM 5.3 FlashX: 1,048,576 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 FlashX ≈ $1,365.

More comparisons