What Is GLM-5.4?
GLM-5.4 is Z.ai's latest flagship language model and the first GLM flagship built on a Loop Transformer architecture. It accepts text, images, video, and files, then returns text or code. Z.ai positions it primarily as a coding and engineering model, rather than a general chat model that happens to know how to program.
| Specification |
GLM-5.4 |
| Developer |
Z.ai, formerly known as Zhipu AI |
| Release date |
November 23, 2026 |
| Model position |
Current GLM flagship |
| Architecture |
Loop Transformer with sparse attention |
| Disclosed scale |
750B-scale |
| Input |
Text, images, video, and files |
| Output |
Text and code |
| Context window |
1 million tokens |
| Maximum output |
128,000 tokens |
| Reasoning effort |
Low, High, or Max |
| Official model code |
glm-5.4 |
| Open-weight status |
Planned, but not released at launch |
The wording around model size needs care. In the official GLM-5.4 model guide, Z.ai describes architectural work “at the 750B scale” and claims intelligence comparable to models with two to three trillion parameters. It does not publish a complete total-versus-active parameter breakdown for the released model.
So the accurate version is simple: GLM-5.4 is a 750B-scale model that Z.ai says can perform like a much larger one. It is not a 2T-3T parameter model.
Why Does GLM-5.4 Run the Same Layers Twice?
A standard Transformer sends each token through a sequence of layers once. Each layer reads the representation produced by the one before it, adds what it has learned, and passes the updated state forward.
GLM-5.4 adds a loop in the middle. A shared block of 28 layers runs for a first pass, then runs again using the state created during that pass. The rough analogy is a code reviewer who reads a patch once to understand the whole change, then rereads the difficult sections with that context already in mind.
The idea of weight-shared depth is not new. The Universal Transformer explored it in 2018, and later work examined recurrent-depth language models. Z.ai's implementation is notable because the company converted an already pretrained GLM-5 base into a looped model through continued training instead of training a Loop Transformer from scratch.

