Skip to content

GLM-4 (0520) vs Gemma 4 31B Garnet

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

SpecGLM-4 (0520)Gemma 4 31B Garnet
ProviderZ.ai (Zhipu AI)NanoGPT
Input / 1M tokens$0.31
Output / 1M tokens$0.31
Context window262K
Parameters
Open weightsNoNo
ReleasedMay 2024May 2026

FAQ

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