Pricing+7% bonus
Contact sales

What Is GLM-5.4? Better Coding, Longer Thinking & Real Uses

GLM-5.4 uses a Loop Transformer for deeper coding and 1M-token tasks. See benchmarks, API pricing, real uses, early reviews, and key limits.

What Is GLM-5.4? Better Coding, Longer Thinking & Real Uses

GLM-5.4 is not a two-trillion-parameter model. That distinction matters, because one of the biggest claims around Z.ai's new flagship is that it can perform like a much larger model without carrying a much larger set of weights.

Released on November 23, 2026, GLM-5.4 is a 750B-scale multimodal model built for coding, long-running agents, and engineering tasks. Its unusual feature is a Loop Transformer: 28 layers from the GLM-5 base model run twice, giving difficult tokens a second internal pass before the model commits to an answer.

That extra depth appears useful for repository-scale debugging, backend work, and visual-to-code tasks. It has a cost, too. Z.ai warns that GLM-5.4 can fall into long “marathon thinking” loops, and early users have found that more reasoning effort does not always produce a better result.

Here is what GLM-5.4 actually is, what its early coding tests show, how much the API costs, and where its “Generalized Coding” pitch goes beyond ordinary code generation.

Table of contents

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:

  1. Open the GLM-5.4 model page and click Try this model.

  2. Open Quick Start, then create or select a GPT Proto API key.

  3. Use Copy Markdown for AI to copy the model-specific endpoint, authentication, model ID, supported parameters, and request example.

  4. Paste that guide into Cursor, Claude Code, Codex, or another coding assistant that can inspect your project.

  5. Ask it to add a small connection check, keep the key on the backend, and report which checks require live credentials.

  6. 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.

Frequently Asked Questions

When was GLM-5.4 released?

Z.ai released GLM-5.4 on November 23, 2026. The official Model API documentation and token pricing were added shortly after the initial announcement.

How large is GLM-5.4?

Z.ai describes GLM-5.4 at the 750B scale. The company has not published a complete breakdown of total and active parameters for the released model. Its statement that GLM-5.4 reaches the intelligence level of 2T-3T models is a performance claim, not the model's parameter count.

What is the GLM-5.4 context window?

GLM-5.4 supports a one-million-token context window and up to 128,000 output tokens. In Claude Code, Z.ai documents the glm-5.4[1m] name and a one-million-token auto-compaction window for enabling the full context.

Is GLM-5.4 open source?

Not at launch. Z.ai says it plans to release open weights after completing safety hardening, but it has not announced a release date or final license.

Does GLM-5.4 support image and video input?

Yes. GLM-5.4 accepts text, images, video, and files, then returns text or code. It does not directly output a finished image or video through the language-model endpoint.

Is GLM-5.4 better than GLM-5.3?

For difficult coding and engineering work, the available evidence points to a meaningful upgrade. Z.ai's internal comparison and an early repository bug test both favor GLM-5.4. GLM-5.3 or GLM-5.3 Flash may remain more practical when latency and predictable token use matter more than deep reasoning.

Is there a GLM-5.4 Flash model?

No. Z.ai's current documentation says there is no GLM-5.4 Flash. GLM-5.3 and GLM-5.3 Flash remain available and are not automatically replaced when a user selects them.

How much does the GLM-5.4 API cost?

Z.ai currently lists GLM-5.4 at $1.40 per million input tokens, $0.26 per million cached-input tokens, and $4.40 per million output tokens. GPTProto pricing should be checked on the GLM-5.4 model page once that route goes live.

Related Articles

More Blogs
How to Switch from the Claude API to a Cheaper Provider

How to Switch from the Claude API to a Cheaper Provider

