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