How Z.ai controls the second pass
Running part of a large model twice creates obvious problems. Activations can drift outside the range expected by later layers. A second pass can also duplicate the KV cache and attention work, making long-context inference too expensive.
Z.ai describes three changes intended to control those costs:
Gated progressive updates: token-level gates control how much each pass writes back into the residual stream. The first pass writes conservatively; the second can make a larger correction.
Hybrid KV caching: the second loop reuses selected cache entries from the first while keeping a separate sliding-window cache for newer local information.
Sparse-attention index reuse: the second pass reuses attention indices chosen during the first pass instead of recalculating them.
In plain English, GLM-5.4 does more internal work without storing a completely separate full-context memory for every pass. That matters when the context can reach one million tokens.
The benchmark table that is easy to misread
In its Loop Transformer research, Z.ai tested the loop on a controlled 30B model with the same architectural pattern as its 750B-scale base. With identical parameter counts and roughly 10% more training compute, the looped version improved on several reasoning tests:
| Benchmark |
Without the loop |
With the loop |
| AIME 2025 |
19.17 |
30.42 |
| GPQA Diamond |
47.58 |
56.26 |
| MMLU-Pro |
71.65 |
75.05 |
The looped model also shortened its average output by 11.7% on GPQA Diamond and 14.9% on MMLU-Pro. Z.ai interprets this as part of the reasoning moving from visible output tokens into the model's internal computational depth.
There is a catch. These are architecture-ablation results from a 30B experimental model after long-context supervised fine-tuning. They are not benchmark scores for the released 750B-scale GLM-5.4. The table shows that looping can work under controlled conditions; it does not establish where GLM-5.4 ranks against Claude, Kimi, or Qwen.
That distinction is missing from several early summaries of the model.
How Good Is GLM-5.4 for Coding and Frontend Work?
The fairest early conclusion is that GLM-5.4 is a meaningful engineering upgrade over GLM-5.3, especially for backend work, debugging, and tasks that combine visual input with code. The public evidence is not broad enough to call it the best coding model overall.
What Z.ai's own comparisons show
The official GLM-5.4 guide publishes pairwise win rates rather than a standard benchmark table for the released model:
| Compared with |
GLM-5.4 wins |
Ties |
GLM-5.4 loses |
| GLM-5.3 |
51.1% |
25.7% |
23.1% |
| Kimi K3.1 Pro |
41.8% |
26.9% |
31.3% |
| DeepSeek V4.1 Flash 1017 |
36.6% |
30.2% |
33.2% |
Read conservatively, this is strong evidence of an upgrade over GLM-5.3. The margin over Kimi K3.1 Pro is smaller, while the DeepSeek comparison is close to a draw. Z.ai has not published enough information about the tasks, sample size, or judging process to treat these results as an independent leaderboard.
An early repository bug test
In an early Bug Hunt Bench run, GLM-5.4 fixed 28 of 105 planted bugs. GLM-5.3 fixed 19. The nine-bug improvement is large enough to support the claim that 5.4 is a genuine upgrade, even with the variance expected from single runs.
The run also exposes a practical problem. The detailed run report records repeated overloaded and rate-limit responses from Z.ai's serving infrastructure. That makes it difficult to separate model ability from launch-week availability. A model can produce the right patch and still be frustrating inside an agent if the next tool call keeps failing.
Frontend implementation is not the same as visual taste
GLM-5.4 looks more convincing when a frontend task is judged as engineering rather than pure design. In ModelDial's early GLM-5.4 evaluation, the model received 56.7 for frontend engineering and 51.0 for maintainability, but only 26.0 for visual aesthetics.
That combination makes sense. A model can implement responsive states, hook up interactions, preserve application logic, and still choose clumsy spacing or weak visual hierarchy. If you use GLM-5.4 for screenshot-to-code work, give it explicit design tokens and require a rendered comparison. Do not judge the result from the source code alone.
My read of the early evidence is straightforward: GLM-5.4 may be better at making a page work than deciding how the page should look.
The Catch: GLM-5.4 Can Think for Too Long
GLM-5.4's deep-thinking mode is always enabled. The API exposes Low, High, and Max reasoning levels, with Max used by default. Even configurations that attempt to disable thinking are mapped to a lighter reasoning mode rather than switching it off completely.
For a stubborn bug spread across a large repository, that persistence can help. For a one-line change, it can become wasteful. Z.ai itself acknowledges that the model sometimes enters extended “marathon thinking” loops.
An early community comparison of Low and High effort illustrates the trade-off. The tester found that Low matched or beat several other configurations across builder, engineer, reviewer, and planner roles. Moving to High improved the planning result, but increased time and estimated cost by roughly five times. In one review task, High found a deep issue no other model noticed, then missed a more obvious problem that the other models caught.
That is one user's small test, not a benchmark. It still gives a useful operating rule: deeper reasoning can change what the model notices, not simply add a fixed percentage of quality.
| Task |
Reasoning level to start with |
| One-file edit with clear acceptance criteria |
Low |
| Multi-file feature or code review |
High |
| Architecture work, difficult debugging, or a long agent run |
Max |
| One-line transformation or latency-sensitive chat |
Consider GLM-5.3 Flash instead |
Start lower than the default when the task is easy to verify. Increase effort only when the model misses dependencies, stops before validation, or needs to coordinate a longer chain of actions.
What Can GLM-5.4 Do Beyond Regular Coding?
Z.ai calls the wider idea “Generalized Coding”: code becomes the mechanism a model uses to create, inspect, or control something outside a conventional software repository.
This does not mean GLM-5.4 directly returns a finished video, game, or CAD object as a native media-generation model would. Its documented output is text. It uses code, visual understanding, and connected tools to produce or modify those artifacts.
The official launch examples cover video, complete games, interactive 3D scenes, and mechanical design.
Turn a screenshot into a working frontend
GLM-5.4 can accept image input, inspect an interface, and generate code. A useful test should go beyond “recreate this screenshot.” Give it a framework, the existing repository, and observable acceptance checks.
Recreate the attached dashboard in the existing React project.
Requirements:
- Reuse the current component and styling conventions.
- Match the desktop layout at 1440 px and create a usable 390 px mobile layout.
- Implement the filter, pagination, empty, loading, and error states.
- Do not hard-code the sample rows into the component.
- Run the existing tests and add tests for the new interaction states.
- Render the page, compare it with the reference, and list any visual
differences you could not resolve.
The acceptance test should include function and appearance. Check that controls work, state survives the expected transitions, and the rendered hierarchy matches the reference. Visual judgment is where early evaluations suggest the model needs more direction.
Build a complete browser game
Z.ai's demonstration included character movement, physics, maps, combat systems, and art assets. A smaller reproducible version could use this brief:
Build a browser-based exploration game with keyboard movement, collision
detection, a minimap, one enemy type, and a simple combat loop.
Define acceptance tests before implementation. Keep game state separate from
rendering, add a restart path, and persist the player's settings. Run the game,
inspect console errors, and keep fixing it until the acceptance tests pass.
Return a short architecture note and a list of unfinished limitations.
This is a better test of long-horizon behavior than asking for a single HTML file. The model has to plan, implement, run, inspect, and revise.
Generate interactive 3D experiences
The official 3D example used mathematical geometry and custom GLSL shaders to build an interactive macro bird-watching scene. For a practical project, constrain the deliverable:
Create an interactive Three.js scene of a mechanical bird model using
procedural geometry and custom GLSL shaders. Add camera controls, three labeled
points of interest, a performance counter, and a reduced-quality mode for
mobile GPUs. Keep the scene above 45 FPS on the provided test device and
document which visual effects are disabled in reduced mode.
The important part is not that the model can write a shader. It must also manage performance, interaction, fallbacks, and a result another developer can maintain.
Produce engineering models in FreeCAD
Z.ai also showed GLM-5.4 creating a six-axis robotic arm through FreeCAD. That is an impressive demonstration of code-driven engineering, but generated geometry is not proof of manufacturability.
A serious CAD workflow still needs dimension checks, joint constraints, collision analysis, material assumptions, tolerances, and human review. GLM-5.4 can accelerate the first executable design. It should not sign off on the machine.
Create and edit video through code
The launch included a self-narrated “Hello World” music video. Here again, the model's role is orchestration: inspect assets, write processing code, arrange scenes, generate supporting elements through connected tools, and revise the result. Developers should verify media rights, timing, audio synchronization, and the behavior of every external model or tool in the workflow.
GLM-5.4 vs GLM-5.3, Kimi K3.1 Pro, Opus 5.5, and Qwen 4 Max
There is not yet one clean benchmark that compares all five models under the same agent, effort setting, token budget, and task set. The useful question is therefore narrower: what does the available evidence allow us to say today?
| Comparison |
Early takeaway |
What remains uncertain |
| GLM-5.4 vs GLM-5.3 |
The direct upgrade is clear on Z.ai's internal comparisons and the early bug test. |
Whether Max effort is worth its latency on everyday work. |
| GLM-5.4 vs Kimi K3.1 Pro |
Z.ai's internal results favor GLM-5.4; some independent agent tests favor Kimi. |
A standardized repository-scale head-to-head test. |
| GLM-5.4 vs Claude Opus 5.5 |
Opus remains more broadly tested across agent workflows. |
A direct coding comparison with the same agent setup and budget. |
| GLM-5.4 vs Qwen 4 Max |
GLM-5.4 has encouraging coding results; Qwen remains competitive in planning. |
More than small community tests across both models. |
For the previous generation, see the GLM-5.3 API page. If you want a second long-context Chinese coding model, compare it with the Kimi K3.1 Pro API. GPT Proto also provides access to Claude Opus 5.5, while our Qwen 4 Max overview explains that model's current position.
One early non-coding agent benchmark adds useful context. On MiuLifeBench Lite's 23 personal-agent tasks, GLM-5.4 recorded 10 pass³ successes, tied Kimi K3.1 Pro, exceeded Qwen 4 Max's eight, and trailed Claude Opus 5.5's 12. GLM-5.4 also took longer per task than the other three. Because this is a personal-agent benchmark rather than a coding benchmark, it is evidence about planning and tool execution—not frontend or repository performance.
The practical choice still depends on your workflow. Use the same repository, tool permissions, effort level, tests, and time limit. Measure accepted changes and revision work, not just whether the model eventually produced an answer.
How Much Does GLM-5.4 Cost?
As of December 2, 2026, Z.ai lists the following direct Model API prices:
| Billing item |
Official price |
| Input tokens |
$1.40 per 1 million tokens |
| Cached input |
$0.26 per 1 million tokens |
| Output tokens |
$4.40 per 1 million tokens |
| Cached-input storage |
Limited-time free |
Z.ai's current developer pricing table lists the same rates for GLM-5.3.
Do not confuse this API price with the GLM Coding Plan's quota. Z.ai says weekly-plan users receive 1.5 times as much GLM-5.4 usage as GLM-5.3 usage under the same quota. That is a subscription metering rule, not a 50% discount on the pay-as-you-go API.
The output rate also explains why reasoning effort matters. A low list price does not guarantee a low task cost when an agent produces a long internal trace, takes hundreds of turns, or repeatedly retries failed tool calls. For production evaluation, record input tokens, cached input, output tokens, number of model calls, elapsed time, and the number of human corrections required.
Where Can You Use GLM-5.4 Today?
The status changed quickly after launch. Z.ai's original announcement described the Model API as coming soon, while its current GLM-5.4 documentation now includes the model code, migration guide, and Model API instructions.
| Access route |
Status on December 2, 2026 |
| Z.ai Model API |
Available in the current developer documentation |
| GLM Coding Plan |
Available on Lite, Pro, Max, and Team tiers |
| ZCode and supported coding agents |
Available |
| Open weights |
Planned after safety hardening; no date announced |
| GPT Proto API |
Coming soon; not yet listed in the live Z-AI catalog |
GLM-5.4 should not be described as open source at launch. Z.ai says it plans to release the weights after completing safety work, but a planned release is not a downloadable model.
How to Access GLM-5.4 Through GPT Proto
GLM-5.4 is expected to join GPT Proto's Z-AI catalog. The route is not live at the time of this article's December 2 status check, so we are not publishing a guessed model ID or an untested code sample.
Once the model appears, open the Z-AI models on GPT Proto and select GLM-5.4. The normal integration path is:
Open the GLM-5.4 model page and click Try this model.
Open Quick Start, then create or select a GPT Proto API key.
Use Copy Markdown for AI to copy the model-specific endpoint, authentication, model ID, supported parameters, and request example.
Paste that guide into Cursor, Claude Code, Codex, or another coding assistant that can inspect your project.
Ask it to add a small connection check, keep the key on the backend, and report which checks require live credentials.
Run one bounded request and verify the returned content, usage, latency, and error handling before connecting a long-running agent.
Do not assume Z.ai's direct model code and GPT Proto's eventual route are identical. The live GPT Proto model page will be the source of truth for the model string, price, and supported fields.
Is GLM-5.4 Worth Using?
GLM-5.4 is worth testing if your workload gives the model room to benefit from a second internal pass. Repository debugging, multi-file changes, screenshot-aware frontend work, long tool sequences, games, 3D scenes, and code-driven engineering are the strongest fits.
It is less convincing as the default model for every prompt. For small edits, Max effort can add time and output without adding useful work. For design-heavy frontend tasks, early testing suggests the model needs explicit visual constraints. Teams that require downloadable weights also need to wait.
I would use GLM-5.4 as a deliberate engineering model: Low for bounded changes, High for multi-file work, and Max only when the task has enough depth to justify it. Keep a faster model available for short calls and fallbacks.
The upgrade from GLM-5.3 looks real. The universal-replacement story does not—not yet.