Gemma 4 31B IT vs GLM-4.7-Flash
Gemma 4 31B IT wins 2 of 2 benchmarks both models report. Gemma 4 31B IT has the larger context window (256K vs 200K).
| Spec | Gemma 4 31B IT | GLM-4.7-Flash |
|---|---|---|
| Provider | Google DeepMind | Zhipu AI (Z.ai) |
| Released | Apr 2, 2026 (better) | Jan 19, 2026 |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | 31B | 31B |
| Context window | 256K (better) | 200K |
| Max output | 32K | 128K (better) |
| Input price / 1M | Free | Free |
| Output price / 1M | Free | Free |
| Input modalities | text, image, video (better) | text |
| Open weights | Yes | Yes |
| License | apache-2.0 | mit |
| Reasoning mode | Yes | Yes |
| Tool calling | Yes | Yes |
| API providers | 51 (better) | 24 |
| Epoch Capabilities Index | 144.1 | — |
| GPQA Diamond | 75.8% (better) | 60.5% |
| WebDev Arena | 1364 | — |
| OTIS Mock AIME | 73.3% (better) | 58.3% |
| SimpleQA Verified | 10.4% | — |
Cost example
For a workload of 10M input + 2M output tokens per month: Gemma 4 31B IT costs $0.00 and GLM-4.7-Flash costs $0.00 at list price (Google DeepMind / zai pricing).
About Gemma 4 31B IT
Gemma 4 31B IT is an open-weight reasoning llm from Google DeepMind, released Apr 2, 2026. It has 31B parameters, a 256K-token context window and accepts text, image, video input. It can be used for free via API. It is available from 51 API providers. It scores 144.1 on the Epoch Capabilities Index. Full Gemma 4 31B IT specs →
About GLM-4.7-Flash
GLM-4.7-Flash is an open-weight reasoning llm from Zhipu AI (Z.ai), released Jan 19, 2026. It has 31B parameters and a 200K-token context window. It can be used for free via API. It is available from 24 API providers. Full GLM-4.7-Flash specs →
Compare other models
FAQ
Which is better, Gemma 4 31B IT or GLM-4.7-Flash?
Gemma 4 31B IT wins 2 of 2 benchmarks both models report. Gemma 4 31B IT has the larger context window (256K vs 200K).
Which has a bigger context window?
Gemma 4 31B IT: 262,144 tokens. GLM-4.7-Flash: 200,000 tokens.
Are Gemma 4 31B IT and GLM-4.7-Flash open source?
Gemma 4 31B IT is open-weight; GLM-4.7-Flash is open-weight.