GLM-5.1 vs Grok 4.7
Grok 4.7 wins 6 of 6 benchmarks both models report and has a higher Epoch Capabilities Index (156.4 vs 150.7). GLM-5.1 is about 1.9× cheaper on a blended (3:1 input:output) token price. Grok 4.7 has the larger context window (500K vs 200K). GLM-5.1 has open weights, so you can self-host and fine-tune it; Grok 4.7 is API-only.
| Spec | GLM-5.1 | Grok 4.7 |
|---|---|---|
| Provider | Zhipu AI (Z.ai) | xAI |
| Released | Apr 7, 2026 | Sep 21, 2026 (better) |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | 754B | 2.1T |
| Context window | 200K | 500K (better) |
| Max output | 128K | 500K (better) |
| Input price / 1M | $0.896 (better) | $2 |
| Output price / 1M | $3.59 (better) | $6 |
| Input modalities | text | text, image, pdf, file (better) |
| Open weights | Yes | No |
| License | mit | Proprietary |
| Reasoning mode | Yes | Yes |
| Tool calling | Yes | Yes |
| API providers | 48 (better) | 37 |
| Epoch Capabilities Index | 150.7 | 156.4 (better) |
| GPQA Diamond | 89.9% | 92.7% (better) |
| SWE-bench Verified | 74.2% | — |
| WebDev Arena | 1508 | 1638 (better) |
| OTIS Mock AIME | 93.3% | 98.1% (better) |
| FrontierMath | 36.8% | 53.0% (better) |
| ARC-AGI-2 | — | 61.4% |
| SimpleQA Verified | 34.0% | 56.0% (better) |
Cost example
For a workload of 10M input + 2M output tokens per month: GLM-5.1 costs $16.13 and Grok 4.7 costs $32.00 at list price (Zhipu AI (Z.ai) / xai pricing).
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 →
About Grok 4.7
Grok 4.7 is a proprietary reasoning llm from xAI, released Sep 21, 2026. It has 2.1T parameters, a 500K-token context window and accepts text, image, pdf, file input. API pricing starts at $2 per million input tokens and $6 per million output tokens. It is available from 37 API providers. It scores 156.4 on the Epoch Capabilities Index. Full Grok 4.7 specs →
Compare other models
FAQ
Which is better, GLM-5.1 or Grok 4.7?
Grok 4.7 wins 6 of 6 benchmarks both models report and has a higher Epoch Capabilities Index (156.4 vs 150.7). GLM-5.1 is about 1.9× cheaper on a blended (3:1 input:output) token price. Grok 4.7 has the larger context window (500K vs 200K). GLM-5.1 has open weights, so you can self-host and fine-tune it; Grok 4.7 is API-only.
Is GLM-5.1 cheaper than Grok 4.7?
GLM-5.1 costs $0.896 input / $3.59 output per 1M tokens; Grok 4.7 costs $2 / $6. GLM-5.1 is cheaper overall.
Which has a bigger context window?
GLM-5.1: 200,000 tokens. Grok 4.7: 500,000 tokens.
Are GLM-5.1 and Grok 4.7 open source?
GLM-5.1 is open-weight; Grok 4.7 is proprietary.