Z.ai's GLM-5.2 takes the open-weight lead with MIT-licensed long-horizon coding
GLM-5.2 tops Artificial Analysis's open-weight ranking and rivals GPT-5.5 on several agentic coding tests, but it pays for that with heavy token use.
Key figures
- 51
- AA Intelligence Index v4.1 (top open model)
- 1M
- Context window (up from 200K)
- $1.40
- API price per 1M input tokens
Zhipu, which now trades as Z.ai, spent the spring fuelling speculation that it was drifting away from open releases: new models went first to paying subscribers of its coding plan, and prices kept rising. GLM-5.2 complicates that story. Three days after reaching coding-plan users on 13 June, the full weights appeared on Hugging Face under an MIT licence with no regional carve-outs. Within hours, independent testers ranked it the strongest open-weight model available.
What's new
GLM-5.2 is a sparse mixture-of-experts model in the same size class as GLM-5.1. Z.ai's model card lists 753 billion parameters; Artificial Analysis lists 744 billion total and about 40 billion active, unchanged from its predecessor. The difference likely reflects how auxiliary layers are counted, and the weights weigh in at around 1.5 TB either way.
The bigger changes are in context and efficiency. The context window grows from 200K to 1 million tokens. A technique Z.ai calls IndexShare reuses a single sparse-attention indexer across every four layers, which the company says cuts per-token compute by 2.9x at full context. An improved multi-token prediction layer lifts speculative-decoding acceptance length by up to 20%. The model is text-only; Z.ai's vision models remain closed.
Z.ai markets GLM-5.2 for "long-horizon" work: coding sessions and agent runs that last hours rather than single prompts. It offers multiple reasoning-effort levels, and most headline numbers use the maximum setting.
Benchmarks and claims
Z.ai's charts, reported by VentureBeat, set GLM-5.2 against the leading closed models. Independent figures come from Artificial Analysis.
| Benchmark | GLM-5.2 | GPT-5.5 | Claude Opus 4.8 | Run by |
|---|---|---|---|---|
| SWE-bench Pro | 62.1 | 58.6 | — | Z.ai |
| FrontierSWE | 74.4% | 72.6% | 75.1% | Z.ai |
| Terminal-Bench 2.1 | 81.0 | 84.0 | 85.0 | Z.ai |
| HLE (with tools) | 54.7 | 52.2 | 57.9 | Z.ai |
| GDPval-AA v2 (Elo) | 1,524 | 1,514 (xhigh) | — | Artificial Analysis |
| AA Intelligence Index v4.1 | 51 | — | 56 (max) | Artificial Analysis |
The independent picture is consistent with the vendor's, if less flattering. On Artificial Analysis's index, GLM-5.2 jumped 11 points over GLM-5.1 and cleared the next open models, MiniMax-M3 and DeepSeek V4 Pro (both 44) and Kimi K2.6 (43), by a wide margin. The top closed model on that index, Claude Opus 4.8 at maximum reasoning, scored 56, according to DeepLearning.AI's summary. On GDPval-AA, a test of economically valuable knowledge work, GLM-5.2 edged GPT-5.5.
The token bill
There is a catch that the headline "one-sixth the cost" framing hides. Artificial Analysis found GLM-5.2 uses about 43,000 output tokens per index task, up from 26,000 for GLM-5.1 and more than Kimi K2.6 (35,000) or DeepSeek V4 Pro (37,000). Its cost per task, around $0.46, is therefore higher than every other leading open model it tested; DeepSeek V4 Pro came in near $0.05.
List prices remain low: $1.40 per million input tokens and $4.40 per million output tokens, unchanged from GLM-5.1, against $5/$30 for GPT-5.5. For users who pay per token, the comparison with closed frontier models still favours GLM-5.2 by a large factor. Against other open models, it is the premium option.
Caveats
- Vendor-run comparisons. The wins over GPT-5.5 on SWE-bench Pro and FrontierSWE come from Z.ai's own charts; independent replication was limited at launch.
- Uneven quality. Simon Willison's informal tests found strong results on one SVG-animation prompt and a clear regression from GLM-5.1 on another, a reminder that aggregate indices hide variance.
- Release pattern. The three-day head start for paying subscribers may become the norm, which matters for anyone building on "day-zero" open availability.
Who should care
Teams running coding agents on their own infrastructure now have an MIT-licensed model that, on independent measures, sits within a few points of the best closed systems. The economics depend on workload: cheap per token, expensive per task. For the wider open-versus-closed debate, GLM-5.2 is the clearest data point yet that the gap in agentic coding is measured in months, and increasingly in how many tokens a model is willing to spend.
Researched and drafted with AI assistance under editorial review. Report errors to support@aiseeker.dev.
Sources
This report synthesises the sources below. Primary sources are marked.
- [1]GLM-5.2 (model card)
Hugging Face / Z.ai2026.06.16Primary
- [2]GLM-5.2 is the new leading open weights model on the Artificial Analysis Intelligence Index
Artificial Analysis2026.06.16Press / analysis
- [3]Z.ai's open-weights GLM-5.2 beats GPT-5.5 on multiple long-horizon coding benchmarks for 1/6th the cost
VentureBeat2026.06.16Press / analysis
- [4]GLM-5.2
Simon Willison's Weblog2026.06.17Press / analysis
- [5]Top Agentic Performance, Low Cost: GLM-5.2, designed for coding and long-running agentic jobs, now the top open model
DeepLearning.AI (The Batch)2026.06.26Press / analysis