Three days after the US government blocked Fable 5 and Mythos via export controls, a single post went up on Hacker News and collected 772 upvotes. It was the launch of GLM 5.2 from Z.AI.
MIT license. Open weights. SWE-bench Pro coding score of 62.1 — the first open-source model to outperform GPT-5.5's 58.6. API cost: one-sixth of GPT-5.5.
Who is Z.AI anyway?
Z.AI is a Beijing-based AI startup that spun out of Tsinghua University's Knowledge Engineering Group in 2019. They've been developing the GLM (General Language Model) series, and GLM 5.2, released June 13, 2026, broke out of the "Chinese open-source" bucket entirely.
Founder Jie Tang stated in the launch announcement: "Frontier intelligence must remain open-source, accessible, and buildable — serving every dedicated developer." It could read as marketing copy, but this time the benchmarks back it up.
The MoE (Mixture-of-Experts) architecture means only 40B of the 753B parameters are active during any inference call. That's how the cost-to-performance ratio stays so competitive.
Did it actually beat GPT-5.5 on coding?
Here are the numbers. GLM 5.2 outperformed GPT-5.5 on core agentic coding benchmarks — not just edge cases.
| Benchmark | GPT-5.5 | GLM 5.2 (open weight) | Claude Opus 4.8 |
|---|---|---|---|
| SWE-bench Pro (coding) | 58.6 | 62.1 ▲ | 69.2 |
| FrontierSWE | 72.6% | 74.4% ▲ | 75.1% |
| Terminal-Bench 2.1 | — | 81.0 | ~84 |
| AIME 2026 (math) | — | 99.2% | — |
| API cost (input/1M tokens) | baseline | $1.40 (~1/6th) | ~$7 |
On the Artificial Analysis Intelligence Index, GLM 5.2 ranks #1 among all open-weight models and #4 overall. It also topped the Design Arena code category leaderboard.
The security results were unexpected too. Semgrep ran an IDOR vulnerability detection benchmark and found that GLM 5.2 scored 39% F1 — 11 points ahead of Claude Code Opus 4.8 at 28%. Cost per vulnerability found: $0.17, roughly one-sixth of comparable frontier models.
"Among models given nothing but a prompt, the best open-weight option beat Claude Opus 4.8."
— Semgrep security benchmark conclusion
Should you trust it?
504 HN comments surfaced a real tension: "potential Chinese government involvement" vs "US models have their own censorship." Here is what actually matters for practical decisions.
Know before you deploy
GLM 5.2 releases model weights under MIT, but training data and pipeline are not public. It is "open weights," not "fully open source." Z.AI has received investment from Chinese government-linked institutions — organizations handling sensitive data should get legal and compliance sign-off before deploying via the cloud API.
Here is the practical angle. Self-hosting means your data never touches Z.AI servers. The MIT license also covers commercial use, fine-tuning, and redistribution with no restrictions.
If you want to reduce vendor lock-in
GLM 5.2 offers an Anthropic-compatible API endpoint. Claude Code, Cursor, and similar tools just need a base URL change to switch. If another Fable 5-style block ever happens, you have a plan B already wired in.
How to start using it right now
- Create a z.ai account
Sign up at z.ai and get an API key. Lite plan $18/month, Pro $72/month, Max $160/month. Pay-as-you-go: $1.40 per million input tokens, $4.40 per million output. - Plug into your existing Anthropic-based tools
Claude Code, Cursor, and similar tools just need the base URL updated to the z.ai endpoint. Existing prompts and tool connections continue working. - Put the 1M context to work
Feed it an entire large codebase, a full contract stack, or a long-running agent task. Z.AI officially claims lossless 1M token context — no chunking required. - Self-host if data sovereignty matters
Download weights from the zai-org repository on Hugging Face. 2-bit quantization requires ~245GB RAM. A 4× RTX 3090 rig or a maxed-out Mac Studio works in practice. - Test on your actual workload
Public leaderboards are averages. The model that wins your specific task is what matters — run your own eval before fully committing.
Want to go deeper?
VentureBeat: Z.AI GLM-5.2 vs GPT-5.5 Deep-dive on long-horizon coding benchmarks and cost comparison venturebeat.com
Semgrep security benchmark report How an open-weight model beat Claude on IDOR vulnerability detection semgrep.dev
avenchat: GLM 5.2 detailed review Hardware requirements, API pricing, and real-world usage notes avenchat.com
Z.AI official release notes 1M context technical specs and changelog docs.z.ai
zai-org GitHub Model weights, README, and self-hosting setup guide github.com
Hacker News discussion (772 points, 504 comments) Geopolitical concerns, performance checks, community usage reports news.ycombinator.com




