Z.ai's open-source flagship LLM with 754B MoE architecture, purpose-built for agentic coding and long-horizon tasks, capable of 8-hour autonomous execution and topping SWE-Bench Pro.
Z.ai
| Item | Specification |
|---|---|
| Input | Text |
| Output | Text |
| Context | 200,000 tokens |
| Max Output | 128,000 tokens |
| Vision | ✗ Not Supported (vision handled by separate GLM-5V-Turbo) |
| Function Calling | ✓ Supported |
GLM-5.1 is the flagship open-source LLM from Z.ai (formerly Zhipu AI), released on April 7, 2026 under the MIT license. It uses a 754B-parameter Mixture-of-Experts architecture (GlmMoeDSA) with 40B active parameters per token, combining Gated DeltaNet linear attention with standard attention layers. The model is a post-training upgrade to GLM-5, specifically tuned for agentic engineering and long-horizon software development.
The defining breakthrough is its shift from "one-shot generation" to a self-directed "experiment–analyze–optimize" loop: GLM-5.1 can run autonomously for up to 8 hours, proactively rewriting its strategy when progress stalls instead of looping on dead ends. It tops SWE-Bench Pro at 58.4%, ahead of GPT-5.4 (57.7%) and Claude Opus 4.6 (57.3%), making it the first open-source model to lead that leaderboard — and it was trained entirely on Huawei Ascend 910B chips with no NVIDIA hardware involved.
| Feature | Benefit |
|---|---|
| GlmMoeDSA hybrid MoE | 256 routed + 1 shared expert, 8+1 active per token — large-model capacity with efficient inference |
| Gated DeltaNet linear attention | Mixed with standard attention to slash long-context cost, making 200K windows practical |
| Post-training-driven gains | Same GLM-5 base, +28% coding lift purely from multi-task SFT → multi-stage RL → cross-stage distillation |
| 8-hour autonomous loop | Rare-in-industry stability over long tasks: goal alignment holds, errors don't compound |
| Trained on Huawei Ascend | Proves frontier-grade training without NVIDIA, validating an alternative hardware stack |
| Full MIT open weights | No commercial licensing friction; substantially lower TCO than comparable closed APIs |
| Dimension | Rating | Notes |
|---|---|---|
| Reasoning | Excellent | 95.3% on AIME 2026, 86.2% on GPQA-Diamond; top-tier STEM reasoning |
| Coding | Top-tier | #1 on SWE-Bench Pro, leads NL2Repo and CyberGym; built for long-horizon engineering |
| Creative Writing | Strong | Markedly improved on open Q&A and multi-turn dialogue, but trails GPT/Claude peers |
| Multimodal | Moderate | Text-only; no native vision or audio (use companion GLM-5V-Turbo for vision) |
| Response Speed | Moderate | ~44–59 tokens/s — above average but not a latency-optimized model |
| Context Window | Huge | 200K input + 128K output; output ceiling exceeds most peers |
Our pricing is based on image and text token usage. The final cost depends on the tokens consumed.
| Token Type | LinkAI Price | Official Price |
|---|---|---|
| Input | $1.26 / 1M tokens | $1.4 / 1M tokens |
| Cached input | $0.234 / 1M tokens | $0.26 / 1M tokens |
| Output | $3.96 / 1M tokens | $4.4 / 1M tokens |