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