Z.ai launches GLM-5.4 on its Coding Plan with 1M context, API to follow
Updated: 8 minutes ago

GLM-5.4, the new flagship model from Z.ai, went live on November 23, 2026 for subscribers of the GLM Coding Plan, the company's flat-rate subscription for coding agents and IDEs. The model accepts video, image, text and file inputs, returns text, and supports a context window of 1 million tokens with a maximum output of 128,000 tokens. Z.ai says it is the first model it has built on a Loop Transformer architecture, in which a shared block of layers is run more than once for each token, and it claims the result reaches a level of intelligence comparable to models with 2 trillion to 3 trillion parameters.
Access is limited at launch. Z.ai's developer documentation states that GLM-5.4 is available to all GLM Coding Plan users on the Lite, Pro and Max tiers, while the pay-as-you-go Model API will be released only after a security assessment. No per-token API price has been published, no release date for the API has been given, and no model weights have been posted to Z.ai's Hugging Face organization as of November 25. Developers who want to use the model today therefore need a Coding Plan subscription, which starts at $18 a month according to Z.ai's plan page.
The documentation describes GLM-5.4 as a 750B-scale model that loops 28 layers of the GLM-5 base model for two iterations. Z.ai did not train it from scratch: the company adapted an existing pre-trained base through continued training and added three changes aimed at keeping the cost of the second pass low, a gated update mechanism, a hybrid KV cache and reuse of sparse attention indices. The company reports streaming speeds of up to 200 tokens per second off-peak and 70 to 80 tokens per second at peak load.
··········
GLM-5.4 SPECIFICATIONS AND ACCESS COMPARED WITH GLM-5.3.
GLM-5.4 replaces GLM-5.3 at the top of Z.ai's lineup, although both models remain available on the Coding Plan. The clearest change for users is on the input side. GLM-5.3, which Z.ai describes as sharing its base model with GLM-5.2 and improving through post-training, accepts text only. GLM-5.4 adds video, image and file inputs while keeping the same 1M-token context and 128K-token output ceiling. The table below sets out the two models as Z.ai documents them.
........
Item | GLM-5.4 | GLM-5.3 |
Release | November 23, 2026 | Not stated on its model page |
Architecture | Loop Transformer, 750B scale, 28 GLM-5 layers looped twice | Same base model as GLM-5.2, new post-training |
Input | Video, image, text, file | Text only |
Output | Text | Text |
Context window | 1M tokens | 1M tokens |
Maximum output | 128K tokens | 128K tokens |
Thinking mode | Yes | Always on (low, high, max effort) |
Function calling, caching, JSON output | Yes | Yes |
Coding Plan | All tiers | All tiers |
Model API | After a security assessment | Available |
Published benchmark scores | None in text form | Terminal-Bench 3.0, DeepSWE v1.1, CyberGym and others |
........
The last row deserves attention from anyone comparing models for procurement or for agent workloads. For GLM-5.3, Z.ai published concrete numbers: a Terminal-Bench 3.0 score of 28.3, up from 4.6 for GLM-5.2, a DeepSWE v1.1 score of 66.9 against 46.2, and 84.5% on CyberGym against 77.2% for its predecessor. The GLM-5.4 page offers a win-rate chart rendered as an image, without the underlying figures in text, and a general claim of parity with 2T to 3T parameter models without naming the benchmarks behind it. Until Z.ai or independent evaluators publish numbers, GLM-5.4's performance relative to GLM-5.3, and to other open and closed models, rests on the company's own description.
··········
HOW THE GLM-5.4 LOOP TRANSFORMER REUSES 28 LAYERS.
A conventional transformer passes each token through its stack of layers once. A Loop Transformer sends the hidden state back through a shared block of layers a second time, so the model gains effective depth without adding parameters. In GLM-5.4, Z.ai takes 28 layers of the GLM-5 base model and runs them for two iterations. The company presents this as a way to move part of the reasoning that would otherwise appear as explicit output tokens into the implicit depth of the loop.
Running layers twice normally raises two costs at inference time: a second key-value cache for the repeated pass and a second round of attention indexing. Z.ai describes three modifications intended to contain both at 750B scale. The first is a set of gated progressive updates. Each iteration has per-token gates that decide how much of its update is written back to the hidden state; the first pass writes conservatively and builds context, and the second pass opens the gates further, so the effective step size adapts to how difficult a token is.
The second change is a hybrid KV cache. In the second loop the model reuses the sparse KV entries selected during the first pass and keeps only its own sliding window. Z.ai says this means the extra loop costs roughly one sliding window of cache, far less than a full second context cache, which would be prohibitive at a 1M-token context. The third change reuses the sparse attention indexer output from the first loop in the second, which removes the indexing overhead of the repeated pass. Z.ai reports that performance with reused indices is nearly identical to recomputing them.
The documentation also lists a known weakness. GLM-5.4 can fall into overly long reasoning sequences that Z.ai calls "marathon thinking" loops. The company says the extended self-correction improves accuracy, but for users on a credit-metered plan, long reasoning runs also draw down the 5-hour and weekly budgets faster.
··········
GLM-5.4 TRAINING, SCALING TESTS AND THROUGHPUT CLAIMS.
Z.ai says it validated the architecture in steps on 1B, 4B, 30B and 750B base models before committing to the flagship. The most detailed result it shares comes from the 30B stage. In an iso-parameter comparison, where the looped and unlooped models had the same parameter count and the looped version used about 10% more total training compute, the looped model improved, with the largest gains in math, scientific reasoning and long-context tasks. The comparison was run with thinking enabled after a 200K long-context supervised fine-tuning stage. Z.ai also reports that average output length fell by 10% to 14% on benchmarks such as GPQA-Diamond and MMLU-Pro, which is consistent with its claim that part of the reasoning moves from visible tokens into loop depth. The company has not published the absolute scores from that ablation.
On serving speed, Z.ai attributes its throughput to the KV cache and sparse index designs described above and to fused core kernels that cut intermediate memory reads and writes. The stated figures are up to 200 tokens per second off-peak and 70 to 80 tokens per second at peak. Those numbers translate into concrete waiting times for long agent outputs. Taking the documented 128K maximum as 128,000 tokens, a response of maximum length would stream in about 640 seconds, or roughly 10.7 minutes, at 200 tokens per second. At peak speeds the same output would take about 26.7 minutes at 80 tokens per second and about 30.5 minutes at 70 tokens per second. Most coding turns are far shorter, but the gap between off-peak and peak speeds is wide enough to affect how long autonomous runs take during busy hours.
........
Output length | At 200 tokens/s (off-peak) | At 80 tokens/s (peak) | At 70 tokens/s (peak) |
128,000 tokens (maximum) | About 10.7 minutes | About 26.7 minutes | About 30.5 minutes |
........
The page's "generalized coding" demonstrations point to the use cases Z.ai is targeting. They include code that generates and edits video, complete games, a 6-axis robotic arm modeled in FreeCAD, and an interactive 3D bird-watching scene written with custom GLSL shaders. These are showcase examples chosen by the vendor and say little about reliability on everyday repository work.
··········
[[ADPLUS_300x250_1]]
GLM CODING PLAN ACCESS, QUOTAS AND THE MISSING GLM-5.4 API.
For now, the GLM Coding Plan is the only paid route to GLM-5.4. Z.ai's plan overview states that all plans support GLM-5.4, GLM-5.3 and GLM-5.3-Flash, and measures usage in credits with two limits per plan, one over a rolling 5-hour window and one per week. The published credit allowances are shown below, alongside multiples computed from them.
........
GLM Coding Plan tier | Credits per 5 hours | Credits per week | Weekly credits vs Lite |
Lite | 2,000 | 10,000 | 1x |
Pro | 12,000 | 60,000 | 6x |
Max | 28,000 | 140,000 | 14x |
........
Two patterns follow from those figures. On every tier, the weekly allowance equals exactly five full 5-hour windows, so a user who exhausts the short window repeatedly will reach the weekly cap well before the week ends. Pro carries six times the Lite allowance and Max fourteen times. Z.ai lists the entry price as $18 a month but does not show Pro or Max prices on the documentation pages fetched for this report.
The GLM-5.4 launch note adds that users on weekly-quota plans get 1.5 times the GLM-5.3 quota when they use GLM-5.4. A separate Z.ai post for its AutoClaw agent says GLM Coding Plan V2, V3 and Team Edition subscribers get a 1.5x usage quota when they use GLM-5.4 inside AutoClaw. Z.ai has not published a per-request credit cost for GLM-5.4, so subscribers will need to watch their usage dashboard to see how quickly multimodal inputs and long reasoning runs consume credits.
Developers who build on the pay-as-you-go API cannot switch yet. The GLM-5.4 page says the Model API will follow a security assessment, without a date, and the pricing page carries no GLM-5.4 rates. Production applications that call GLM models directly will stay on GLM-5.3 or earlier versions until that assessment is complete. GLM-5.3 has had a busy few weeks on the site, from AMD's Instinct Coder 355 serving 85 developers with GLM-5.3 to the Cloudflare Workers AI KV cache bug that exposed GLM-5.3 responses, and teams running it through third-party hosts should not expect GLM-5.4 on those platforms before the official API and any weights are released.
··········
USING GLM-5.4 IN CLAUDE CODE AND OTHER AGENT TOOLS.
Z.ai's Coding Plan works with ZCode, Claude Code, Codex, OpenCode, AutoClaw, OpenClaw and Cline, among more than 20 agent tools listed in its documentation. For Claude Code, Z.ai's switching guide sets four environment variables in the env object of ~/.claude/settings.json, keeping any other fields already in the file. The [1m] suffix on the model name enables the 1M-token context window.
{
"env": {
"CLAUDE_CODE_AUTO_COMPACT_WINDOW": "1000000",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.4[1m]",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.4[1m]",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.4[1m]"
}
}After saving the file, Z.ai recommends running /status in a new session to confirm the active model and upgrading Claude Code if the [1m] model name is not recognized. The reasoning effort can be changed with the /effort command, and the default is max. Tools that accept custom models, such as Cline, can use Z.ai's OpenAI-compatible endpoint with the model name glm-5.4; the guide tells users to set the context window size to 1,000,000 and to enable image support, a setting that is useful now that the model accepts visual input.
The default effort setting has a practical cost. Running at max effort makes the most of the loop architecture's reasoning, but combined with the "marathon thinking" behavior Z.ai acknowledges, it can spend credits on long reasoning passes for simple edits. Users on Lite, with 2,000 credits per 5-hour window, have the most reason to lower the effort level for routine tasks and keep max for difficult debugging or multi-file changes.
··········
GLM-5.4 LOOP TRANSFORMER: CONFIRMED FACTS AND OPEN QUESTIONS.
Z.ai's documentation establishes the launch facts clearly. GLM-5.4 is live for GLM Coding Plan subscribers on Lite, Pro and Max, accepts video, image, text and file inputs with a 1M-token context and 128K-token output, and is built by looping 28 layers of the GLM-5 base model twice at 750B scale, with gated updates, a hybrid KV cache and reused sparse attention indices to limit the cost of the second pass. The stated serving speeds are up to 200 tokens per second off-peak and 70 to 80 tokens per second at peak.
Several points remain unverified. Z.ai has published no benchmark scores in text for GLM-5.4, so its claim of parity with 2T to 3T parameter models cannot be checked against GLM-5.3's documented results or against competing models. There is no API price, no API release date and no statement on open weights, which leaves developers outside the Coding Plan without a way to test the model. The per-request credit cost of GLM-5.4 on the subscription is also undisclosed, and the "marathon thinking" behavior means real usage could differ from what the 1.5x quota note suggests. Z.ai says a significantly larger model is coming soon, and it lists adaptive compute, where harder tokens receive more loop iterations, as an open research question, so the two-iteration design in GLM-5.4 is presented by the company as a first step for the architecture.
··········
FOLLOW US FOR MORE.
·····
DATA STUDIOS
·····
datastudios.org

