GLM-5.1
GLM-5.1 is worth evaluating for coding, rag, and agents when its provider route and context window match the workload.
Use it for
- Teams evaluating coding, rag, and agents
- Workloads that can use a 200k context window
- Buyers comparing 4 tracked provider routes
Do not use it for
- Vision or document-understanding workloads
Cheapest of 5 routes · OpenRouter
About
Post-training variant of GLM-5 from Z.ai (Zhipu AI) with enhanced agentic coding capabilities. Released April 7, 2026. 754B parameters (40B active) in Mixture of Experts architecture, 200K token context, 128K max output. Supports autonomous plan–execute–test–fix–optimize loops for up to 8 hours without human intervention. Trained entirely on Huawei Ascend hardware (no Nvidia). Key benchmarks: SWE-bench Pro 58.4 (world #1 at release, surpassing GPT-5.4 57.7 and Claude Opus 4.6 57.3), GPQA Diamond 86.2, AIME 2026 95.3, Terminal-Bench 2.0 63.5, MCP-Atlas 71.8, Chatbot Arena Elo 1475 (June 16, 2026, arena.ai). Available via Z.ai API ($1.40/$4.40 per 1M input/output tokens) and open weights on Hugging Face under MIT license.
GLM-5.1 is an open-source model in the GLM-5 family. The structured metadata tracks a 200k-token context window, reasoning, function calling, tool use, structured outputs, and code execution. This page tracks provider routes through Z.ai, OpenRouter, Fireworks AI, and 2 more, with the cheapest tracked route listed at $1.05 input and $3.5 output per 1M tokens. Headline tracked benchmarks include SWE-bench Pro 58.4, Google-Proof Q&A 86.2, and Chatbot Arena 1475.0.
Top use-case fit: coding, agents, and build tasks
Coding
Q/$ D1 relevant benchmark in the decision map.
RAG
Included by capability and metadata signals in the decision map.
Agents
Included by capability and metadata signals in the decision map.
Provider price ladder
Compare all 5Compare API pricing across 4 providers for input and output tokens, batch, and cached reads when available.
| Provider | Input / 1M | Output / 1M | Cache | Route |
|---|---|---|---|---|
| OpenRouter | $1.05 | $3.50 | - | Serverless |
| Novita AI | $1.38 | $4.40 | - | Serverless |
| Fireworks AI | $1.40 | $4.40 | - | Serverless |
| Vercel AI Gateway | $1.40 | $4.40 | read $0.260 | Serverless |
Available via routers & gateways(1)
Capabilities
Benchmark peer barsfor Coding
Benchmark scores(9)
| Benchmark | Score | Version | Source |
|---|---|---|---|
| SWE-bench Pro | 58.4 | — | https://labs.scale.com/leaderboard/swe_bench_pro_public |
| Google-Proof Q&A | 86.2 | diamond | https://huggingface.co/zai-org/GLM-5.1 |
| Chatbot Arena | 1475.0 | text (June 2026) | https://arena.ai/leaderboard/text |
| Terminal-Bench 2.0 | 63.5 | — | https://huggingface.co/zai-org/GLM-5.1 |
| MCP-Atlas | 71.8 | independent evaluation (BenchLM, June 2026) | https://benchlm.ai/benchmarks/mcpAtlas |
| SWE-rebench | 62.7 | pass@1 (best of 5 runs) | https://swe-rebench.com/leaderboard |
| AIME 2025 | 95.3 | AIME 2026 (accuracy) | https://lushbinary.com/blog/glm-5-1-benchmarks-breakdown-swe-bench-pro-nl2repo-cybergym/ |
| Humanity's Last Exam | 31.0 | HLE text-only (accuracy) | https://lushbinary.com/blog/glm-5-1-benchmarks-breakdown-swe-bench-pro-nl2repo-cybergym/ |
| GeneBench-Pro | 1.2 | xhigh | https://cdn.openai.com/pdf/21938268-21af-442f-af93-3b2249afb241/genebench-pro.pdf |
Migration checks
No linked migration route is available for this model yet.
Rankings & picks(4)
Compare GLM-5.1 with other models
Comparison and alternatives
Browse all comparisons →Show all 56 popular comparisonssorted by 7-day search impressions
Frequently asked questions
What is the context window of GLM-5.1?
GLM-5.1 has a context window of 200k tokens.
What is the max output of GLM-5.1?
GLM-5.1 can generate up to 131,072 output tokens.
How much does GLM-5.1 cost?
GLM-5.1 pricing ranges from $1.05/1M to $1.4/1M input tokens depending on the provider.
When was GLM-5.1 released?
GLM-5.1 was released on 2026-04-07.
Which providers offer GLM-5.1?
GLM-5.1 is available from 5 providers: Z.ai, OpenRouter, Fireworks AI, Vercel AI Gateway, Novita AI.
What benchmarks has GLM-5.1 been tested on?
GLM-5.1 has been evaluated on 9 benchmarks, including SWE-bench Pro, Google-Proof Q&A, Chatbot Arena, Terminal-Bench 2.0, MCP-Atlas.
Cheapest of 5 routes · OpenRouter