Quick Answer
GLM-5.4 is Z.ai’s first flagship model built on a Loop Transformer, announced on November 23, 2026. It takes the roughly 750-billion-parameter GLM-5 base and runs 28 of its layers twice per forward pass, reusing the same weights, so it reasons more deeply without storing more parameters. It has a 1M-token context window, up to 128K tokens of output, and vision — it takes text, image, video and file inputs and answers in text. Z.ai claims it reaches intelligence levels comparable to 2T-3T parameter models, but no flagship benchmark scores have been published, so treat that comparison as the company’s own claim. It is live now for GLM Coding Plan subscribers (from $18 a month) in ZCode, Claude Code and Z.ai Chat; the public API and open weights are not out yet.
What Is GLM-5.4?
GLM-5.4 is Z.ai’s new flagship coding model and the start of what the company calls Generalized Coding — the idea that code is the foundation for solving a much wider range of tasks than software development. The model is built for ultra-long-chain reasoning: large-scale software engineering, cybersecurity, 3D modeling and physical control, where the model must follow multi-step causal chains while keeping global logical consistency.
The architecture is the story. In a standard transformer, each layer runs once per forward pass. In a Loop Transformer, a group of weight-shared layers runs for multiple iterations, refining the hidden states from the previous pass. That gives a deeper network without increasing the parameter count. The idea is not new — the 2018 Universal Transformer proposed weight-shared depth — but Z.ai says looped models trained from scratch still lag unshared models under the same pre-training compute budget. So instead of training from scratch, Z.ai adapted an already pre-trained base model into a Loop Transformer through continued training, which it says raises the intelligence ceiling with relatively small compute overhead.
GLM-5.4 loops 28 layers of the GLM-5 base model for two iterations at the 750B scale. Z.ai validated the design progressively across 1B, 4B, 30B and 750B base models before committing its flagship to it. To balance performance against deployment cost at that scale, it made three changes: per-token gates that control how much each iteration writes back into the residual stream, a hybrid KV cache that reuses the first pass’s sparse KV and keeps only a sliding window of new KV for the second pass, and reuse of the first pass’s sparse attention indices so the second loop adds no indexing overhead. The result, Z.ai says, is an extra loop that costs only one sliding window of KV cache rather than a full context cache, which keeps the deployment cost increase over GLM-5.3 well under control at 1M context lengths.
The honest framing matters more than the architecture. Z.ai’s headline — intelligence comparable to 2T-3T parameter models — has no published flagship benchmark table behind it. What Z.ai did publish is a controlled experiment on a 30B model with the same architecture, plus a win-rate chart against three rival models with no methodology explained on the page. Everything in this article that sounds like a score is either from that 30B test or is Z.ai’s own claim, and the article says so wherever it appears.
Release Date and Availability
- November 23, 2026 — Z.ai announces GLM-5.4 with the blog post “GLM-5.4: Toward Generalized Coding with Our First Loop Transformer” and lists it in its developer documentation the same day. The model is live immediately for GLM Coding Plan subscribers.
- November 23, 2026 — Z.ai’s developer docs list GLM-5.4 as the featured model with a 1M-token context, and the GLM Coding Plan overview confirms all plans support GLM-5.4, GLM-5.3 and GLM-5.3-Flash.
- Where to use it — GLM Coding Plan (through ZCode, Claude Code, Codex, OpenCode, AutoClaw, OpenClaw and other agent tools), ZCode (Z.ai’s own coding IDE) and Z.ai Chat. In Claude Code, select
glm-5.4for the standard model orglm-5.4[1m]for the 1M-context version; in other tools it is selected asglm-5.4. - API (coming soon) — Z.ai lists the public API as coming soon, after a safety assessment. The API platform page still leads with GLM-5.3, and GLM-5.4 does not appear on Z.ai’s API pricing page. No API price has been announced.
- Open weights (planned, no date) — Z.ai says it plans to open-source the model weights responsibly after completing necessary safety hardening. As of the announcement there was no Hugging Face repository, no model card and no date.
- What comes next — Z.ai says its next, significantly larger model will carry forward everything it learned from GLM-5.4, and “it will be ready soon.”
Key GLM-5.4 Features
1. A Loop Transformer at flagship scale
GLM-5.4 reuses 28 layers of the GLM-5 base across two iterations per forward pass, with shared weights. The first pass builds global context and writes conservatively, with small gate values to keep activation scales stable; the second pass reuses that state to refine the output, opening the gates to write full updates. The gates also adjust step size by token difficulty — on harder tokens, the first pass writes more aggressively so complex predictions benefit more from iterative refinement. The loop is the depth: more reasoning per token without more stored parameters.
2. Generalized Coding — code beyond software
Z.ai is stretching what coding means. Driven by improvements in both coding and vision, GLM-5.4 writes code to generate and edit videos, build complete games, and handle 3D modeling and mechanical design. The launch demos show all four: a self-narrated music video called “Hello World”, a 6-axis robotic arm built through engineering-grade CAD modeling in FreeCAD, a complete game covering movement, physics, maps, combat and art assets, and an interactive 3D macro bird-watching experience built from scratch with pure mathematical geometry and custom GLSL shaders.
3. Vision added for visual coding
GLM-5.4 adds vision to the mainline flagship, which the previous flagship did not have. It takes text, image, video and file inputs and returns text, so a developer can hand it a screenshot of a broken page alongside the code that produced it, or debug from an error screenshot instead of describing the problem in words. Z.ai’s Coding Plan also gives all plans Vision Understanding, Web Search, Web Reader and Zread MCPs.
4. 1M-token context, 128K output
The model supports a 1M-token context window — Z.ai’s docs list GLM-5.4 at 1M, the same as GLM-5.3 and GLM-5.3-Flash — with up to 128K tokens of output per answer. In Claude Code, the 1M version is selected as glm-5.4[1m] with the compression window set to 1,000,000. The long window is aimed at whole-repo work: a single task completing the full development pipeline, from requirements to deployable artifacts, without losing context.
5. Cheaper to run than its predecessor
On the GLM Coding Plan, GLM-5.4 costs fewer credits per token than GLM-5.3: input 4.6 against 6.9, cached input 1.1 against 1.7, output 16 against 24 (credits per 10,000 tokens). Z.ai also raised the weekly quota for GLM-5.4 to 1.5 times that of GLM-5.3. Its own token-allowance table makes the ratio concrete: at a 95% cache-hit rate, Lite buys 72–146 million GLM-5.4 tokens a week against 48–97 million for GLM-5.3.
6. Fast serving despite the double pass
Z.ai reports up to 200 tokens per second during off-peak hours and 70–80 tokens per second at peak load. The company says reaching that throughput with a multi-pass architecture took close co-design between the model and its inference infrastructure, including fused kernels that cut intermediate memory reads and writes. Off-peak use on the Coding Plan is also charged at half the standard credit rate.
7. Thinking mode, function calling and structured output
GLM-5.4 supports thinking mode for deeper reasoning, real-time streaming responses, function calling for tool use, context caching for long conversations, and structured output formats such as JSON. Thinking intensity is set with the /effort command in Claude Code; the default level is max, and Z.ai’s docs warn to set the effort level explicitly rather than leaving it unset.
GLM-5.4 Pricing Explained
There is no per-token API price for GLM-5.4 yet, because there is no public API yet. The only way to pay for it today is the GLM Coding Plan subscription, which charges credits, not dollars per token.
| Plan | Price per month (list) | 5-hour credits | Weekly credits |
|---|---|---|---|
| Lite | $18 | 2,000 | 10,000 |
| Pro | $80 | 12,000 | 60,000 |
| Max | $168 | 28,000 | 140,000 |
Every tier gets the same models — GLM-5.4, GLM-5.3 and GLM-5.3-Flash — only the quota differs. Pro is 6 times Lite usage and Max is 14 times Lite usage. Credits are spent by a formula Z.ai publishes in its Coding Plan docs:
| Model | Input multiplier | Cached input multiplier | Output multiplier |
|---|---|---|---|
| GLM-5.4 | 4.6 | 1.1 | 16 |
| GLM-5.3 | 6.9 | 1.7 | 24 |
| GLM-5.3-Flash | 2.3 | 0.56 | 8 |
Credits = (input tokens × input multiplier + cached input tokens × cached input multiplier + output tokens × output multiplier) ÷ 10,000. Off-peak use is charged at half rate.
A worked example: a coding session that uses 1 million fresh input tokens, 4 million cached input tokens (a big repo already in context) and 200,000 output tokens costs (1,000,000 × 4.6 + 4,000,000 × 1.1 + 200,000 × 16) ÷ 10,000 = (4,600,000 + 4,400,000 + 3,200,000) ÷ 10,000 = 1,220 credits. On Lite’s 10,000 weekly credits, that is about 8 such sessions a week at peak rates, or about 16 off-peak at half rate. The same session on GLM-5.3 would cost (6,900,000 + 6,800,000 + 4,800,000) ÷ 10,000 = 1,850 credits — about a third more. That is the whole pricing story: GLM-5.4 is cheaper per token than its predecessor on the same plan, and its weekly quota is 1.5 times larger.
Two things to know before subscribing. First, the 5-hour and weekly credit limits both apply — a long session can hit the 5-hour cap even with weekly credits left. Second, the API and open weights are not priced at all yet, so there is no pay-as-you-go option and no way to run the model on your own hardware today.
GLM-5.4 vs Inkling 2 Mini and GLM-5.3
November 2026 is the month loop transformers went mainstream: Thinking Machines Lab shipped Inkling 2 Mini on November 20, and Z.ai shipped GLM-5.4 on November 23. Both loop layers instead of adding parameters, at wildly different scales.
| Spec | GLM-5.4 | Inkling 2 Mini | GLM-5.3 |
|---|---|---|---|
| Released | 23 Nov 2026 | 20 Nov 2026 | 2026 (previous flagship) |
| Architecture | Loop Transformer | Looped transformer | Standard transformer |
| Total parameters | ~750B | 26.4B | Not published |
| Active per token | Not published | 3.4B (5.4B effective) | Not published |
| Layers looped | 28 layers, run twice | Middle 12 layers, run 3 times | None |
| Layer passes per token | 28 extra passes | 48 from 24 stored layers | One pass per layer |
| Context window | 1M tokens | 1M tokens | 1M tokens |
| Max output | 128K tokens | Not stated in the same way | Not published |
| Inputs | Text, image, video, file | Text, image | Text (vision via Flash variant) |
| Weights | Planned, after safety hardening | Open, Apache 2.0 (20GB) | Available via API and Coding Plan |
| Available now | Coding Plan, ZCode, Z.ai Chat | Tinker, Hugging Face, local | Coding Plan, API |
| Price | Coding Plan from $18/month; no API price yet | Tinker from $0.15 per 1M input tokens | Coding Plan; API available |
| Flagship benchmarks published | None | SWE-bench Verified 79.2% (lab’s own); AA Index 20.1 (independent) | Not the subject of this article |
| Best for | Deep coding agents, visual coding, long repos | Local runs, small open model | General coding via API |
The comparison is the point: Inkling 2 Mini proves the loop idea at 26.4B scale with open weights and an independent benchmark score, while GLM-5.4 bets the same idea at flagship scale — roughly 28 times larger — with no published flagship scores and no open weights yet. GLM-5.4’s loop is wider (28 layers) but shallower (two passes); Inkling 2 Mini’s is narrower (12 layers) but deeper (three passes). One is a product you can download and measure today; the other is a subscription you can use today and measure only through Z.ai’s own claims.
Performance and Benchmarks
The honest summary first: Z.ai has published no flagship benchmark scores for GLM-5.4. There is no SWE-bench, Terminal-Bench, Artificial Analysis or MMLU-Pro number for the flagship model itself, and no model card. What Z.ai has published is two things, and both need their limits stated.
| Evidence | What it shows | Limit |
|---|---|---|
| 30B controlled ablation (Z.ai’s blog) | Looped vs unlooped 30B model, same architecture, ~10% more training compute: clear gains, biggest in math, scientific reasoning and long-context tasks; output length down 10–14% on GPQA-Diamond and MMLU-Pro | It is a 30B test model, not GLM-5.4; no absolute scores are given in the text |
| Win-rate chart (Z.ai’s docs) | Z.ai’s own chart comparing GLM-5.4 with three rival models | The chart image carries no methodology text on the page, so the reader cannot tell what was measured or how |
| 2T–3T comparison (Z.ai’s claim) | Z.ai says GLM-5.4 reaches intelligence levels comparable to 2T–3T parameter models | No method is given for how the comparison was made, and no flagship scores support it |
| Speed (Z.ai’s claim) | Up to 200 tokens/s off-peak, 70–80 tokens/s at peak load | Vendor-reported serving speed, not an independent measurement |
Z.ai also says it validated the loop architecture progressively across 1B, 4B, 30B and 750B base models before committing the flagship to it — a scale check, not a benchmark. And the blog is candid about one cost of the design: at maximum reasoning effort the model can take far longer to finish, because the loops make it think longer, not just answer faster.
No independent evaluation of GLM-5.4 had been published at the time of writing. Until the API or the open weights arrive, nobody outside Z.ai can run the standard benchmarks against it, which is why the 2T–3T claim cannot be checked. That is the single most important fact in this article: the most interesting architecture launch of the month is also the least measurable one.
How to Use GLM-5.4
1. Subscribe to the GLM Coding Plan
Pick a tier on Z.ai’s subscribe page — Lite $18, Pro $80 or Max $168 a month. Every tier includes GLM-5.4, GLM-5.3 and GLM-5.3-Flash; only the credit quota differs. You will also need a Z.AI API key, which you get from your plan page.
2. Pick your tool
The plan works with ZCode (Z.ai’s own IDE), Claude Code, Codex, OpenCode, Cline, AutoClaw, OpenClaw and other agent tools — Z.ai lists 20-plus supported tools. For everyday office work as well as coding, the same plan covers Z.ai Chat.
3. Select the model
In Claude Code, set the model to glm-5.4, or glm-5.4[1m] for the 1M-context version (and set the compression window to 1,000,000). In other tools, select glm-5.4 as a custom model. Z.ai’s docs give the endpoints: https://api.z.ai/api/anthropic for Claude Code and Goose, https://api.z.ai/api/v1 for Codex, and https://api.z.ai/api/coding/paas/v4 for other OpenAI-compatible tools.
4. Set the effort level explicitly
In a Claude Code session, type /effort to switch thinking intensity. The default level is max, which is the deepest reasoning — and the slowest. Drop to low or high for routine work, and save max for the hardest tasks. Explicit effort beats the default.
5. Use vision for visual coding
Hand it a screenshot or a design mockup alongside the code: GLM-5.4 takes image, video and file inputs, so you can debug a broken page from a screenshot instead of describing it in words. This is the new capability against GLM-5.3 — use it for UI work, where the model can see the layout it is fixing.
6. Work off-peak when you can
Off-peak use is charged at half the standard credit rate on the Coding Plan, and Z.ai reports up to 200 tokens per second off-peak against 70–80 at peak load. Long agent runs cost half as much in credits outside peak hours.
7. Wait for the API and weights
If you need pay-as-you-go pricing or your own deployment, there is nothing to buy yet. The public API is listed as coming soon after a safety assessment, and the open weights are planned after safety hardening, with no date for either. Watch Z.ai’s docs and Hugging Face page for both.
Best Uses
- Long-horizon coding agents: whole-repo refactors and multi-day workflows where the 1M context and the loop’s deeper reasoning both matter
- Visual coding: debugging UIs from screenshots, building from design mockups, and reviewing layouts the model can see
- Generalized Coding: generating video, games, 3D scenes and CAD models as code — the four launch demos are the template
- Ultra-long-chain reasoning: large-scale software engineering, cybersecurity and physical-control tasks that need multi-step causal chains held together
- High-volume agent work on a subscription: the 1.5 times quota and the lower credit multipliers make it the cheapest way to run Z.ai’s flagship all day
Limitations and Things to Know
- No flagship benchmarks exist. Z.ai has published no SWE-bench, Terminal-Bench or independent scores for GLM-5.4, and no model card. The 2T–3T comparison is the company’s own claim with no published method, and the win-rate chart on its docs page carries no methodology text.
- Marathon thinking is a real, disclosed flaw. Z.ai says the model tends to get caught in overly long “marathon thinking” loops. The prolonged reflection does consistently improve accuracy, but at maximum effort the model can take far longer to finish than a conventional flagship.
- The default effort is max. Z.ai’s docs set the default thinking intensity to
maxand tell users to set the effort level explicitly. If you leave it unset, every task runs at the deepest — and slowest — setting. - No API and no open weights yet. You cannot call GLM-5.4 from a public API, cannot see a per-token price, and cannot download the weights. The only access is a Coding Plan subscription, ZCode or Z.ai Chat.
- No per-token price to compare. Because there is no API, you cannot compare GLM-5.4 with other models on dollars per million tokens — only on Coding Plan credits, which is a different unit. The value case is subscription-only for now.
- The loop is a bet, not a proven scaling law. Z.ai validated looping at 1B, 4B, 30B and 750B, but the flagship evidence is a 30B ablation and its own claims. The company is still exploring adaptive compute — harder tokens getting more iterations — and how returns behave as loop count and model size grow.
- Total and active parameter counts are approximate. Z.ai describes the base as roughly 750B parameters and has not published exact total or active counts, a knowledge cutoff, or a training-token figure for GLM-5.4.
- It is an English and Chinese model. Z.ai’s docs list GLM-5.4’s languages as English and Chinese. It is a coding flagship first, not a general multilingual model.
The honest read: GLM-5.4 is the most interesting architecture launch of November — a flagship that gets deeper by re-reading its own layers instead of getting bigger — and the least verifiable one. The loop idea itself is now proven twice in one month, at 26.4B scale with open weights (Inkling 2 Mini) and at 750B scale behind a subscription (GLM-5.4). What Z.ai has shown is real: the design, the demos, the speed, the cheaper credits. What it has not shown is a single flagship benchmark score. If you already pay for the GLM Coding Plan, GLM-5.4 is the obvious model to try, especially for visual coding and long repos — and you should set the effort level yourself. If you need an API, open weights or a number you can check, wait.
Frequently Asked Questions
What is GLM-5.4?
Z.ai’s first flagship model built on a Loop Transformer, announced November 23, 2026. It runs 28 layers of its roughly 750-billion-parameter GLM-5 base twice per forward pass, with a 1M-token context window, up to 128K tokens of output, and vision for visual coding.
When was GLM-5.4 released?
November 23, 2026. Z.ai announced it on its blog and listed it in its developer documentation the same day, live immediately for GLM Coding Plan subscribers.
What is a Loop Transformer?
A transformer design in which a group of weight-shared layers runs for multiple iterations per forward pass, refining the hidden states from the previous pass. It makes the network deeper without adding parameters. GLM-5.4 loops 28 layers twice; Inkling 2 Mini, released three days earlier, loops its middle 12 layers three times.
How much does GLM-5.4 cost?
Through the GLM Coding Plan: Lite $18, Pro $80 and Max $168 a month (list prices). The plan charges credits, not dollars per token — GLM-5.4 costs 4.6 credits per 10,000 input tokens, 1.1 per 10,000 cached input tokens and 16 per 10,000 output tokens. There is no API price yet because there is no public API yet.
Is there a free tier or a per-token API price?
No. GLM-5.4 has no free tier and no per-token API price — the public API is listed as coming soon after a safety assessment, and Z.ai has announced no API pricing.
How does GLM-5.4 compare with GLM-5.3?
It is the next flagship: same 1M context, but with a Loop Transformer, vision, 1.5 times the weekly quota and about a third fewer credits per token (multipliers 4.6/1.1/16 against 6.9/1.7/24). GLM-5.3 remains available on the Coding Plan and the API; GLM-5.4 is subscription-only for now.
Can I run GLM-5.4 on my own hardware?
Not yet. The open weights are planned after safety hardening, with no date, and there is no Hugging Face repository or model card. The only access today is the GLM Coding Plan, ZCode or Z.ai Chat.
What is the context window?
1M tokens, with up to 128K tokens of output per answer. In Claude Code, select glm-5.4[1m] for the 1M-context version.
Is the 2T–3T claim proven?
No. Z.ai says GLM-5.4 reaches intelligence levels comparable to 2T–3T parameter models, but it has published no flagship benchmark scores and no methodology for the comparison. The only published evidence is a controlled experiment on a 30B test model and a win-rate chart with no methodology explained. Treat the claim as Z.ai’s own, not a measured result.
What is GLM-5.4 not good at?
Marathon thinking: Z.ai says it can get caught in overly long reasoning loops, so hard tasks can take far longer than on a conventional flagship. And anything that needs an API, open weights or an independently verified benchmark score — none of those exist yet.
Final Verdict
GLM-5.4 is the boldest architecture bet of the month and the hardest launch to grade. The Loop Transformer is a real idea, now shipped twice in four days at opposite ends of the scale, and Z.ai’s version comes with genuine substance: vision for visual coding, a 1M-token window, 200 tokens a second off-peak, and a subscription price that buys about 50% more usage than its predecessor. The demos — a music video, a robotic arm, a game, a 3D bird-watching scene, all written as code — show what Generalized Coding is supposed to mean. But the headline number, intelligence comparable to 2T–3T parameter models, has no benchmark behind it, no model card, no API and no weights to check it against. If you subscribe to the GLM Coding Plan, try it on your longest repos and your visual coding work, and set the effort level yourself. If you need proof before you pay, wait for the API or the open weights — that is when GLM-5.4 finally gets measured.
Editorial update: November 24, 2026. This article is based on Z.ai’s November 23, 2026 announcement blog, the GLM-5.4 model guide and the GLM Coding Plan overview on Z.ai’s developer documentation, and the Z.ai API platform page, checked November 24, 2026. The 2T–3T comparison and all speed figures are Z.ai’s own claims, and no flagship benchmark scores for GLM-5.4 had been published at the time of writing.