by Inference Hub

GLM-5.2 Is Cheaper and Better at Coding — and the Fable 5 Ban Shows Why Open Weights Win

Z.ai's GLM-5.2 beats GPT-5.5 on long-horizon coding for ~1/6th the cost. Days earlier, Anthropic's Claude Fable 5 was switched off worldwide by a US government order. Together they explain why open-weight Chinese models are becoming the default.

glmz-aicodingopen-sourcechinese-modelsfable-5

In one week of June 2026, the AI industry got a clean, almost laboratory-grade demonstration of where things are heading.

On June 12, Anthropic’s brand-new flagship — Claude Fable 5, the most capable model it had ever shipped — was ordered offline by the US Commerce Department and disabled for every customer on Earth within hours. On June 16, Z.ai released GLM-5.2, an open-weight model that beats GPT-5.5 on multiple long-horizon coding benchmarks at roughly one-sixth the price — and posted the weights on Hugging Face under an MIT license, where no government can recall them.

If you were choosing what to build on that week, the contrast wrote itself.

The Fable 5 lesson: a frontier model can vanish overnight

Anthropic launched Claude Fable 5 (and its restricted sibling, Mythos 5) as a generational leap. Three days later it was gone. The US Commerce Department directive took the form of an export-control restriction citing national security, prohibiting access “by any foreign national, whether inside or outside the United States.”

The trigger, per reporting, was a demonstration by a rival (the Wall Street Journal named Amazon) showing the Commerce Department a single input that stripped away Fable 5’s safety restrictions — despite Anthropic’s claimed 1,000+ hours of red-team testing. Because Anthropic couldn’t reliably tell foreign nationals from everyone else in real time, it did the only thing the order allowed: it switched the models off for the entire planet.

The developer reaction was immediate. As one Hacker News commenter put it, “All Anthropic customers just got a downgrade last evening.” The New Stack reported that four open models filled the gap before Anthropic could even restore access.

Here is the part that matters for anyone shipping software: this cannot happen to an open-weight model. Once GLM-5.2’s weights are on Hugging Face and ModelScope, there is no kill switch. No export order, pricing change, deprecation notice, or safety-incident recall can reach the copy running on your own hardware. Proprietary access is a lease; open weights are ownership. Fable 5 made that distinction concrete for a few hundred million users in a single evening.

GLM-5.2: cheaper and better at coding

The timing made GLM-5.2’s launch land harder than it otherwise would have. Released June 16, 2026, it’s a 753-billion-parameter model under a pure MIT license, built for long-horizon agentic coding with a stable 1M-token context window.

The headline, via VentureBeat: it beats GPT-5.5 on multiple long-horizon coding benchmarks for about one-sixth the cost.

Coding benchmarks

BenchmarkGLM-5.2GPT-5.5GLM-5.1
SWE-bench Pro62.158.658.4
Terminal-Bench 2.181.0

GLM-5.2 is now the strongest open-source model on standard coding benchmarks, edging out GPT-5.5 on SWE-bench Pro and improving on its own predecessor. Security vendor Semgrep independently found GLM-5.2 beating Claude on their cyber benchmarks — a notable result for a model you can self-host.

The price gap

ModelInput / 1MOutput / 1MLicense
GLM-5.2$0.95$3.00MIT (open weight)
GLM-5.1$0.98$3.08MIT (open weight)
GPT-5.5$5.00$30.00Proprietary
Claude Opus 4.8$5.00$25.00Proprietary

GLM-5.2 is roughly 5x cheaper on input and 10x cheaper on output than GPT-5.5, while scoring higher on SWE-bench Pro. It’s also marginally cheaper than GLM-5.1 — the rare upgrade that costs less than the model it replaces. For teams that prefer a managed plan, Z.ai’s coding subscription starts around $12.60/month, and self-hosters can run the weights for the cost of compute alone.

The model ID on OpenRouter is z-ai/glm-5.2. For live pricing across providers, see the GLM-5.2 model page. This continues the trajectory we covered when GLM-5.1 launched in April — except this time the open model is ahead of the US flagship on the benchmark, not 94% of the way there.

The bigger shift: open weights are already winning on volume

GLM-5.2 isn’t an outlier. It’s the leading edge of a trend that has quietly become the majority case.

By May 2026, Chinese open-weight models accounted for ~61% of all tokens consumed on OpenRouter, the largest neutral LLM router — and four of the five most-used models were Chinese, according to Data Gravity’s analysis. Meta’s Llama, the open-weight leader just two years earlier, had fallen off the rankings entirely.

The routing data shows how fast the floor moved:

  • DeepSeek captured ~17.6% of routed tokens — surpassing Anthropic’s 15.4%.
  • Google dropped from 37% to 13% year-over-year; OpenAI’s routed volume fell to single digits.
  • Coding grew from 11% to over 50% of OpenRouter usage — precisely the workload where Chinese models are strongest.
  • Qwen passed 1 billion cumulative downloads on Hugging Face, with ~40% of all new LLM derivatives now Qwen-based.

The driver isn’t a single capability breakthrough — it’s economics. DeepSeek V4-Pro lists at roughly 12x under GPT-5.5 at comparable benchmark intelligence. When the open model is within a few points on quality and a full order of magnitude cheaper, the default flips for any workload that runs at scale.

The honest counterpoints

This isn’t a one-way street, and it’s worth being clear-eyed about the limits:

  • The quality ceiling is still Western. On the overall LMArena leaderboard, the top spots remain Claude, Gemini, and GPT. For the single hardest reasoning task where you want the best answer regardless of price, a US frontier model is often still the call.
  • Some Chinese labs may be closing up. There are rumors on Hacker News that Qwen 3.7 and MiniMax are delaying open releases. The counter-evidence is the release calendar itself: Kimi K2.7, GLM-5.2, and MiniMax M3 all shipped open in this window.
  • Geopolitics and data residency are real. The Fable 5 ban cuts both ways — export controls that hobble US models also reflect a regulatory environment that treats frontier AI as a strategic asset. Where your data and weights live is now a board-level question, not a footnote.

Why open Chinese models could become the default for most people

Put the week together and the logic is hard to argue with. For the majority of real-world workloads — coding agents, summarization, extraction, chat, RAG — the deciding factors are cost, availability, and control, not the last few Elo points at the absolute frontier. On all three, open-weight models now win:

  1. Cost — 5–30x cheaper than Western proprietary APIs, and effectively free at the margin if you self-host.
  2. Availability — no vendor can switch off a model you’ve already downloaded. Fable 5 proved the alternative.
  3. Control — fine-tune it, pin a version forever, run it air-gapped. You own the artifact.

The frontier labs will keep defining the quality ceiling and capturing most of the revenue. But “best model in the world” and “model most people actually run” are diverging — and GLM-5.2 landing on top of the coding benchmarks, days after a flagship proprietary model was deleted from the planet by government order, is about as vivid a marker of that divergence as you’ll get.

The era of defaulting to one proprietary provider is ending. The smart architecture in 2026 is model-agnostic: route each task to the model that wins on cost, quality, and latency — and increasingly, the model that wins is one you can hold a copy of.


Further reading: our deep dive on Chinese frontier open-source models and the GLM-5.1 release breakdown. Compare GLM-5.2 pricing across providers on the GLM-5.2 model page, or browse every provider on Inference Hub.

Benchmark and adoption figures sourced from VentureBeat, Data Gravity, Anthropic, and The New Stack, as of June 2026.