Update, June 21, 2026: The first independent benchmarks have landed since launch and now rank GLM 5.2 as the strongest open-weight coding model, and the open weights are available for self-hosting. Scores and analysis are below.
GLM 5.2 arrived on June 13, 2026, and it lands with three headline numbers: a 753-billion-parameter Mixture-of-Experts design, a 1-million-token context window, and an MIT license that makes the weights free for anyone to download and run. Chinese AI lab Zhipu AI (operating as Z.ai) shipped it as a coding-first frontier model, and the timing was not subtle. It went public just two days after the US ordered Anthropique to cut foreign access to its Fable 5 and Mythos 5 models.
GLM 5.2 tops our roundup of the best open source AI models, where you can see how it stacks up against DeepSeek V4, Llama 5, and the rest of the open-weight field.
If you are new to the category, our explainer on what open source AI is covers how open weights and model licensing actually work.
This article breaks down what GLM 5.2 actually is, how it differs from the GLM 5.1 release in April, what the 1M-token context means in practice, and where it fits among open-weight rivals like Qwen and DeepSeek, and how it compares with newer challengers like ByteDance’s Seed 2.1 Pro on coding leaderboards. We also cover the independent benchmark results that landed after launch, pricing across the GLM Coding Plan, and how the model connects to existing tools like Claude Code.
The Key Takeaways
- GLM 5.2 launched June 13, 2026 as a 753B-parameter Mixture-of-Experts model with 40B active parameters per token.
- The 1-million-token context window is roughly 5x larger than GLM 5.1’s ~200K limit, with output up to 131,072 tokens.
- It ships under an MIT license, with open weights, a standalone API, and the Z.ai chatbot arriving the week after launch.
- GLM Coding Plan pricing starts at $18/month (Lite), with Pro at $72/month and Max at $160/month.
- Independent benchmarks now rank GLM 5.2 the top open-weight coding model, scoring 62.1 on SWE-bench Pro and 81.0 on Terminal-Bench 2.1, just behind Claude Opus 4.8.
What Is GLM 5.2?
GLM 5.2 is the latest flagship large language model from Zhipu AI, a Beijing-based lab that has become one of China’s most aggressive open-weight model publishers. It is the newest release in Zhipu’s full GLM model family. It is built on the GLM-5 base and uses a Mixture-of-Experts architecture with 753 billion total parameters, of which only 40 billion activate for any given token. That design keeps the running cost closer to a 40B model while drawing on the knowledge of a much larger one.
The release is squarely aimed at developers. Zhipu positioned GLM 5.2 around long-horizon coding and agentic work, the kind of multi-step tasks where a model writes, runs, and revises code across an entire project. It connects to popular coding clients through an Anthropic-compatible endpoint, so tools like Claude Code, Cline, OpenCode, and OpenClaw can point at it without a proprietary SDK.
One thing changed fast after launch. Zhipu shipped GLM 5.2 with no published benchmark scores, as noted in launch coverage from MarkTechPost, which left early “beats GPT-5” claims as vendor assertions. Within days, independent testers and the company’s technical card filled that gap, and the numbers landed well above the earlier GLM 5.1, which scored 58.4 on SWE-bench Pro. The full results are in the benchmark section below.
GLM 5.2 vs GLM 5.1: What Changed
The jump from GLM 5.1 (released April 7, 2026) to GLM 5.2 is incremental on paper but meaningful in one dimension, context. The new model handles five times more input, which changes what you can feed it in a single prompt. Here is the side-by-side.
| Spec | GLM 5.2 | GLM 5.1 | What changed | Why it matters |
|---|---|---|---|---|
| Release date | June 13, 2026 | April 7, 2026 | ~2 months apart | Fast iteration cycle |
| Parameters | 753B (40B active) | 754B (40B active) | Slightly leaner | Same per-token compute |
| Context window | 1,000,000 tokens | ~200,000 tokens | 5x larger | Whole repos in one prompt |
| Max output | 131,072 tokens | ~128K tokens | Roughly equal | Long code generations |
| Reasoning modes | High and Max | Single mode | Two effort levels | Tune depth vs cost |
| License | MIT (weights released) | MIT | Unchanged | Fully open weights |
| SWE-bench Pro | 62.1 | 58.4 | +3.7 points | Stronger coding |
The two reasoning modes are new and practical. High handles everyday generation, while Max is the setting Zhipu recommends for complex, multi-step coding, trading speed for deeper reasoning. The slight drop in total parameters, from 754B to 753B, suggests architectural tuning rather than a bigger model, and the 40B active count stayed flat so inference cost should be similar.
GLM 5.2 Benchmarks: How It Actually Performs
The launch left a hole, but the data filled it quickly. Independent testers and Zhipu’s own technical card now rank GLM 5.2 as the most capable openly available model on the market, and on several long-horizon coding tests the gap to Claude Opus 4.8 narrows to roughly a single point, as detailed in coverage from The Decoder. Here is how it stacks up on the headline coding benchmarks against the current closed-source leaders.
| Benchmark | GLM 5.2 | Claude Opus 4.8 | GPT-5.5 | GLM 5.1 |
|---|---|---|---|---|
| SWE-bench Pro (coding) | 62.1 | 69.2 | 58.6 | 58.4 |
| Terminal-Bench 2.1 (agentic) | 81.0 | ~84 | n/a | 63.5 |
| FrontierSWE (long-horizon) | 74.4% | 75.4% | ~73% | n/a |
The standout result is SWE-bench Pro, where GLM 5.2’s 62.1 beats GPT-5.5 at 58.6 and its own predecessor at 58.4, while trailing Claude Opus 4.8 at 69.2. On Terminal-Bench 2.1 it leapt to 81.0 from GLM 5.1’s 63.5, landing within about four points of Opus 4.8, and on FrontierSWE it sits roughly one point behind Opus while edging out GPT-5.5. It also posts a 99.2% on the AIME 2026 math test. For context on how far orchestration can push these numbers, Sakana AI’s Fugu reaches 73.7 on SWE-Bench Pro by routing tasks across a pool of models rather than running as one.
The economics are the real headline. GLM 5.2 matches or beats GPT-5.5 on these coding marathons for roughly one-sixth the cost, which reframes it from “cheap alternative” to “serious contender.” The one asterisk comes from independent platform Artificial Analysis, which found the model burns through far more tokens than rivals to reach those scores, making it one of the less token-efficient options in its class. On hard, single-shot reasoning tests like Humanity’s Last Exam it still trails Opus 4.8 and Gemini 3.1 Pro by several points, so this is a coding-and-agents specialist first.
Why the 1-Million-Token Context Window Matters
A 1-million-token context window means GLM 5.2 can hold roughly 750,000 words of input at once. In practical terms you can paste an entire mid-sized codebase, a full set of API docs, or a long research corpus and ask the model to reason over all of it without chunking. The model is labeled glm-5.2[1m] to flag the extended window, and Z.ai describes the capacity as “usable” rather than a marketing ceiling.
For coding specifically, this is the difference between feeding the model one file and feeding it the whole repository. Agentic tools that previously had to summarise or retrieve slices of a project can now keep far more in working memory, which reduces the errors that creep in when a model loses track of code it cannot see. That long-context strength is the same reason open models built for running on a Mac have grown popular with developers who want local control.
GLM 5.2 and the Export-Control Backdrop
The launch date matters. In the days just before the GLM 5.2 announcement, the US Commerce Secretary ordered Anthropique to block foreign access to Fable 5 and Mythos 5 within 48 hours under a new export-control directive. Anthropic disabled both models globally within hours, and you can read the full timeline in our coverage of the Fable 5 shutdown.
Zhipu framed GLM 5.2 as a direct counterweight. By releasing a frontier-class model under an MIT license with no regional restrictions, the company pitched open weights as insurance against any single nation or vendor controlling foundational AI. Investors responded fast, and Zhipu’s stock rose on the open-source announcement, according to the South China Morning Post. It is part of a broader wave of Chinese open releases that includes the Qwen family and DeepSeek V4.
GLM 5.2 Pricing and Availability
GLM 5.2 went live immediately across every GLM Coding Plan tier, with the standalone API, the Z.ai chatbot, and the downloadable MIT weights all released in the week after launch. The Coding Plan is a subscription that routes through the same Anthropic-compatible endpoint, billed monthly, with annual billing knocking roughly 30% off each tier.
GLM Coding Plan Lite ($18/month)
The entry tier costs $18/month (about $12.60/month on annual billing) and targets individual developers doing moderate coding assistance. It is the cheapest way to test GLM 5.2 inside a tool like Claude Code.
GLM Coding Plan Pro ($72/month)
Pro runs $72/month (about $50.40/month on annual billing) and is aimed at power users running multi-file refactors and agentic tasks daily.
GLM Coding Plan Max ($160/month)
Max costs $160/month (about $112/month on annual billing) for developers who keep an agent running through the workday. Team pricing is seat-based for organisations. For a sense of how that stacks up against rival open models, our breakdown of Rio 3.5 Open covers another Chinese open-weight release worth comparing.
Should You Use GLM 5.2?
If you write code and want a long-context model you can run yourself, GLM 5.2 is one of the strongest open-weight options available, and the MIT license removes the usual restrictions on commercial use. The 1M-token context is a real advantage for repo-scale work, and the Anthropic-compatible endpoint means you can slot it into existing tools with minimal friction.
The benchmarks have settled the performance question, so the real considerations now are cost shape and data jurisdiction. GLM 5.2 is token-hungry, which means heavy agentic use can run up usage faster than the headline price suggests. And while the open weights let you self-host with full privacy, routing through the hosted Z.ai API sends your code to servers governed by Chinese data rules, a tradeoff worth weighing for sensitive or proprietary work. If you would rather not manage models at all, apps like Fello AI give you Claude, ChatGPT, Gemini, Grok, and DeepSeek through one $9.99/month subscription, so you can compare outputs without juggling separate accounts or API keys. GLM 5.2 itself joined that lineup in the Fello AI 6.7.0 update.
Conclusion
GLM 5.2 is a clear statement, a frontier-class, 1M-context, MIT-licensed model shipped within days of a major US export clampdown. And unlike at launch, the numbers now back the framing: independent benchmarks place it as the top open-weight coding model, beating GPT-5.5 on SWE-bench Pro and closing to within a point of Claude Opus 4.8 on long-horizon tasks, all for roughly a sixth of the cost. The remaining caveats are its heavy token appetite and the data-jurisdiction question around the hosted API. If you want to try it now, the cheapest path is the $18/month GLM Coding Plan Lite through a tool like Claude Code, with the open weights now available for self-hosting. Zhipu’s next release, GLM 5.5, is already expected later in 2026.
FAQ
Is GLM 5.2 free?
The weights are released under an MIT license, so self-hosting is free and unrestricted for commercial use. Using it through the GLM Coding Plan costs from about $18/month, while the standalone API runs $1.40 per million input tokens and $4.40 per million output.
How big is the GLM 5.2 context window?
It handles up to 1,000,000 input tokens, roughly five times GLM 5.1’s ~200,000-token limit, with output up to 131,072 tokens.
Who made GLM 5.2?
Zhipu AI, a Beijing-based lab operating as Z.ai, which is one of China’s leading open-weight model publishers.
Does GLM 5.2 beat GPT-5 or Claude?
On coding, partly yes. Independent benchmarks released after launch show GLM 5.2 scoring 62.1 on SWE-bench Pro, ahead of GPT-5.5 at 58.6 but behind Claude Opus 4.8 at 69.2. It is now widely ranked the strongest open-weight model available, though closed leaders still hold a narrow edge on the hardest long-horizon tasks.
Can I use GLM 5.2 with Claude Code?
Yes. GLM 5.2 exposes an Anthropic-compatible endpoint, so Claude Code, Cline, OpenCode, and similar tools can connect to it directly.




