GLM-5 vs Gemma 4 31B Garnet
Both have similar output pricing, while Gemma 4 31B Garnet offers a larger context window. Choose GLM-5 or Gemma 4 31B Garnet based on the trade-off between cost, context, and the benchmarks that matter for your use case.
| Spec | GLM-5 | Gemma 4 31B Garnet |
|---|---|---|
| Provider | Z.ai (Zhipu AI) | NanoGPT |
| Input / 1M tokens | — | $0.31 |
| Output / 1M tokens | — | $0.31 |
| Context window | — | 262K |
| Parameters | 744B | — |
| Open weights | Yes | No |
| Released | Feb 2026 | May 2026 |
FAQ
Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.