You do not have to replace Claude just because the direct API bill is too high. If another provider offers the same supported Claude model through an Anthropic-compatible endpoint, the lowest-risk move is to keep your model, prompt, Messages payload, and response parser—and change the endpoint and key. GPTProto currently lists supported Claude routes at 10% below Anthropic's direct list price. Claude Sonnet 5.5, for example, is listed at $1.80 per million input tokens and $9 per million output tokens, compared with Anthropic's $2 and $10. One GPTProto key can also access other supported model families from the same prepaid balance. The code change can be small. The migration still deserves a real test. Prompt caching, tools, streaming, thinking, rate limits, and data handling can turn a successful HTTP request into a broken production workflow if you only check for a 200 response. This guide shows how to switch from the Claude API to a cheaper provider, what to test before moving traffic, and when staying with Anthropic is still the better decision. Short answer: Keep the native Anthropic Messages format if your application already uses it. Change the base URL and API key, copy the exact live Model ID, replay representative requests, and move traffic gradually. Use an OpenAI-compatible endpoint only when your application already speaks that format or you deliberately want a common interface across model families. Compare Claude API Models and Live Prices

Tiffany Layne | 2026-12-02

Best Claude Model for Coding in 2026

Best Claude Model for Coding in 2026

Claude Sonnet 5.5 is a practical first model to test for everyday coding; Claude Opus 5.5 suits longer, more open-ended agent work. Use Claude Fable 5.2 when Opus still falls short on demanding reasoning, and test Claude Haiku 5.5 for small, high-volume tasks. Anthropic’s own guidance is to start with Opus 5.5 when you are unsure which model to use. The right choice depends on accepted code changes, total cost and time to completion—not a single leaderboard score. Get Get Newest Claude API

Michael Johnson | 2026-12-02

GPT-6.2 Astra vs GPT-6.2 Sol: Which GPT-6.2 Model Should You Use?

GPT-6.2 Astra vs GPT-6.2 Sol: Which GPT-6.2 Model Should You Use?

Key Takeaways OpenAI describes GPT-6.2 Astra as its frontier AI model for the hardest projects and GPT-6.2 Sol as its efficient, versatile model for everyday work. Both share the same 1,050,000-token context window, accept text and image input, and return text. OpenAI reports new highs for Astra on Agents' Last Exam, Terminal-Bench-Science 0.1, and Harvey LAB-AA, while Sol came within 0.5 points of the frontier model on FrontierCode 2.0 at about one-fifth of the cost (both at max reasoning). Sol costs $2 per 1M input tokens and $10 per 1M output tokens, one-quarter of the frontier model's $8 and $40. Cached and batch rates follow the same 4-to-1 ratio. On GPTProto, one API key and one balance cover both models: Astra is $6.40 input and $32.00 output per 1M tokens, and Sol is $1.60 input and $8.00 output. GPTProto offers up to 20% off select models.

Michael Johnson | 2026-11-19

What Is GPT-6.2 Astra? Real-World Uses, Pricing, and Early Reviews

What Is GPT-6.2 Astra? Real-World Uses, Pricing, and Early Reviews

GPT-6.2 Astra is OpenAI’s frontier reasoning model for difficult coding and professional work. It launched on November 17, 2026 in ChatGPT Work, Codex, and the API. But it is not automatically the best OpenAI model for every prompt. OpenAI describes GPT-6.2 Sol as the everyday option , while Astra is meant for jobs where deeper reasoning, tool use, or a finished professional deliverable can justify a higher bill. That distinction matters more than the launch demos. Yes, GPT-6.2 Astra can build a browser game. The more useful early examples are less flashy: reviewing code, tracing failures across services, upgrading a legacy application, analyzing a database, building a financial workbook, researching a technical question, or operating CAD and simulation tools. The early verdict is mixed. Some engineers report unusually strong results on migrations and code review. Others say the model is hard to steer, stops early, or explains long runs poorly. The safest conclusion is specific: Astra looks strongest on difficult, bounded work with a clear finish line. It is a less obvious choice for routine writing or loosely defined autonomous tasks. Both new models are now live on GPTProto: use GPT-6.2 Astra for difficult, high-value work or GPT-6.2 Sol for faster everyday tasks. Both are currently priced at 20% below OpenAI's standard API token rates . Try GPT-6.2 Astra API — 20% Off

Schuyler Stacy | 2026-11-18