GLM-5.4: A Loop Transformer at GLM-5.3's Price, Judged by Win Rates Alone
Z.ai's GLM-5.4 loops 28 GLM-5 layers twice at GLM-5.3's $1.40/$4.40. No benchmark scores, only win rates: 41.8% vs Kimi K3.1 Pro, 36.6% vs DeepSeek V4.1 Flash.

Key Numbers
GLM-5.4 · Dec 2, 2026
Z.ai announced GLM-5.4 on November 23, 2026, with standard API access from December 2, 2026. It is Z.ai's first Loop Transformer flagship: it runs 28 layers of the GLM-5 base twice, so Z.ai gets more depth without more parameters, and it kept the list price at GLM-5.3's $1.40 input and $4.40 output per million tokens.
The evidence is thinner than the architecture. Z.ai published no named-benchmark scores for GLM-5.4. The only official comparative numbers are self-reported win, tie and loss rates on an eval set Z.ai does not describe: 51.1% wins against 23.1% losses vs GLM-5.3, 41.8% vs 31.3% against Kimi K3.1 Pro, and 36.6% vs 33.2% against DeepSeek-V4.1-Flash-1017. That is a clear step up from GLM-5.3, a modest edge over Kimi at lower list prices, and near parity with DeepSeek's Flash model at about four times its price.
Z.ai also names "marathon thinking"as the model's main limitation, and its default reasoning effort is max. The case for GLM-5.4 is a free upgrade from GLM-5.3 and a credible Kimi alternative, not a proven frontier leap. Read the Z.ai announcement and the model docs for the primary sources behind every number below.
At a Glance
- Announced: November 23, 2026. API from December 2, 2026. Model code
glm-5.4. - Architecture: Loop Transformer. 28 layers of the GLM-5 base, run twice with shared weights. About 750B scale per Z.ai.
- Price: $1.40 input / $0.26 cached / $4.40 output per 1M tokens. Same as GLM-5.3.
- Context: 1M tokens in, 128K tokens out. Input: video, image, text, files. Output: text.
- Win rates (self-reported by Z.ai): 51.1 / 25.7 / 23.1 vs GLM-5.3; 41.8 / 26.9 / 31.3 vs Kimi K3.1 Pro; 36.6 / 30.2 / 33.2 vs DeepSeek-V4.1-Flash-1017. Eval set undisclosed. No named- benchmark scores.
- Limitation: Z.ai names marathon thinking. Default effort is
max. Thinking cannot be turned off. - Weights: Not released. Z.ai plans to open-source them after safety hardening. No date, no license.
- Where to use: GLM Coding Plan (1.5x the GLM-5.3 weekly quota), ZCode, Z.ai Chat, and the API.
What GLM-5.4 Is
GLM-5.4 is Z.ai's latest flagship. Z.ai calls it the first model built on the Loop Transformer architecture, and says it reaches intelligence levels comparable to 2T to 3T parameter models. That comparison is Z.ai's claim. The size line Z.ai publishes is "about 750B scale". There is no exact parameter count.
Modalities are broad on input and narrow on output: video, image, text and files in; text out. Context is 1M tokens. Maximum output is 128K tokens (API max_tokens up to 131,072). Reasoning is always on. thinking.type only supports enabled. Effort levels are low, high and max, with max as the default and the recommended setting. Preserved thinking is on by default on all endpoints (thinking.clear_thinking defaults to false), so you return reasoning_content unmodified. Recommended sampling is temperature: 1 or top_p: 0.95. The model supports function calling, structured output, context caching and streaming, and speaks OpenAI Chat Completion / Responses and Anthropic Message protocols.
That always-on thinking is not a soft default. Disabling it returns an error. Combined with the max effort default, every call starts at the highest reasoning setting Z.ai exposes for this model. If you want shorter thinking, you have to set reasoning_effort yourself. Z.ai does not say how much shorter low or high actually are.
On November 23 it was available to all GLM Coding Plan users, with weekly-quota plans getting 1.5x the GLM-5.3 quota for GLM-5.4. You can also try it in ZCode and Z.ai Chat. The standard API opened on December 2. For earlier GLM releases on this site, see GLM-5 and GLM-5.3 Flash.
The Loop Transformer
Layers a token passes through
Z.ai architecture diagram
A standard 78-layer stack
78 layers, 78 layer passes
GLM-5.4 as Z.ai describes it
78 stored layers, 106 layer passes
In Z.ai's words, a Loop Transformer is a design where "a group of weight-shared layers runs for multiple iterations, refining the hidden states from the previous pass." GLM-5.4 loops 28 layers of the GLM-5 base for two iterations. Z.ai adapted an already pre-trained base through continued training rather than pre-training a looped model from scratch. It says it validated looping at 1B, 4B, 30B and 750B base sizes.
Z.ai's diagram labels a 26-layer prelude (layers 1 to 26), a 28-layer loop block (layers 27 to 54, run twice with shared weights), and a 24-layer coda (layers 55 to 78). Input is a text embedding plus projected 24-layer ViT features. A token therefore passes through 26 + 2 x 28 + 24 = 106 layer passes against 78 stored layers. That arithmetic is ours: +36% in a naive count. Pass 2 reuses pass-1 attention indices and sparse KV, so the real increase is smaller, and Z.ai publishes no figure.
Three engineering changes sit under the loop, all described by Z.ai:
- Gated progressive updates. Per-token gates for each iteration write updates back into the residual stream. Pass 1 writes conservatively to keep scale stable. Pass 2 opens the gates to refine. Step size adapts to token difficulty.
- Hybrid KV cache.Pass 2 reuses pass-1 sparse KV and keeps its own sliding-window KV, so an extra loop "only costs one sliding window of KV cache rather than a full context cache."
- Sparse attention index reuse.Pass 2 reuses pass-1 indices with "zero indexing overhead," behaving "nearly identically" to recomputing.
The observable pricing fact is simpler: the list price did not move. Z.ai says the deployment cost increase over GLM-5.3 is "well under control" at 1M context. Open questions Z.ai lists include adaptive compute (harder tokens get more iterations) and how returns behave as loop count and model size grow.
What Z.ai measured on a 30B model, not on GLM-5.4
Z.ai also published a controlled iso-parameter comparison on a 30B model with the same architecture as the 750B base, identical parameter count, about 10% more training compute, evaluated after 200K long-context SFT with thinking on. These are not GLM-5.4 scores. They are self-reported by Z.ai as evidence that the loop idea works at 30B.
| Benchmark | 30B baseline | 30B + Loop | Delta | Avg. output length change |
|---|---|---|---|---|
| AIME25 | 19.17 | 30.42 | +11.3 | -635 tokens (-2%) |
| GPQA-Diamond | 47.58 | 56.26 | +8.7 | -2,473 tokens (-11.7%) |
| MMLU-Pro | 71.65 | 75.05 | +3.4 | -863 tokens (-14.9%) |
| IFBench | 50.20 | 53.47 | +3.3 | -763 tokens (-13.0%) |
Looping cut average output length 11.7% to 14.9% on three of the four benchmarks reported here (AIME25 only 2%). Z.ai says part of the reasoning moves "from explicit output tokens into the implicit depth of the loop." That is a 30B experiment. It does not tell you GLM-5.4's token use.
What the Win Rates Show
Self-reported win rates
The table below restates the three self-reported matchups. Net is win minus loss. Decided share is wins as a fraction of non-tie comparisons. The GLM-5.3 row sums to 99.9 because of rounding in Z.ai's source.
| Matchup | Win | Tie | Loss | Net | Decided share |
|---|---|---|---|---|---|
| vs GLM-5.3 | 51.1% | 25.7% | 23.1% | +28.0 | 68.9% |
| vs Kimi K3.1 Pro | 41.8% | 26.9% | 31.3% | +10.5 | 57.2% |
| vs DeepSeek-V4.1-Flash-1017 | 36.6% | 30.2% | 33.2% | +3.4 | 52.4% |
Read honestly: the gain over GLM-5.3 is clear (+28.0 net, 68.9% of decided). The edge over Kimi K3.1 Pro is modest (+10.5, 57.2% of decided). Against DeepSeek-V4.1-Flash-1017 the margin is +3.4 with 30.2% ties, which is near parity. Without the number of comparisons, that 3.4-point DeepSeek margin cannot be called a win or a loss.
Ties matter here. A quarter to nearly a third of each matchup lands in the middle (25.7%, 26.9%, 30.2%). That softens every headline win rate. 41.8% wins against Kimi is not "beats Kimi most of the time" once you keep the ties and the 31.3% losses in view. 36.6% against DeepSeek Flash is even closer to a coin flip among decided cases.
What Z.ai did not disclose: the eval set name, task count, task mix, judge, whether results are averaged over samples, or the reasoning- effort setting each model ran at. These rates also do not chain. A pairwise win rate against Kimi says nothing about models Z.ai did not test, and the three rows cannot be combined into a ranking. There are no named-benchmark scores for GLM-5.4 from Z.ai. For a sibling launch post with a denser score table, see Kimi K3.1 Pro.
Price and Speed
List price per 1M tokens
Linear scale · 0 to $10
Margin vs price
vs GLM-5.3
vs Kimi K3.1 Pro
vs DeepSeek-V4.1-Flash-1017
GLM-5.4 lists at the same rates as GLM-5.3 (and GLM-5.2 and GLM-5.1):
| Model | Input | Cached input | Output | 3:1 blend |
|---|---|---|---|---|
| GLM-5.4 | $1.40 | $0.26 | $4.40 | $2.15 |
| GLM-5.3 | $1.40 | $0.26 | $4.40 | $2.15 |
| Kimi K3.1 Pro | $2.00 | $0.20 | $10.00 | $4.00 |
| DeepSeek-V4.1-Flash-1017 | $0.30 | $0.006 | $1.20 | $0.525 |
Cached input storage is free for a limited time. Z.ai has not published an end date. Source: Z.ai pricing.
Against Kimi K3.1 Pro, GLM-5.4 is 30% cheaper on input and 56% cheaper on output (3:1 blend $2.15 vs $4.00, 46% lower). Kimi is cheaper on cached input ($0.20 vs $0.26). Against DeepSeek-V4.1-Flash-1017, GLM-5.4 costs 4.7x on input, 3.7x on output, and 4.1x on the blend ($2.15 vs $0.525), for a +3.4 point win margin with 30.2% ties. That is the pointed comparison: almost the same win rate, about four times the list price. Win rates carry no cost-per-task information, so neither side is "better value" on this data alone. Long thinking at $4.40 output can erase a list-price advantage if your tasks spend heavily on reasoning tokens.
The Loop adds compute per token even though it adds no parameters. Z.ai still held the price at GLM-5.3's line. That is the commercial claim of the release: more depth at the same sticker. The missing piece is how many thinking tokens you actually burn once marathon thinking shows up on your workload.
On speed, Z.ai reports up to 200 tokens/s during off-peak hours and 70 to 80 tokens/s at peak load (35 to 40% of the off-peak ceiling). There is no comparison data against other models, and no published tokens-per-task figure that would let you convert list price into expected spend.
Marathon Thinking and the Default Effort
Z.ai's own limitation statement: the model "tends to get caught in overly long 'marathon thinking' loops, though this prolonged reflection and self-correction does consistently improve accuracy beyond its parameter count."
Default effort is max. Thinking cannot be disabled. Thinking tokens are billed as output at $4.40 per million. Latency and cost impact are real in principle and unquantified: Z.ai publishes no token counts or time per task for GLM-5.4, and does not say how low and high change thinking length. See the thinking-mode docs and the migration guide.
The 30B architecture experiment above is a useful counterweight and still not a GLM-5.4 result: looping cut average output length on three of four reported benchmarks, and Z.ai says part of the reasoning moves into the loop's implicit depth. That does not tell you what GLM-5.4 spends at max.
Practical instruction: run your own tasks at low, high and max, compare time and spend, then set the production default from that measurement.
Generalized Coding
Z.ai says GLM-5.4 "marks the start of Generalized Coding": code that generates and edits video, builds complete games, and does 3D modeling and mechanical design, driven by improvements in both coding and vision. That is a positioning claim, not a measured result.
Z.ai's four demos are videos, not benchmarks: a self-narrated music video ("Hello World"), a 6-axis robotic arm built through CAD modeling in FreeCAD, a complete game (character movement, physics, maps, combat systems and art assets), and an interactive 3D macro bird-watching experience in pure mathematical geometry and custom GLSL shaders. Treat them as demos.
Should You Switch?
- On GLM-5.3 and happy with it.Test GLM-5.4. Same price, 51.1% wins vs 23.1% losses on Z.ai's set, but expect longer thinking at the
maxdefault. - On Kimi K3.1 Pro and cost matters.Worth a side-by- side: 41.8% vs 31.3% on Z.ai's set and 56% lower output list price, but Kimi is cheaper on cached input and no benchmark scores exist to confirm the edge.
- On DeepSeek-V4.1-Flash-1017.Z.ai's own chart shows near parity (36.6% vs 33.2%, 30.2% ties) at about 4x the list price. Switch only if your own evals show a gap that is worth it.
- Need open weights today. GLM-5.4 is not that yet. Z.ai only says it plans to release them after safety hardening.
- Need video or image input with text output. Supported.
- Latency-sensitive interactive use. Measure at each effort level first. Z.ai names marathon thinking as a limitation and publishes no latency figure.
Migration checklist
- Set the model code to
glm-5.4. - Keep
thinking.type: "enabled"(it cannot be disabled). - Choose
reasoning_effortexplicitly (low,high,max; defaultmax). max_tokensup to 131,072.temperature1 ortop_p0.95 (tune one, not both).- Return
reasoning_contentunmodified (preserved thinking is on by default). - Enable
streamandtool_streamfor streaming tool calls. - Use context caching ($0.26 per 1M cached).
- Run your own evals before moving production traffic.
FAQ
- Z.ai announced GLM-5.4 on November 23, 2026, with access that day for all GLM Coding Plan users. Standard API access opened on December 2, 2026. The model code is
glm-5.4. - Z.ai lists $1.40 input, $0.26 cached input, and $4.40 output per million tokens, identical to GLM-5.3. Cached input storage is free for a limited time; Z.ai has not published an end date. See Z.ai pricing.
- Not yet. Weights are not released. Z.ai says it plans to open-source the model weights after completing necessary safety hardening. No date and no license have been published.
- Z.ai describes it as about 750B scale, and says it reaches intelligence levels comparable to 2T to 3T parameter models. Z.ai has not published an exact parameter count.
- Context is 1M tokens. Maximum output is 128K tokens (API
max_tokensup to 131,072). Input supports video, image, text and files. Output is text. - According to Z.ai, a Loop Transformer runs a group of weight-shared layers for multiple iterations, refining the hidden states from the previous pass. GLM-5.4 loops 28 layers of the GLM-5 base for two iterations, buying depth without adding parameters.
- Z.ai published no named-benchmark scores. Its only comparative numbers are self-reported win, tie and loss rates on an undisclosed eval set: 51.1% wins vs 23.1% losses against GLM-5.3, 41.8% vs 31.3% against Kimi K3.1 Pro, and 36.6% vs 33.2% against DeepSeek-V4.1-Flash-1017. Task count, judge and effort setting are not disclosed.
- No named-benchmark scores from Z.ai. The only official comparative numbers are the three pairwise win, tie and loss rates above. A separate 30B architecture experiment is not a GLM-5.4 result.
- Levels are
low,highandmax. Default and recommended is max. Thinking cannot be disabled. Z.ai publishes no token counts or latency figures at each level, so measure your own tasks before setting production defaults. - Yes. Input supports video, image, text and files. Output is text only.
Outlook
Z.ai says GLM-5.4 is "our first step with looped architectures," is exploring adaptive compute, and says its next, significantly larger model "will be ready soon." That is Z.ai's framing, with no date attached. Adaptive compute is the natural follow-on to a loop design: harder tokens get more iterations. If that lands, it is also the most direct answer Z.ai could give to marathon thinking.
What to watch next: named-benchmark scores or an independent eval, the weights and license, token counts and latency at each effort level, and whether adaptive compute tames marathon thinking. The win-rate chart is enough to justify a side-by-side against GLM-5.3 and Kimi. It is not enough to crown a frontier model. Until harder evidence lands, the honest reading of this release stays the one in the title: a Loop Transformer at GLM-5.3's price, judged by win rates alone.
Banner: Z.ai. Primary sources: z.ai/blog/glm-5.4, docs.z.ai/guides/llm/glm-5.4, pricing, migration, thinking mode. Related: Claude Opus 4.8.
Continue Reading
- MiniMax M4 at $0.80/$3.10: Close to the Best Closed Models on Six Rows, 25 to 31 Points Behind in Long-Horizon Coding
- Amazon Ergo 1.0: The Top US Open-Weights Coder at $1/$3, Still a Generation Behind
- Gemini 4 Neon: Ahead of Opus 5.5 and GPT-6.2 Sol on 8 of 10 Benchmarks at $3/$15
- GPT-6.2 Astra and Sol: Fable 5.2's Price, a Third of GPT-6 Astra's Cost per Task
- Qwen4-Max: Near-Frontier Agent Work at $1.50 and $4.50
