GLM-5.4: Z.ai's First Loop Transformer and the Push Toward Generalized Coding
Z.ai's GLM-5.4 uses a Loop Transformer to reach 2T-3T-class intelligence at 750B parameters. Features, third-party benchmarks, effort modes, and access.
The flagship releases have been stacking up fast: Gemini 4 Neon from Google, GPT-6.1 Terra and GPT-6.2 Astra from OpenAI, Claude Fable 5.2 from Anthropic, and Grok 4.7 from xAI. On November 23, 2026, Z.ai added GLM-5.4, and it is the only model in that group built on a looped transformer.
GLM-5.4 is Z.ai's first flagship on what the company calls a Loop Transformer.
Z.ai says it loops existing layers of the GLM-5 base model, and launch coverage reports that this means 28 layers of a roughly 750B-parameter model run twice per forward pass, reusing the same weights.
Z.ai says this reaches the intelligence of models in the 2T-3T parameter range, with throughput of up to 200 tokens per second off-peak and 70-80 tokens per second under load.
The catch, which Z.ai states in its own announcement, is that the model gets stuck in long "marathon thinking" loops.
In this article, I'll cover what the Loop Transformer does, the features Z.ai is pitching under the "Generalized Coding" banner, the third-party benchmark numbers so far, which effort setting to use, and how to get access.
GLM-5.4 is Z.ai's new flagship, built by converting the GLM-5 base into a looped architecture rather than training a bigger model.
The trade is depth for parameters: more reasoning per forward pass at 750B deployment cost.
It is slow on hard tasks because of how many tokens it decides to think, not how fast it emits them.
Set the effort level explicitly. Z.ai's docs say an unset level runs at max, and one reviewer reported max timing out while still thinking.
Add it as a reviewer or security-audit model, not as your main front-end or 3D coding agent.
Z.ai had not published a model card, official benchmarks, or weights as of November 23, 2026, so treat every number here as provisional.
What Is GLM-5.4?
GLM-5.4 is Z.ai's flagship model and the first one the company has shipped on a Loop Transformer architecture. It also adds vision for stronger visual coding.
How a looped transformer differs from a standard one
In a standard transformer, every layer runs once per forward pass, which is one trip from input to next-token prediction.
In a looped transformer, a block of weight-shared layers runs several times, and each pass refines the hidden states produced by the last.
That gives you a deeper effective network with almost no extra parameters, since the only additions are small gating modules (covered below).
In plain terms: GLM-5.4 gets a second pass through the same layers (reported as 28), like rereading a hard paragraph instead of reading a longer one.
The roughly 750B figure, which Z.ai has not confirmed in the coverage I checked, is the total parameter count. The GLM-5 line uses a mixture-of-experts design, so only a fraction of those parameters are active per token, and Z.ai has not published an active count for GLM-5.4.
Z.ai did not pre-train this from scratch.
It adapted the existing pre-trained GLM-5 base through continued training, which means it kept training the finished weights with the looped structure in place.
I find that the most interesting part commercially: looped models trained from scratch still lag standard models under the same pre-training compute, so converting an existing base is a cheaper route to the same depth.
The idea goes back to the 2018 Universal Transformer, and recent work on recurrent depth has shown gains on small models. Z.ai's claim is that the design scales. It validated the architecture at 1B, 4B, 30B, and 750B before committing the flagship to it.
On independent testing, AICodeKing ranked GLM-5.4 7th overall and 1st among open models on its KingBench 4 suite. That is roughly where you would expect a strong open release to land against Gemini 4 Neon and Claude Fable 5.2.
One flag before we go further: Z.ai says it plans to open-source the weights after safety hardening, but gives no date.
As of November 23, 2026, there was no Hugging Face repo, no model card, and no entry in the developer documentation. "Best open model" is a label the model has earned on behavior, not on a license file.
GLM-5.4 Key Features
Z.ai frames the release around "Generalized Coding", the idea that code is the way to build things that are not software. Alongside that sit two engineering features that make the looped design affordable to serve.
Writing code to build things that are not software
GLM-5.4 writes code to produce video, games, CAD models, and 3D scenes. Z.ai's launch demos include:
A self-narrated music video called "Hello World"
A 6-axis robotic arm modeled to engineering grade in FreeCAD, an open-source CAD package
A complete game covering character movement, physics, maps, combat, and art assets
An interactive 3D bird-watching scene built from mathematical geometry and custom GLSL shaders, the small programs a GPU runs to draw graphics
FreeCAD is the demo I would watch. A parametric CAD package is scripted through its Python interface, and one wrong joint constraint invalidates everything downstream. That long chain of dependent steps is exactly the task class Z.ai says looping targets.
Finding bugs other models walk past
GLM-5.4's caution makes it useful as a code reviewer. One reviewer reported that it surfaced application bugs and security vulnerabilities that Claude Fable 5.2 and other tested models missed, and now runs it in a pre-release "council of reviewers" rather than as a primary coding agent.
The tool-calling numbers fit that picture.
A tool call is the model asking an external tool, such as a shell or an API, to do something.
GLM-5.4's tool-call failure rate was 1.56%, ranking it 11th of 17 models tested, but it recovered 66% of failed calls through retries, more than any Claude or Codex model in that test. It fails more often and gives up less.
1M-token context without doubling the KV cache
Looping normally multiplies memory cost, because a naive version keeps a full key-value (KV) cache for each iteration. The KV cache is the stored attention state for every token processed so far, and at 1M tokens of context it dominates serving cost.
Z.ai's fix is a hybrid.
The second loop reuses the sparse KV selected in the first pass and keeps its own new KV only inside a local sliding window.
An extra loop therefore costs one window of cache instead of a full-context cache, which keeps the deployment cost increase over GLM-5.3 contained at 1M context.
The second loop also reuses the attention indices from the first loop's indexer, the component that picks which earlier tokens each token attends to. That adds no indexing overhead and gives near-identical results to recomputing them.
In plain terms: the second pass does not re-read the whole context. It reuses the first pass's notes and keeps fresh ones only for the most recent stretch.
Gated writes that stop activations blowing up
Converting the middle layers of an existing model into a multi-pass loop breaks things if you simply overwrite hidden states.
Activation norms, the size of the numbers passed between layers, grow across iterations, and downstream layers receive values outside the range they were trained on.
GLM-5.4 adds independent per-token gates for each iteration. Each gate controls how much of a candidate update gets written back into the residual stream, the running total that every layer adds to.
After training, the gates split the work on their own.
The first pass builds global context and writes conservatively with small gate values, and the second pass opens the gates and writes full updates to refine the output. The gates also adapt to token difficulty, writing more aggressively on the first pass for harder tokens so those predictions get more out of the second round.
How Does GLM-5.4 Perform on the Benchmarks?
Z.ai published no model card and no benchmark figures for GLM-5.4 as of November 23, 2026, and a Z.ai team member said scores will come later. Everything below comes from one reviewer's independent harness or Z.ai's own 30B ablation study, which is a weaker evidence base than I would like for a flagship launch.
Where GLM-5.4 sits among open models
The open-model field got crowded late in 2026. Qwen4 Max, DeepSeek-V4.1-Flash, Kimi K3.1 Pro, and Mistral Large 4 all shipped in the same stretch, and KingBench 4 placed GLM-5.4 first among open models in that group.
The asterisk is that GLM-5.4's weights are not out. Until the safety hardening finishes and a Hugging Face repo appears, DeepSeek-V4.1-Flash is open in a way GLM-5.4 is not, which matters if you want to self-host rather than save on price.
Agentic coding and tool use
On AICodeKing's KingBench 4 suite, GLM-5.4 placed 7th overall and 1st among open models, and the cost of that placement was time. The run took 431 minutes against Gemini 4 Neon's 109 minutes. GLM-5.4 used 1,128 reasoning steps and roughly 1.04 million tokens where Gemini 4 Neon needed 244 steps and about 70,000 tokens.
These figures come from one reviewer's own harness, the test setup that feeds tasks to each model and scores the results, rather than a vendor table. The best value in each row is bold.
Metric
What it measures
GLM-5.4
Gemini 4 Neon
KingBench 4 rank
Position across all tested models
7th overall, 1st open model
n/a
Runtime (lower is better)
Wall-clock time to finish the suite
431 minutes
109 minutes
Reasoning steps (lower is better)
Discrete thinking steps taken
1,128
244
Tokens consumed (lower is better)
Total tokens spent on the suite
~1.04 million
~70,000
Tool-call failure rate (lower is better)
Share of tool calls that fail outright
1.56% (11th of 17)
n/a
Failed calls recovered on retry
Share of failures the model fixes itself
66%
n/a
The pattern is consistent: GLM-5.4 gets there the long way round.
A 15x token gap against Gemini 4 Neon is a real cost if you pay per token, and an X discussion after publication questioned which reasoning effort and which harness produced these numbers, so reproducibility is unsettled.
For context on the earlier GLM line, our Harness² tutorial measured GLM-5 on WorkBuddy-Bench at 64.2, rising to 75.7 with one Harness² refinement step, and on JobBench at 20.6, rising to 24.2. Those are harness gains rather than model gains.
Reasoning efficiency in the 30B ablation
Z.ai's cleanest evidence for the architecture is an iso-parameter comparison at 30B, run on a model with the same architecture as the 750B base.
Iso-parameter means the looped and standard models have identical parameter counts, so only the looping differs. With about 10% more total training compute, the looped version gained most on math, scientific reasoning, and long-context tasks.
The efficiency finding is the counterintuitive one.
Average output length dropped 10-14% across benchmarks including GPQA-Diamond (graduate-level science questions) and MMLU-Pro (multi-subject reasoning questions), mostly from shorter chains of thought. Part of the reasoning moved from written tokens into the implicit depth of the loop.
That is the opposite of what happens at 750B on real agentic work, where the marathon thinking shows up anyway.
Serving speed versus task speed
Z.ai says GLM-5.4 reaches up to 200 tokens per second off-peak and holds 70-80 tokens per second at peak load. It credits fused kernels, GPU routines that merge several steps into one, for cutting the memory reads and writes that looping otherwise multiplies.
Per-token throughput is not the problem. The 431-minute KingBench 4 run suggests the bottleneck is how many tokens the model decides it needs, not how quickly it emits them.
Which GLM-5.4 Effort Setting Should You Use?
Set the effort level yourself and avoid max unless you have a long timeout. GLM-5.4 ships as a single model with reasoning effort settings, which control how long the model may think, rather than a size family, so the choice between settings matters more than usual.
In AICodeKing's security testing, the higher settings timed out while still reasoning and never produced an answer, while a mid-level setting completed the task.
Turning the dial up does not reliably buy a better answer. It buys a longer wait and sometimes no answer at all.
The labels need care. Z.ai's Coding Plan docs map the effort you request onto three actual levels.
Low covers low, light, minimal and none, or any request with thinking switched off. High covers medium and high. Max covers xhigh, max, and ultra, and also any request with no level set.
So on the Coding Plan, asking for Medium gives you high, and AICodeKing's "Medium" may have come through a route that separates the two. I'd start at high, set it explicitly, and test max only with a generous timeout.
In plain terms: "marathon thinking" is Z.ai's own label for the model reasoning and self-correcting for far longer than the task needs. Z.ai says the extra self-correction still improves accuracy, but you pay for it in time.
Use case
Setting
Why
Security review and vulnerability hunting
High (what a Medium request maps to)
A mid-level setting completed where the top settings timed out, and surfaced issues Claude Fable 5.2 missed
Pre-release code review alongside other models
High
Its caution is the point; run it as a second reviewer, not the author
Front-end or 3D development
Another model
Not recommended for either in independent testing, despite Z.ai's GLSL demo
Long-horizon agent runs
High, with a generous timeout
431 minutes on KingBench 4 against 109 for Gemini 4 Neon
Tool-heavy automation
High, with retries on
1.56% failure rate, but 66% of failures recovered on retry
GLM-5.4 Pricing and Availability
GLM-5.4 is available now through subscriptions, while API access and open weights are still to come.
What a looped model costs to serve
Two passes over 28 layers means two passes of compute per token, so serving cost is the obvious question.
Z.ai's answer is that memory is where looping usually hurts, and the hybrid KV cache plus sparse index reuse cap the extra cost at one sliding window rather than a second full-context cache.
Without published API rates, we cannot check that claim against a price. The 200 tokens per second off-peak figure suggests Z.ai is not absorbing a severe throughput penalty, but throughput and margin are different questions.
Z.ai has not published API pricing, and it says API access will open after a safety evaluation.
What is live is the subscription route: the GLM Coding Plan at z.ai/subscribe, ZCode at zcode.z.ai, and Z.ai Chat at chat.z.ai. Zixuan Li of Z.ai said weekly quotas are 50% higher than on GLM-5.3, but the specific limits are not published.
Open weights are planned after what Z.ai calls safety hardening, with no date attached. If your deployment plan depends on self-hosting, this is not yet a model you can plan around.
How to Access GLM-5.4 With the GLM Coding Plan
The fastest way to use GLM-5.4 is a GLM Coding Plan subscription, which works in ZCode and other coding tools. Z.ai lists the model name as glm-5.4 in most tools and glm-5.4[1m] in Claude Code, the 1M-context variant.
Z.ai's Coding Plan docs also recommend setting your client's context window to 512000 tokens for better coding results, even though the model supports 1M. In Claude Code, the /effort command sets the level, and if you skip it, the plan runs at max.
GLM-5.4 was not listed in the OpenRouter catalog as of November 23, 2026. I could not confirm its presence on Cursor, GitHub Copilot, Vertex AI, Azure AI Foundry, or AWS Bedrock, because those sources do not enumerate GLM models. In OpenCode, the plan's provider is zai-coding-plan, and you select the model in your config:
{"$schema":"https://opencode.ai/config.json","model":"zai-coding-plan/glm-5.4"}Mogelijk gemaakt door
Set a long timeout before you run anything non-trivial. A model that spent 431 minutes on one benchmark suite will hit default agent timeouts, and the top effort settings have been reported to burn the whole window without returning an answer.
To go deeper on wiring models into an agent harness, our Harness² tutorial walks through OpenCode configuration and harness refinement, using the earlier GLM-5 as its solver model.
Final Thoughts
GLM-5.4 is the first flagship-scale test of whether computational depth scales as well as parameter count, and the early answer is "yes, but slowly". Z.ai is betting that a looped model of roughly 750B parameters can match a 2T-3T one, and converting a pre-trained base for a small compute overhead is a cheaper path than training the larger model. Z.ai says a significantly larger model built on these lessons is close.
I would not make GLM-5.4 my default coding agent. I would add it as a second reviewer: it found bugs Claude Fable 5.2 missed, and patience is a feature in security review even when it is a liability everywhere else.
Once API access opens and the effort settings are selectable through a standard harness, we plan to run GLM-5.4 against GLM-5.3 on an identical build task in OpenCode, with the same tool surface and the same prompt.
That should show whether the looped architecture is a real generational step or just a longer one.
If you want to get properly fluent with this generation of models, I recommend starting with our AI Fundamentals skill track.
GLM-5.4 FAQs
What is a Loop Transformer?⌄
A Loop Transformer runs a block of weight-shared layers more than once per forward pass, so each pass refines the hidden states from the last. GLM-5.4 runs 28 layers of the GLM-5 base twice, which adds reasoning depth without adding parameters beyond small gates.
Is GLM-5.4 open source?⌄
Not yet. Z.ai plans to release the weights after safety hardening but has given no date, and as of November 23, 2026, there is no Hugging Face repo or model card.
How do I access GLM-5.4?⌄
Subscribe to the GLM Coding Plan and use it in ZCode or other coding tools, or try it in Z.ai Chat. API access is planned but not open yet.
Which GLM-5.4 effort setting should I use?⌄
Set it explicitly and start at high. Z.ai's Coding Plan has three real levels (low, high, max), maps a Medium request to high, and runs max if you set nothing. In AICodeKing's security tests, the top settings timed out mid-reasoning while a mid-level setting finished.
Z.ai's and Alibaba's newest models compete for the same segment. GLM-5.3-Flash leads shared coding benches and is live; Qwen3.8-Flash-Next is the lightweight Qwen4 preview with a queued API.
Reflection AI's Beam matches GLM 5.2 on reasoning with 3-4x less compute, but trails Kimi K3 on agentic coding. Here's how Reflection AI's open-weight model performs.
The flagship releases have been stacking up fast: Gemini 4 Neon from Google, GPT-6.1 Terra and GPT-6.2 Astra from OpenAI, Claude Fable 5.2 from Anthropic, and Grok 4.7 from xAI. On November 23, 2026, Z.ai added GLM-5.4, and it is the only model in that group built on a looped transformer.
GLM-5.4 is Z.ai's first flagship on what the company calls a Loop Transformer.
Z.ai says it loops existing layers of the GLM-5 base model, and launch coverage reports that this means 28 layers of a roughly 750B-parameter model run twice per forward pass, reusing the same weights.
Z.ai says this reaches the intelligence of models in the 2T-3T parameter range, with throughput of up to 200 tokens per second off-peak and 70-80 tokens per second under load.
The catch, which Z.ai states in its own announcement, is that the model gets stuck in long "marathon thinking" loops.
In this article, I'll cover what the Loop Transformer does, the features Z.ai is pitching under the "Generalized Coding" banner, the third-party benchmark numbers so far, which effort setting to use, and how to get access.
For context on the competition, see our comparison of GPT-6 Astra and Claude Opus 5.5, and our Harness² tutorial, where we ran GLM-5 as the solver model.
In a Nutshell
What Is GLM-5.4?
GLM-5.4 is Z.ai's flagship model and the first one the company has shipped on a Loop Transformer architecture. It also adds vision for stronger visual coding.
How a looped transformer differs from a standard one
In a standard transformer, every layer runs once per forward pass, which is one trip from input to next-token prediction.
In a looped transformer, a block of weight-shared layers runs several times, and each pass refines the hidden states produced by the last.
That gives you a deeper effective network with almost no extra parameters, since the only additions are small gating modules (covered below).
In plain terms: GLM-5.4 gets a second pass through the same layers (reported as 28), like rereading a hard paragraph instead of reading a longer one.
The roughly 750B figure, which Z.ai has not confirmed in the coverage I checked, is the total parameter count. The GLM-5 line uses a mixture-of-experts design, so only a fraction of those parameters are active per token, and Z.ai has not published an active count for GLM-5.4.
Z.ai did not pre-train this from scratch.
It adapted the existing pre-trained GLM-5 base through continued training, which means it kept training the finished weights with the looped structure in place.
I find that the most interesting part commercially: looped models trained from scratch still lag standard models under the same pre-training compute, so converting an existing base is a cheaper route to the same depth.
The idea goes back to the 2018 Universal Transformer, and recent work on recurrent depth has shown gains on small models. Z.ai's claim is that the design scales. It validated the architecture at 1B, 4B, 30B, and 750B before committing the flagship to it.
On independent testing, AICodeKing ranked GLM-5.4 7th overall and 1st among open models on its KingBench 4 suite. That is roughly where you would expect a strong open release to land against Gemini 4 Neon and Claude Fable 5.2.
One flag before we go further: Z.ai says it plans to open-source the weights after safety hardening, but gives no date.
As of November 23, 2026, there was no Hugging Face repo, no model card, and no entry in the developer documentation. "Best open model" is a label the model has earned on behavior, not on a license file.
GLM-5.4 Key Features
Z.ai frames the release around "Generalized Coding", the idea that code is the way to build things that are not software. Alongside that sit two engineering features that make the looped design affordable to serve.
Writing code to build things that are not software
GLM-5.4 writes code to produce video, games, CAD models, and 3D scenes. Z.ai's launch demos include:
FreeCAD is the demo I would watch. A parametric CAD package is scripted through its Python interface, and one wrong joint constraint invalidates everything downstream. That long chain of dependent steps is exactly the task class Z.ai says looping targets.
Finding bugs other models walk past
GLM-5.4's caution makes it useful as a code reviewer. One reviewer reported that it surfaced application bugs and security vulnerabilities that Claude Fable 5.2 and other tested models missed, and now runs it in a pre-release "council of reviewers" rather than as a primary coding agent.
The tool-calling numbers fit that picture.
A tool call is the model asking an external tool, such as a shell or an API, to do something.
GLM-5.4's tool-call failure rate was 1.56%, ranking it 11th of 17 models tested, but it recovered 66% of failed calls through retries, more than any Claude or Codex model in that test. It fails more often and gives up less.
1M-token context without doubling the KV cache
Looping normally multiplies memory cost, because a naive version keeps a full key-value (KV) cache for each iteration. The KV cache is the stored attention state for every token processed so far, and at 1M tokens of context it dominates serving cost.
Z.ai's fix is a hybrid.
The second loop reuses the sparse KV selected in the first pass and keeps its own new KV only inside a local sliding window.
An extra loop therefore costs one window of cache instead of a full-context cache, which keeps the deployment cost increase over GLM-5.3 contained at 1M context.
The second loop also reuses the attention indices from the first loop's indexer, the component that picks which earlier tokens each token attends to. That adds no indexing overhead and gives near-identical results to recomputing them.
In plain terms: the second pass does not re-read the whole context. It reuses the first pass's notes and keeps fresh ones only for the most recent stretch.
Gated writes that stop activations blowing up
Converting the middle layers of an existing model into a multi-pass loop breaks things if you simply overwrite hidden states.
Activation norms, the size of the numbers passed between layers, grow across iterations, and downstream layers receive values outside the range they were trained on.
GLM-5.4 adds independent per-token gates for each iteration. Each gate controls how much of a candidate update gets written back into the residual stream, the running total that every layer adds to.
After training, the gates split the work on their own.
The first pass builds global context and writes conservatively with small gate values, and the second pass opens the gates and writes full updates to refine the output. The gates also adapt to token difficulty, writing more aggressively on the first pass for harder tokens so those predictions get more out of the second round.
How Does GLM-5.4 Perform on the Benchmarks?
Z.ai published no model card and no benchmark figures for GLM-5.4 as of November 23, 2026, and a Z.ai team member said scores will come later. Everything below comes from one reviewer's independent harness or Z.ai's own 30B ablation study, which is a weaker evidence base than I would like for a flagship launch.
Where GLM-5.4 sits among open models
The open-model field got crowded late in 2026. Qwen4 Max, DeepSeek-V4.1-Flash, Kimi K3.1 Pro, and Mistral Large 4 all shipped in the same stretch, and KingBench 4 placed GLM-5.4 first among open models in that group.
The asterisk is that GLM-5.4's weights are not out. Until the safety hardening finishes and a Hugging Face repo appears, DeepSeek-V4.1-Flash is open in a way GLM-5.4 is not, which matters if you want to self-host rather than save on price.
Agentic coding and tool use
On AICodeKing's KingBench 4 suite, GLM-5.4 placed 7th overall and 1st among open models, and the cost of that placement was time. The run took 431 minutes against Gemini 4 Neon's 109 minutes. GLM-5.4 used 1,128 reasoning steps and roughly 1.04 million tokens where Gemini 4 Neon needed 244 steps and about 70,000 tokens.
These figures come from one reviewer's own harness, the test setup that feeds tasks to each model and scores the results, rather than a vendor table. The best value in each row is bold.
The pattern is consistent: GLM-5.4 gets there the long way round.
A 15x token gap against Gemini 4 Neon is a real cost if you pay per token, and an X discussion after publication questioned which reasoning effort and which harness produced these numbers, so reproducibility is unsettled.
For context on the earlier GLM line, our Harness² tutorial measured GLM-5 on WorkBuddy-Bench at 64.2, rising to 75.7 with one Harness² refinement step, and on JobBench at 20.6, rising to 24.2. Those are harness gains rather than model gains.
Reasoning efficiency in the 30B ablation
Z.ai's cleanest evidence for the architecture is an iso-parameter comparison at 30B, run on a model with the same architecture as the 750B base.
Iso-parameter means the looped and standard models have identical parameter counts, so only the looping differs. With about 10% more total training compute, the looped version gained most on math, scientific reasoning, and long-context tasks.
The efficiency finding is the counterintuitive one.
Average output length dropped 10-14% across benchmarks including GPQA-Diamond (graduate-level science questions) and MMLU-Pro (multi-subject reasoning questions), mostly from shorter chains of thought. Part of the reasoning moved from written tokens into the implicit depth of the loop.
That is the opposite of what happens at 750B on real agentic work, where the marathon thinking shows up anyway.
Serving speed versus task speed
Z.ai says GLM-5.4 reaches up to 200 tokens per second off-peak and holds 70-80 tokens per second at peak load. It credits fused kernels, GPU routines that merge several steps into one, for cutting the memory reads and writes that looping otherwise multiplies.
Per-token throughput is not the problem. The 431-minute KingBench 4 run suggests the bottleneck is how many tokens the model decides it needs, not how quickly it emits them.
Which GLM-5.4 Effort Setting Should You Use?
Set the effort level yourself and avoid max unless you have a long timeout. GLM-5.4 ships as a single model with reasoning effort settings, which control how long the model may think, rather than a size family, so the choice between settings matters more than usual.
In AICodeKing's security testing, the higher settings timed out while still reasoning and never produced an answer, while a mid-level setting completed the task.
Turning the dial up does not reliably buy a better answer. It buys a longer wait and sometimes no answer at all.
The labels need care. Z.ai's Coding Plan docs map the effort you request onto three actual levels.
Low covers low, light, minimal and none, or any request with thinking switched off. High covers medium and high. Max covers xhigh, max, and ultra, and also any request with no level set.
So on the Coding Plan, asking for Medium gives you high, and AICodeKing's "Medium" may have come through a route that separates the two. I'd start at high, set it explicitly, and test max only with a generous timeout.
In plain terms: "marathon thinking" is Z.ai's own label for the model reasoning and self-correcting for far longer than the task needs. Z.ai says the extra self-correction still improves accuracy, but you pay for it in time.
GLM-5.4 Pricing and Availability
GLM-5.4 is available now through subscriptions, while API access and open weights are still to come.
What a looped model costs to serve
Two passes over 28 layers means two passes of compute per token, so serving cost is the obvious question.
Z.ai's answer is that memory is where looping usually hurts, and the hybrid KV cache plus sparse index reuse cap the extra cost at one sliding window rather than a second full-context cache.
Without published API rates, we cannot check that claim against a price. The 200 tokens per second off-peak figure suggests Z.ai is not absorbing a severe throughput penalty, but throughput and margin are different questions.
Z.ai has not published API pricing, and it says API access will open after a safety evaluation.
What is live is the subscription route: the GLM Coding Plan at z.ai/subscribe, ZCode at zcode.z.ai, and Z.ai Chat at chat.z.ai. Zixuan Li of Z.ai said weekly quotas are 50% higher than on GLM-5.3, but the specific limits are not published.
Open weights are planned after what Z.ai calls safety hardening, with no date attached. If your deployment plan depends on self-hosting, this is not yet a model you can plan around.
How to Access GLM-5.4 With the GLM Coding Plan
The fastest way to use GLM-5.4 is a GLM Coding Plan subscription, which works in ZCode and other coding tools. Z.ai lists the model name as
glm-5.4in most tools andglm-5.4[1m]in Claude Code, the 1M-context variant.Z.ai's Coding Plan docs also recommend setting your client's context window to 512000 tokens for better coding results, even though the model supports 1M. In Claude Code, the
/effortcommand sets the level, and if you skip it, the plan runs at max.GLM-5.4 was not listed in the OpenRouter catalog as of November 23, 2026. I could not confirm its presence on Cursor, GitHub Copilot, Vertex AI, Azure AI Foundry, or AWS Bedrock, because those sources do not enumerate GLM models. In OpenCode, the plan's provider is
zai-coding-plan, and you select the model in your config:Set a long timeout before you run anything non-trivial. A model that spent 431 minutes on one benchmark suite will hit default agent timeouts, and the top effort settings have been reported to burn the whole window without returning an answer.
To go deeper on wiring models into an agent harness, our Harness² tutorial walks through OpenCode configuration and harness refinement, using the earlier GLM-5 as its solver model.
Final Thoughts
GLM-5.4 is the first flagship-scale test of whether computational depth scales as well as parameter count, and the early answer is "yes, but slowly". Z.ai is betting that a looped model of roughly 750B parameters can match a 2T-3T one, and converting a pre-trained base for a small compute overhead is a cheaper path than training the larger model. Z.ai says a significantly larger model built on these lessons is close.
I would not make GLM-5.4 my default coding agent. I would add it as a second reviewer: it found bugs Claude Fable 5.2 missed, and patience is a feature in security review even when it is a liability everywhere else.
Once API access opens and the effort settings are selectable through a standard harness, we plan to run GLM-5.4 against GLM-5.3 on an identical build task in OpenCode, with the same tool surface and the same prompt.
That should show whether the looped architecture is a real generational step or just a longer one.
If you want to get properly fluent with this generation of models, I recommend starting with our AI Fundamentals skill track.