Gemma 4 31B IT vs GLM-5.2
GLM-5.2 wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (153.1 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. GLM-5.2 has the larger context window (1M vs 256K).
| Spec | Gemma 4 31B IT | GLM-5.2 |
|---|---|---|
| Provider | Google DeepMind | Zhipu AI (Z.ai) |
| Released | Apr 2, 2026 | Jun 13, 2026 (better) |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | 31B | 753B |
| Context window | 256K | 1M (better) |
| Max output | 32K | 128K (better) |
| Input price / 1M | Free (better) | $1.20 |
| Output price / 1M | Free (better) | $4.18 |
| 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 | 95 (better) |
| Epoch Capabilities Index | 144.1 | 153.1 (better) |
| GPQA Diamond | 75.8% | 91.9% (better) |
| SWE-bench Verified | — | 78.7% |
| WebDev Arena | 1364 | 1593 (better) |
| OTIS Mock AIME | 73.3% | 86.4% (better) |
| FrontierMath | — | 59.2% |
| ARC-AGI-2 | — | 22.8% |
| SimpleQA Verified | 10.4% | 34.2% (better) |
Cost example
For a workload of 10M input + 2M output tokens per month: Gemma 4 31B IT costs $0.00 and GLM-5.2 costs $20.32 at list price (Google DeepMind / zhipuai 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-5.2
GLM-5.2 is an open-weight reasoning llm from Zhipu AI (Z.ai), released Jun 13, 2026. It has 753B parameters and a 1M-token context window. API pricing starts at $1.20 per million input tokens and $4.18 per million output tokens. It is available from 95 API providers. It scores 153.1 on the Epoch Capabilities Index. Full GLM-5.2 specs →
Compare other models
FAQ
Which is better, Gemma 4 31B IT or GLM-5.2?
GLM-5.2 wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (153.1 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. GLM-5.2 has the larger context window (1M vs 256K).
Is Gemma 4 31B IT cheaper than GLM-5.2?
Gemma 4 31B IT costs Free input / Free output per 1M tokens; GLM-5.2 costs $1.20 / $4.18. Gemma 4 31B IT is cheaper overall.
Which has a bigger context window?
Gemma 4 31B IT: 262,144 tokens. GLM-5.2: 1,000,000 tokens.
Are Gemma 4 31B IT and GLM-5.2 open source?
Gemma 4 31B IT is open-weight; GLM-5.2 is open-weight.