Z.ai · Released Apr 7, 2026
GLM 5.1
GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...
- Top 35%GPQA Diamond
- Top 37%OTIS Mock AIME
- Top 40%Vending-Bench 2
- Top 47%SWE-bench Verified
- Released
- Apr 7 2026
- Context window
- 205K 131K out
- Input / 1M tokens
- $1.40 from Free
- Output / 1M tokens
- $4.40 from Free
Where to run it
62 providers compared
Free to try on AIHubMix — free endpoints are often limited-time and rate-limited. Included in SCNet Token Plan, Alibaba Token Plan, Alibaba Token Plan (China). Cheapest: HPC-AI at $0.61 / $2.46 per 1M input / output tokens — 60% less than the priciest option.
| Provider | Input | Output | Cache read | Context | Max output | Uptime | vs. best |
|---|---|---|---|---|---|---|---|
| AIHubMixfree · may be limited-time | Free | Free | — | 200K | 131K | — | Free |
| SCNet Token Plansubscription plan | Plan | Plan | Plan | 200K | 131K | — | Plan |
| Alibaba Token Plansubscription plan | Plan | Plan | Plan | 203K | 128K | — | Plan |
| Alibaba Token Plan (China)subscription plan | Plan | Plan | Plan | 203K | 128K | — | Plan |
| HPC-AI | $0.61 | $2.46 | $0.13 | 202K | 202K | — | Cheapest |
| NanoGPT | $0.70 | $2.50 | $0.18 | 203K | 66K | — | +7% |
| EmpirioLabs AI | $0.82 | $3.30 | $0.17 | 202K | 128K | — | +34% |
| Alibaba (China) | $0.82 | $3.30 | $0.17 | 203K | 128K | — | +34% |
| AIHubMix | $0.84 | $3.38 | $0.18 | 200K | 128K | — | +37% |
| StreamLakeFP8 | $0.97 | $3.04 | $0.18 | 200K | 128K | 100%24h | +38% |
| EBCloud | $0.86 | $3.43 | — | 200K | 131K | — | +39% |
| ChutesFP8 | $0.98 | $3.08 | $0.098 | 203K | 66K | 97.5%24h | +40% |
| Pioneer | $0.98 | $3.08 | $0.18 | 202K | 131K | — | +40% |
| ZenMux | $0.88 | $3.51 | $0.19 | 200K | 128K | — | +43% |
| Wafer | $1.00 | $3.20 | $0.10 | 203K | 131K | — | +44% |
| Hugging Face | $1.00 | $3.20 | $0.20 | 203K | 131K | — | +44% |
| Ollama Cloud | $1.00 | $3.20 | $0.20 | 203K | 131K | — | +44% |
| Zhipu AI | $0.90 | $3.58 | $0.19 | 200K | 131K | — | +46% |
| SiliconFlow (China) | $0.90 | $3.59 | $0.19 | 205K | 205K | — | +46% |
| FastRouter | $1.05 | $3.50 | $0.20 | 200K | 131K | — | +54% |
| Deep Infra | $1.05 | $3.50 | $0.20 | 203K | 16K | — | +54% |
| CrossModel | $1.00 | $3.80 | $0.20 | 200K | 128K | — | +58% |
| SiliconFlowFP8 | $1.19 | $3.74 | $0.60 | 205K | 131K | 99.8%24h | +70% |
| DInference | $1.25 | $3.89 | — | 200K | 128K | — | +77% |
| AtlasCloudFP8 | $1.26 | $3.96 | $0.23 | 203K | 182K | 100%24h | +80% |
| Phala | $1.21 | $4.20 | $0.60 | 203K | 128K | 97.4%24h | +82% |
| Crusoe | $1.20 | $4.40 | $0.25 | 200K | 131K | — | +86% |
| AlibabaFP8 | $1.33 | $4.18 | $0.25 | 203K | 131K | 95.6%24h | +90% |
| Baseten | $1.30 | $4.30 | $0.26 | 203K | 203K | — | +90% |
| DigitalOcean | $1.30 | $4.30 | $0.26 | 164K | 164K | — | +90% |
| Cortecs | $1.38 | $4.35 | $0.35 | 203K | 203K | — | +97% |
| NovitaFP8 | $1.38 | $4.40 | $0.26 | 205K | 131K | 100%24h | +98% |
| LLM Gateway | $1.38 | $4.40 | $0.26 | 205K | 131K | — | +98% |
| Jalapeno Cloud | $1.38 | $4.40 | $0.26 | 203K | 131K | — | +98% |
| Novita AI | $1.38 | $4.40 | $0.26 | 205K | 131K | — | +98% |
| Abacus | $1.38 | $4.40 | $0.26 | 205K | 131K | — | +98% |
| DevPass (LLM Gateway) | $1.38 | $4.40 | $0.26 | 205K | 131K | — | +98% |
| BaiduFP8 | $1.40 | $4.40 | $0.26 | 203K | 131K | 100%24h | +100% |
| GMICloudFP8 · no tool calling | $1.40 | $4.40 | $0.26 | 203K | 182K | 100%24h | +100% |
| Friendli | $1.40 | $4.40 | $0.26 | 203K | 182K | 100%24h | +100% |
| Z.AIFP8 | $1.40 | $4.40 | $0.26 | 203K | 131K | 99.7%24h | +100% |
| NebiusFP8 | $1.40 | $4.40 | — | 203K | 182K | 97.7%24h | +100% |
| FrogBot | $1.40 | $4.40 | $0.26 | 198K | 8K | — | +100% |
| Kilo Gateway | $1.40 | $4.40 | $0.26 | 203K | 131K | — | +100% |
| Vercel AI Gateway | $1.40 | $4.40 | $0.26 | 203K | 64K | — | +100% |
| TokenGo | $1.40 | $4.40 | $0.26 | 200K | 131K | — | +100% |
| Together AI | $1.40 | $4.40 | $0.26 | 203K | 131K | — | +100% |
| Requesty | $1.40 | $4.40 | $1.40 | 200K | 131K | — | +100% |
| 302.AI | $1.40 | $4.40 | $0.26 | 200K | 131K | — | +100% |
| Auriko | $1.40 | $4.40 | $0.26 | 200K | 131K | — | +100% |
| Tempr Gateway | $1.40 | $4.40 | $0.26 | 200K | 131K | — | +100% |
| Merge Gateway | $1.40 | $4.40 | $0.26 | 200K | 131K | — | +100% |
| Ofox | $1.40 | $4.40 | $0.26 | 200K | 131K | — | +100% |
| Impossibl | $1.40 | $4.40 | $0.26 | 200K | 131K | — | +100% |
| Ambient | $1.40 | $4.40 | Free | 203K | 131K | — | +100% |
| OrcaRouter | $1.40 | $4.40 | $0.26 | 200K | 131K | — | +100% |
| OpenCode | $1.40 | $4.40 | $0.26 | 205K | 131K | — | +100% |
| TensorX | $1.40 | $4.40 | $0.35 | 203K | 203K | — | +100% |
| Eden AI | $1.40 | $4.40 | $0.26 | 203K | 131K | — | +100% |
| VeniceFP8 | $1.40 | $4.40 | $0.26 | 200K | 80K | 98.9%24h | +100% |
| Melious | $1.51 | $4.64 | $0.37 | 203K | 131K | — | +113% |
| Venice AI | $1.54 | $4.84 | $0.29 | 200K | 80K | — | +120% |
| GreenPT | $1.76 | $5.52 | — | 200K | 131K | — | +151% |
Value
Price vs. performance
GLM 5.1 Other Z.ai Other labs Value frontier · GPQA Diamond vs. input price per 1M tokens (log scale) · Drag to pan, pinch or Ctrl + scroll to zoom, double-click to zoom in.
Benchmarks
15 benchmark scores
| Benchmark | Score | Rank | Leader |
|---|---|---|---|
| SWE-bench VerifiedSoftware engineering · Real GitHub issues fixed in Python repos | 74.2% | #15of 32 | Claude Opus 4.783.5% |
| GBAEvalSoftware engineering · Build a Game Boy Advance emulator from scratch | 0.0% | #22of 23 | Claude Opus 579.6% |
| SciCodeSoftware engineering · Research-coding problems from the natural sciences | 44.8% | #65of 102 | Claude Opus 5.566.9% |
| APEX-AgentsAgents & computer use · Long professional tasks in banking, consulting and law | 40.9% | #39of 51 | Gemini 4 Argon82.4% |
| Vending-Bench 2Agents & computer use · Run a simulated vending business for a year (final balance) | $5,634 | #24of 61 | GPT-6 Astra$15,515 |
| SimpleQA VerifiedWriting & content · Factual accuracy on 1,000 short questions | 34.0% | #52of 79 | Gemini 4 Argon76.0% |
| WebDev ArenaDesign & visual · People vote on which model builds the better website (Elo) | 1508 | #45of 90 | Claude Opus 5.51820 |
| ExploitBenchCybersecurity · Exploit real, hardened security vulnerabilities | 18.1% | #6of 8 | GPT-5.547.4% |
| GPQA DiamondReasoning & knowledge · PhD-level biology, chemistry and physics questions | 89.9% | #42of 122 | Gemini 4 Argon96.4% |
| SimpleBenchReasoning & knowledge · Common-sense trick questions about space, time and people | 55.1% | #28of 58 | Claude Fable 581.9% |
| CritPtReasoning & knowledge · Open-ended, research-level physics problems | 4.6% | #59of 111 | GPT-5.6 Sol32.3% |
| Chess PuzzlesReasoning & knowledge · Find the single best move in 100 new puzzles | 20.0% | #62of 83 | GPT-6 Astra76.0% |
| FrontierMathMaths · Expert-written problems, undergrad to early research (tiers 1–3) | 36.8% | #57of 87 | GPT-6.1 Sol93.7% |
| ProofBenchMaths · Graduate maths proofs verified in Lean 4 | 22.2% | #49of 70 | Claude Sonnet 5.5100.0% |
| OTIS Mock AIMEMaths · Competition-style problems harder than MATH Level 5 | 93.3% | #44of 120 | Gemini 4 Argon100.0% |
Specs
Details
- Model ID
z-ai/glm-5.1- Developer
- Z.ai
- Release date
- Apr 7, 2026 ·
- Context window
- 204,800 tokens
- Max output
- 131,072 tokens
- API price
- $1.40 / $4.40 per 1M input / output tokens
- Providers
- 62
- Input types
- text
- Reasoning
- Yes
- Tool calling
- Yes
- Open weights
- Yes
- Free tier
- No
Release date and prices from OpenRouter's catalog; providers from OpenRouter and models.dev. Buying directly from a provider can cost a little differently. Speed, latency and uptime are measured on OpenRouter only; uptime is the share of OpenRouter requests each provider served over the last day. Benchmark scores are the best result per benchmark from Epoch AI, licensed CC BY 4.0. Rank counts every model tracked here with a score.