
Unlocking Z.ai GLM-5.4: The Coding Model That Loops Its Own Brain Twice
On Monday, November 23, Z.ai did something no other lab has tried at flagship scale: instead of building a bigger model, it built one that thinks twice. GLM-5.4 is the Chinese lab's first flagship built on a Loop Transformer — 28 layers of the GLM-5 base model run twice for every token, so the network gets deeper without getting bigger. Z.ai says the result, at roughly 750 billion parameters, performs like a model in the 2–3 trillion parameter class. It also adds something the GLM line has never had in its mainline flagship: vision. And it ships with a million-token context window and 50% more weekly quota than its predecessor.
There is a catch, and it is a big one: Z.ai has published no benchmark scores for GLM-5.4 itself. Not one. The most interesting architecture launch of the month arrives with no scoreboard at all — and with no public API price and no open weights either. What you get, for now, is a subscription-only model inside Z.ai's own tools. This post lays out what is verified, what is vendor claim, and what is still missing, so you can decide whether the loop is worth paying for.
What GLM-5.4 actually is
A standard Transformer passes each token through every layer once, bottom to top, and produces a word. GLM-5.4 sends the token through a core block of 28 layers from the GLM-5 base model twice — the second pass reuses the same weights to refine what the first pass produced. The parameters are shared, so the model does more computation per token without adding parameters. Z.ai did not train this looped model from scratch; it took the already-trained GLM-5 base and converted it through continued training, which is cheaper than a fresh pre-train and is part of why the launch came so fast after GLM-5.3 in August.
The loop is not free. Running layers twice risks slowing the model down, so Z.ai leans on engineering tricks to stay fast: reusing the first pass's cache and attention indices in the second pass, sparse attention, per-token gating and fused kernels. The vendor-reported result is up to 200 tokens per second off-peak and 70–80 tokens per second at peak load. Because much of the reasoning happens silently inside the loop, Z.ai also says the model emits 10–14% fewer output tokens on complex math and science tasks — less text to read, and fewer tokens to pay for inside the plan.
| GLM-5.4 | GLM-5.3 | GPT-6.2 Astra | MAI Code 2 | |
|---|---|---|---|---|
| Scale | ~750B (looped) | ~750B | Frontier | 7-model family |
| Architecture | Loop Transformer, 28 layers × 2 | Standard Transformer | Standard Transformer | Standard Transformer |
| Vision input | Yes — images, video, files | Text only (flagship) | Yes | Yes |
| Context window | 1M tokens | — | — | — |
| Max output | 128K tokens | — | — | — |
| Flagship benchmarks | None published | Published | Published | Published |
| How you get it | Coding Plan subscription only | Subscription / API | ChatGPT Work, Codex | GitHub Copilot |
| Cheapest entry | $18/mo (Lite) | $18/mo (Lite) | — | — |
Read the vision row twice, because for developers it is the headline change. GLM-5.3's flagship was text-only — only the lightweight Flash version understood images. GLM-5.4 takes text, image, video and file inputs, according to Z.ai's own developer documentation, and returns text. That means you can paste a screenshot of a broken page next to the code that produced it, hand it a UI mockup and ask for the rebuild, or debug from an error screenshot instead of describing the error in words. For a coding agent, seeing the rendered result is the difference between guessing and checking.
Generalized Coding: code as the base for everything else
Z.ai frames the model around what it calls "Generalized Coding" — code as the base skill for tasks beyond software. The launch demonstrations lean hard into that framing: a complete game, a six-axis robotic arm modelled in FreeCAD, an interactive 3D bird scene, and a self-narrated music video, all generated as code. The point is that a model which can write code can, in principle, drive any tool that takes code as input — video, games, 3D shaders, CAD modelling.
That is a real idea, and it is also a demo reel. The FreeCAD arm and the music video show what the model can produce when the prompt is chosen well; they do not show what it does on your codebase on a Tuesday afternoon. The honest way to read them is as a statement of direction — Z.ai wants its coding model to be a general-purpose agent that happens to speak code — not as proof of frontier capability. The proof, as ever, would be benchmarks, and there are none yet.
The loop idea itself is not new, but November 2026 is the month it went mainstream. Thinking Machines shipped Inkling 2 Mini on November 20 — a 26B looped model that runs 20 agents on one MacBook, which we covered on Sunday. GLM-5.4 is the same idea at the opposite end of the scale: a 750B flagship looped in the cloud. Mini proves looping works on a laptop; GLM-5.4 is the bet that it scales to the frontier. Between them, the two launches make looping the architecture story of the month.
What it costs, and the one way in
For now, GLM-5.4 lives inside the subscription. It is available to all GLM Coding Plan subscribers — Lite at $18 a month, Pro at $80, Max at $168 — with the same models on every tier and only the quota differing. There is no free tier. In Claude Code you select glm-5.4[1m] for the million-token version; in other tools the model id is glm-5.4. It also runs in ZCode, Z.ai's desktop agent harness, and in Z.ai Chat.
Two things make the subscription better value than it was for GLM-5.3. First, subscribers on weekly quotas get 50% more GLM-5.4 allowance than they had on GLM-5.3. Second, Z.ai cut the credit multipliers: uncached input falls from 6.9 to 4.6 against GLM-5.3, cached input from 1.7 to 1.1, and output from 24 to 16. The same plan buys roughly a third more model than it did before. One pricing wrinkle to watch: some listings show $12.6, $56 and $117.6 — those are the 30% annual-pay discounted prices, not the monthly list prices, so compare like with like before you conclude the plan got cheaper.
Everything else is still to come. There is no pay-as-you-go API price yet — Z.ai says API access opens only after a safety evaluation — and no open weights, which the company says will follow after safety hardening, with no date given. Z.ai also says it intends to release smaller 1B, 4B and 30B looped models, which would compete directly with the Qwen family's small-model range. Until the API and the weights arrive, the only route in is the subscription, and the only place to run it is Z.ai's own infrastructure.
The evidence so far — and what it is not
Here is everything that can be said about how good GLM-5.4 is, with each number labelled for what it actually is.
Z.ai's own test, 200 real coding tasks: GLM-5.4 beats GLM-5.3 in 51.1% of them and loses 23.1%. That is a clear step up from its predecessor — it wins about twice as often as it loses — but it is Z.ai's own test, on tasks Z.ai chose, and the comparison is against GLM-5.3, not against the frontier. Against Kimi K3.1 Pro and DeepSeek V4.1 Flash, independent summaries of the same data put GLM-5.4's edge at ten points or less.
The 30B ablation — not a flagship score: Z.ai's technical blog reports AIME25 rising from 19.17 to 30.42 and GPQA-Diamond up 8.7 points when looping is switched on at 30B scale. Those are loop-versus-no-loop numbers at 30B, not GLM-5.4 scores. If you see them quoted as GLM-5.4 benchmarks, the quote is wrong.
One early independent run: a single early reviewer ran KingBench 4 and scored GLM-5.4 at 55.3% — respectable, but the run took 431 minutes against 109 minutes for the comparison model. One reviewer, one benchmark, and a run time that suggests the loop is expensive in wall-clock terms even if the token rate looks fast. Treat it as a first data point, not a verdict.
No Artificial Analysis score, no public leaderboard entry. As of launch day, GLM-5.4 has no AA Index score and no independent benchmark table anywhere. Compare that with this week's other coding launches: GPT-6.2 Astra and Sol, which we covered on Saturday, arrived with a 62 on the Index and a price, and Microsoft MAI Code 2 arrived inside GitHub Copilot with its cost claim front and centre. GLM-5.4 arrived with an architecture paper and a subscription page.
Z.ai's own blog also acknowledges a tendency the loop creates: the model can get caught in overly long outputs — marathon thinking loops that keep self-correcting past the point of usefulness. Z.ai's position is that the extra self-correction still lifts accuracy, which may be true, but it is also the reason that 431-minute KingBench run should worry you. A model that thinks longer is only better if it stops in time.
Who should try it, and who should wait
If you already pay for a GLM Coding Plan, there is no reason not to switch: GLM-5.4 is included at the same tiers, with 50% more quota and cheaper credit multipliers, plus vision. The vision input alone changes the daily workflow — screenshot-driven debugging and UI rebuilds from mockups are the kind of thing you notice the first day you have them. Set it as your model in Claude Code as glm-5.4[1m] and try it on a real task with a screenshot attached before you judge it on anything else.
If you do not already subscribe, the case is thinner. Eighteen dollars a month is cheap for a coding model, but you are buying into a closed system with no API, no weights, and no independent scores — and the two models it would replace in your stack, GPT-6.2 Astra and MAI Code 2, are already inside the tools you use, with published numbers. The strongest reason to subscribe now is curiosity about the loop itself: if looping is the next architecture shift, GLM-5.4 is the cheapest way to use it at scale today.
If you build agents for production, wait. No API means no integration, no per-token price means no cost model, and no benchmarks means no way to promise a customer a result. The moment that changes — API pricing, an AA Index score, or the open weights — is the moment to re-evaluate. Until then, GLM-5.4 is a fascinating model you can only rent by the month, inside someone else's app.
It is also worth noting the pairing with today's other Wednesday post. Xing4.1-Preview, the 285B agent model from China Telecom, launched the same day with the opposite playbook: open weights under Apache 2.0, no benchmarks either, but trained entirely on Huawei Ascend chips with no Nvidia involved. Two coding models, one day, opposite bets — Xing bets that openness wins, GLM bets that architecture wins. Both launched without a scoreboard. The week in AI is increasingly a week in which the launch is the news and the evidence arrives later. Our job, as ever, is to keep the two separate.
Bottom line
Z.ai's GLM-5.4 is a 750B-scale Loop Transformer flagship that runs 28 layers of the GLM-5 base twice per token, adds native vision to the GLM coding line for the first time, and ships with a 1M-token context window, up to 128K output tokens, and 50% more weekly quota than GLM-5.3 — at $18, $80 or $168 a month on the GLM Coding Plan, with cheaper credit multipliers than its predecessor. Z.ai claims intelligence comparable to 2–3 trillion-parameter models, but has published no benchmark scores for the model itself, no API price, and no open weights, and its own blog acknowledges a tendency toward overly long outputs. If you already subscribe, switch and use the vision input on real work. If you do not, wait for the API, the weights, or a single independent score — whichever comes first.
The editorial team behind AI Agents Force — publishing deep dives on AI agents, agentic workflows, autonomous systems, and the tools shaping the future of intelligent automation.
Browse all articles →Related Articles

Unlocking Anthropic Claude Ship: The AI Agents That Review, Fix and Approve Your Pull Requests

The Essential Setup Claude Code Guide for Agentic AI Development
