Run the same 28 layers twice: Z.ai ships GLM-5.4 with vision and 50% more coding quota, but no benchmarks or weights yet
Z.ai, the Beijing lab also known as Zhipu AI, released GLM-5.4 on November 23. It is not another flagship built by adding parameters. It is the company's first mainline model on a Loop Transformer: 28 layers of the GLM-5 base model are run through twice, trading extra computation per token for deeper reasoning instead of a bigger network.
The model sits at the 750-billion-parameter scale, and Z.ai says it reaches intelligence comparable to models with 2 to 3 trillion parameters. It went live the same day for every GLM Coding Plan subscriber, and is selectable in ZCode and Z.ai Chat. The standard API waits on a safety evaluation, and the open weights wait on safety hardening.
This article is compiled from Z.ai's official release blog and from multiple media reports, including TestingCatalog, The Next Web and Kingy AI. Details on API status, pricing and third-party routes come from that cross-checking rather than from an official announcement.
The short version
- Architecture: layers no longer run once per pass. GLM-5.4 runs a weight-shared block of 28 layers for two iterations, refining the hidden states from the first pass, so the network gets deeper without new parameters.
- New capability: vision input arrives for the first time, framed by Z.ai as stronger visual coding — reading a screenshot to fix a UI, or building a front end from a design.
- How to use it: Coding Plan subscribers have it now. In Claude Code the model name is
glm-5.4[1m], with auto-compaction set to a 1,000,000-token window; in other OpenAI-compatible tools it isglm-5.4. - Quota: subscribers on weekly quotas get 50% more GLM-5.4 quota than they had on GLM-5.3. For identical uncached input and output token counts, the new model spends two-thirds as many plan credits.
- Still missing: benchmark scores for GLM-5.4 itself, a token price for the standard API, and downloadable weights.
Why running layers twice deserves its own paragraph
In a standard Transformer, each layer executes once per forward pass. For the past few years the default way to make a model smarter has been more parameters, more data and more compute — with the bill rising in step.
A Loop Transformer takes a different route: run the same weights several times and spend compute on thinking harder about the same token. The idea is not new. The 2018 Universal Transformer proposed weight-shared depth, and recent work on recurrent depth has shown gains at small scale. The catch is that looped models trained from scratch have consistently trailed ordinary models on the same pretraining budget.
Z.ai sidestepped that by not training from scratch. It took an already pretrained base model and converted it into a looped architecture through continued training, raising the intelligence ceiling for a comparatively small amount of extra compute.
Who does this matter to? Teams that deploy models themselves or pay per token. An unchanged parameter count means unchanged weight size and memory footprint; what grows is the number of compute passes at inference time. To contain that cost at the 750B scale, Z.ai made three engineering changes:
- Per-token gates. Each iteration has its own gate deciding how much of the candidate update is written back into the residual stream. After training the division of labour is clear: the first pass builds global context and writes conservatively with small gate values to keep activation scales stable, while the second pass reuses that state to refine the output and opens the gates for full updates. The gates also adjust step size by token difficulty, so harder tokens get a more aggressive first pass.
- Hybrid KV cache. Storing a full KV cache per iteration would multiply memory use with the loop count. GLM-5.4 instead lets the second pass reuse the sparse KV selected in the first pass while keeping only its own newly generated KV inside a sliding window. An extra loop therefore costs one sliding window of cache rather than a full context cache. Z.ai says that at 1M context lengths this keeps the deployment cost increase over GLM-5.3 under control.
- Reused sparse attention indices. The second pass reuses the attention indices produced by the first pass's indexer, adding zero indexing overhead. Z.ai reports the result is nearly identical to recomputing the indices each time.
What Z.ai measured, and what it did not
Z.ai published no benchmark scores for GLM-5.4. What it published is a controlled, iso-parameter comparison: a 30B model with exactly the same architecture as the 750B base, run in looped and unlooped versions, with the looped one using about 10% more total training compute. Evaluated with thinking mode enabled after 200K long-context supervised fine-tuning, the looped version improved on all five reported tests, with the largest gains in maths, scientific reasoning and long-context work — precisely the abilities Z.ai says generalized coding depends on.
One result runs against intuition: on benchmarks such as GPQA-Diamond and MMLU-Pro, average output length fell by 10% to 14%, mostly from shorter chains of thought. Z.ai's explanation is that part of the reasoning moves out of explicit output tokens and into the implicit depth of the loop. For anyone billed by output tokens, that is good news.
On speed, Z.ai quotes up to 200 tokens per second off-peak and 70 to 80 tokens per second at peak load. Read that alongside the second pass: a looped architecture is naturally harder to serve fast, and holding this throughput came from co-design across the KV cache, the sparse index and fused kernels.
As for how much stronger GLM-5.4 actually is, only two kinds of material exist. One is an internal evaluation described in Zhipu's mainland China guide, covering 200 real-world coding scenarios and reporting win, tie and loss rates against GLM-5.3, Kimi K3.1 Pro and DeepSeek V4.1 Flash — with no per-match counts, grading protocol, coding agent or reasoning settings disclosed. The other is one-shot examples posted by early testers on X. Neither amounts to a reproducible third-party result.
One limitation Z.ai admits
Z.ai states in its own blog that the model tends to get caught in overly long "marathon thinking" loops. The company argues the extra reflection and self-correction consistently improves accuracy beyond its parameter count. In practice it means a task can sit churning in the chat window for a long time. For teams running batch jobs that translates directly into latency and cost; for interactive coding it means being ready to interrupt and retry.
Cost and access
- Subscription: the international GLM Coding Plan starts at US$18 per month. Quotas come in five-hour and weekly caps: 2,000 and 10,000 credits for Lite, 12,000 and 60,000 for Pro, 28,000 and 140,000 for Max. For the same number of uncached input and output tokens, GLM-5.4 uses two-thirds of the credits GLM-5.3 does, so an equal budget covers 50% more of those tokens; cached input follows a slightly different ratio. Outside peak hours, Z.ai halves credit usage.
- Free trial: ZCode gives eligible new users a five-day trial listing 3 million GLM-5.4 tokens plus 5 million GLM-5.3-Flash tokens per day.
- Third-party text route: AIHubMix lists GLM-5.4 with a text-only free tier at US$0 per million tokens, 10 shared trial calls per account and daily quotas unlocked by a one-time US$1 top-up; its paid route is US$0.06 input and US$0.22 output per million tokens, with cached input at US$0.015. This is a reseller checked by media, not official Z.ai pricing.
- Official API: still pending a safety evaluation, with no GLM-5.4 token price on Z.ai's published rate card, and no matching entry in OpenRouter's public catalogue.
Who it fits, and who should wait
A good fit if you already write code through GLM Coding Plan, Claude Code or Cline; if you need long context (Z.ai lists 1M context and 128K maximum output) for large repositories or long documents; if you want to drive front-end scaffolding from screenshots and design mockups; or if you are cost-sensitive and want more tokens per credit.
Not yet if you need official benchmark scores to make a procurement decision — there are none; if you want to self-host the weights — they are not out and no licence has been named; if you run latency-sensitive batch production — marathon thinking and the second pass both push tail latency up; or if you integrate through the standard API — it is not open.
Pitfalls to watch
- Treating "on par with 2T–3T" as a measured result. That is a positioning claim, not a third-party evaluation. Z.ai says GLM-5.4's own scores will come later.
- Crediting GLM-5.3-Flash's multimodal support to GLM-5.4. Vision is new in this generation, but whether your client can send an image, and in which formats, depends on the tool. Do not assume your IDE plugin already supports it.
- Ignoring the auto-compaction window. In Claude Code the model name carries
[1m], and the compaction threshold should be set to 1,000,000. Set anything else and long sessions get truncated earlier than you expect. - Comparing headline prices instead of credits. Coding Plan bills in credits, not raw tokens. Cache hits, time of day and how much the model generates all change real consumption, and cached input has its own ratio.
- Expecting it on OpenRouter today. The public catalogue has no GLM-5.4 entry, and the preset listed in clients returns 404.
Next steps: what to do first
First, if you already have a Coding Plan, switch the model to GLM-5.4 in ZCode or Claude Code and run one real small task — change a component, fix a CI failure — against GLM-5.3. Compare three things: whether it succeeds on the first attempt, how long it actually takes, and how many credits it burns.
Second, if you want to evaluate visual coding, confirm your client can send images, then give both models the same screenshot and compare how much they change and whether they introduce new errors.
Third, for team procurement, keep "on par with 2T–3T" out of the conclusion for now. Wait for official scores and independent reproduction, or for the weights to open so you can run your own evaluation set.
Sources
- Z.ai official blog: https://z.ai/blog/glm-5.4
- TestingCatalog: https://www.testingcatalog.com/z-ai-launches-glm-5-4-its-first-loop-transformer-model/
- The Next Web: https://thenextweb.com/news/zai-glm-5-4-loop-transformer-coding-model
- Kingy AI (API status, quota and third-party route checks): https://kingy.ai/blog/glm-5-4-launch/