Skip to content

Gemma 4 31B vs GLM 4.7 Flash

Both have similar output pricing, while Gemma 4 31B offers a larger context window. Choose Gemma 4 31B or GLM 4.7 Flash based on the trade-off between cost, context, and the benchmarks that matter for your use case.

SpecGemma 4 31BGLM 4.7 Flash
ProviderGoogleZ.ai
Input / 1M tokens$0.20$0.06
Output / 1M tokens$0.40$0.40
Context window262K200K
Parameters——
Open weightsYes—
ReleasedApr 2026—
LMArena (Chatbot Arena) Elo score14431351
LMArena WebDev Elo score1366—
LMArena Vision Elo score1277—
GPQA Diamond score—60.5

FAQ

Is Gemma 4 31B or GLM 4.7 Flash cheaper?

Gemma 4 31B and GLM 4.7 Flash have comparable output pricing.

Which has the larger context window, Gemma 4 31B or GLM 4.7 Flash?

Gemma 4 31B has the larger context window (262K tokens).

Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.