GLM-5.2: The open-source coding monster that's embarrassing the big players — at a sixth of the price
AI News7 min readJuly 10, 2026

GLM-5.2: The open-source coding monster that's embarrassing the big players — at a sixth of the price

GLM-5.2 is currently the world's #1 open-weights model, free to download and use commercially, and costs about a sixth of what GPT-5.5 does. I break down what "open-weights" actually means, what MoE is, and that million-token context window

Yuval Avidani

Yuval Avidani

Author

"A sixth of the price, and you can take it home too" — that's the line that made me stop everything and dig deep into GLM-5.2. Turns out that on June 13, 2026, the Chinese company Zhipu AI (also branded as Z.ai) released its new open-weights flagship, and unlike a lot of the inflated announcements we see every week — this time the numbers are actually interesting. So let's break it down together, no buzz and no magic tricks.

Wait, what does "open-weights" even mean?

Before we get excited, we need to understand one word: open-weights. Think of a language model like a giant recipe with billions of "tuning numbers" — those are the "weights." When a model is closed (like GPT-5.5 or Claude), we don't get the recipe. We just send a request to the company's server through an API — a pipe through which we talk to the model sitting on their end — and get an answer back. The recipe stays locked up with them.

When a model is open-weights, the company lets us download the entire weights file. We can run it on our own machine (self-host), fine-tune it for our needs, and use it commercially — without paying anyone per-request. GLM-5.2 is released under the MIT license, which is about the most permissive license there is: take it, do whatever you want, sell it, almost no conditions. That's exactly why the community is excited.

What this beast can actually do

Now for the dry numbers, because they tell a story. GLM-5.2 is a massive model with roughly 753 billion parameters. A parameter is just another name for a "tuning number" — and the more of them there are, the more "room" the model has to learn things. But the cool part is how they built it: with an MoE architecture.

MoE stands for Mixture-of-Experts. Think of it like a big hospital: there are dozens of specialist doctors, but when we come in with a knee injury — we don't wake up the whole staff. Only the orthopedist and the physiotherapist walk into the room. Every time the model answers, only a small chunk of the parameters actually "lights up" and gets to work — and that's what allows a huge model to run at a reasonable cost. That's exactly why you can get giant-model quality without paying giant-model electricity bills for every word.

And it has one more weapon: a context window of one million tokens. A token is a small piece of text — roughly part of a word (the word "intelligence" can break into several tokens). The context window is how much text the model can "hold in its head" at once. A million tokens is enormous — think of it like working memory that can hold an entire code repo, not just a single file. That's exactly why it's built for long-running coding agents: an agent is a model that doesn't just answer, but carries out a multi-step task on its own — reading files, running commands, fixing bugs — over an extended stretch of time.

The benchmarks: here's where it gets serious

A benchmark is just a standardized test run on all models to compare them under the same conditions. Let's see where GLM-5.2 stands, and I'll be fair — it doesn't win at everything.

On SWE-bench Pro it scored 62.1%. SWE-bench takes real bugs from real open-source code projects and checks whether the model can fix them on its own — it's one of the tests closest to "real programmer work." On Terminal-Bench 2.1, which tests terminal work, it hit 81.0%. On several long-horizon coding benchmarks it actually beats GPT-5.5 — and this is an open model you download for free, going up against an expensive closed flagship.

Then there's Humanity's Last Exam, a particularly brutal test designed to challenge the strongest models. With tools, GLM-5.2 scored 54.7 — ahead of GPT-5.5 (52.2), but behind Opus 4.8 (57.9). So yes, it's excellent, but it's not the king of the world. Let's look at the full picture.

On the overall Artificial Analysis Intelligence Index — an index that weighs a ton of tests into a single intelligence score — GLM-5.2 got 51. That's the highest score of any open-weights model in the world right now, and fourth place overall. Ahead of it: Claude Fable 5 (60), Opus 4.8 (56), and GPT-5.5 (55). Notice the gap: the closed models still lead on raw intelligence — the story of GLM-5.2 isn't "the smartest," it's "the smartest one you can actually hold in your hand and pay pennies for."

Now for the real wonder: the price

This is where it gets genuinely interesting. On OpenRouter (a service that centralizes access to a ton of models), GLM-5.2 costs roughly $1.20 per million input tokens and about $4.10 per million output tokens. Why does this matter to us? Because for comparable coding work, that's roughly a sixth of what GPT-5.5 costs.

Think of it like the difference between a private taxi and a train. If we're building an agent that works for hours, reads thousands of files and produces tons of code — every token adds up. A sixth of the price is the difference between a project you can actually run and one where the bill kills you. And that's before we've even talked about the option to download the weights from Hugging Face (the site where the community shares models) and run everything ourselves without paying per-token at all.

The asterisk: where does our data actually go

And now the part you can't skip, even when the numbers are dazzling. There's a critical distinction here between two ways of using GLM-5.2.

The first way: download the weights and self-host. In this setup everything stays with us, the data doesn't leave — and that's exactly the power of open-weights. The second way: send requests to Zhipu's own API. Using their API carries a data risk — information can flow to servers in China, and that's a real consideration for anyone working with sensitive code or customer data. This isn't panic, it's just being straight with you: you need to know where your data actually sits. Anyone who wants the benefits without the risk — downloads it and runs it themselves.

Bottom line — as I see it

In my view, GLM-5.2 is an important moment for the open-source community: for the first time, there's an open-weights model breathing down the neck of the closed ones on real coding work, under the MIT license, at a price that invites bold experimentation. True, it doesn't beat Opus 4.8 or Claude Fable 5 on overall intelligence — and that reflects the different approach of the closed companies, who pour everything into one highly-polished model. But "open, cheap, and downloadable" is a value you can't buy from a closed API at any price.

My limitations here: I haven't run it on my own machine for weeks on end, and benchmarks — as always — don't tell the whole story of day-to-day work. And of course, the data risk on the API isn't a footnote. (And for anyone arriving here with an investment angle in mind — this isn't investment advice or financial guidance, just a technical analysis.)

So I'll ask you: if you were building a coding agent tomorrow morning — would you go for the raw intelligence of the closed models, or for the freedom and price of GLM-5.2?

Comments