GLM-5.4 (2026): Z.ai’s Loop Transformer Model, Price, Claude Code Setup and What’s Still Missing

Jump to comments

The tall beige main building of Tsinghua University in Beijing behind a long green lawn and paved walkways under a cloudy sky
The main building of Tsinghua University in Beijing, where the research behind Z.ai and its GLM models began.
Photo: N509FZ, 2019, via Wikimedia Commons (CC BY-SA 4.0)

The short answer: GLM-5.4 is the new flagship AI model from Z.ai, the Beijing lab formerly known as Zhipu AI, released on Nov. 23, 2026. Instead of adding parameters, it runs 28 of its layers twice for every token, a design called a Loop Transformer, and Z.ai says that lets a 750-billion-parameter model reason like one with 2 to 3 trillion. It also adds image and video input and a 1-million-token context window. You can use it today only through Z.ai’s GLM Coding Plan (from $18 a month), its ZCode app and Z.ai Chat. The pay-per-token API and the open weights are both still waiting on safety checks.

The launch post from Z.ai’s X account passed a million views within a day, and posts mentioning GLM-5.4 jumped from a handful a day to more than 8,000 on Nov. 23. Here is what the loop actually does, what evidence Z.ai has shown so far, what it costs, how to switch it on in Claude Code, and what is still missing.

What Z.ai released

Z.ai describes GLM-5.4 as its first flagship built on a looped architecture and the start of what it calls "Generalized Coding," the idea that a model that writes code well can use code to make videos, games, 3D scenes and mechanical designs, not just apps. According to the technical blog and the developer documentation, the headline specs are:

  • Size: a 750-billion-parameter model adapted from the existing GLM-5 base through continued training, not trained from scratch.
  • The loop: 28 of the base model’s layers run for two passes per token, adding depth without adding parameters.
  • Inputs and outputs: video, image, text and file inputs, with text output. GLM-5.3, the previous flagship, accepted text only.
  • Context: a 1-million-token context window and up to 128,000 tokens of output.
  • Speed: up to 200 tokens per second off-peak and 70 to 80 tokens per second at peak load, by Z.ai’s own figures.
  • Known flaw: a tendency to get stuck in very long "marathon thinking" runs, which Z.ai names in the blog itself.

How the loop works, in plain English

A standard large language model is a stack of layers, and each piece of text passes through every layer exactly once. (If you want the basics first, see our explainer on how large language models actually work.) A Loop Transformer sends the text back through part of the stack a second time, so the same weights get two chances to refine their answer. The model gets deeper without getting bigger.

The idea is old. Z.ai credits the 2018 Universal Transformer, and Thinking Machines used looping last week in Inkling 2 Mini, its small open model for laptops. The problem has been that looped models trained from scratch usually lose to ordinary models given the same training budget. Z.ai’s workaround was to take its already-trained GLM-5 base and convert it. The architecture diagram in the blog shows 26 ordinary layers at the start, the 28-layer block that runs twice in the middle, and 24 more layers at the end.

Three engineering changes keep the second pass from blowing up memory and cost. Per-token gates control how much each pass is allowed to change the model’s internal state; Z.ai says the first pass learned to write cautiously and the second to write fully, with harder tokens getting bigger first-pass updates. The second pass reuses the first pass’s memory of earlier text (its KV cache) and keeps only a small sliding window of its own, which the diagram labels as 128 tokens. And it reuses the first pass’s attention indices instead of recomputing them, which Z.ai says performs nearly identically.

What the evidence shows so far

This is the part to read carefully. Z.ai has not published standard benchmark scores for GLM-5.4 itself, and it does not explain how it arrived at the comparison to 2-trillion to 3-trillion-parameter models. Its controlled evidence comes from a much smaller 30-billion-parameter test model with the same architecture, where the looped version used about 10% more training compute than an unlooped twin with identical parameters.

On that 30B model, according to the results chart in the blog, the looped version scored 30.42 versus 19.17 on the AIME25 math test, 56.26 versus 47.58 on GPQA-Diamond science questions, 47.67 versus 40.33 on the AA-LCR long-context test, 75.05 versus 71.65 on MMLU-Pro and 53.47 versus 50.20 on IFBench instruction-following. It also wrote shorter answers: average output fell 11.7% on GPQA-Diamond, 14.9% on MMLU-Pro and 13.0% on IFBench, which Z.ai reads as some of the reasoning moving out of visible "thinking" text and into the extra pass.

The model still has some limitations. Most notably, it tends to get caught in overly long "marathon thinking" loops, though this prolonged reflection and self-correction does consistently improve accuracy beyond its parameter count.

Z.ai, GLM-5.4 technical blog, Nov. 23, 2026

Early outside testing points the same way. The reviewer AICodeKing placed GLM-5.4 seventh on his KingBench 4 coding benchmark, the highest spot for an open model, and called it "an honest effort" that "isn’t very benchmaxxed." VentureBeat reported that at maximum reasoning effort the model needed 431 minutes and 1,128 steps to finish his tests, against 109 minutes and 244 steps for Google’s Gemini 4 Neon. Testers quoted by VentureBeat praised its bug-hunting and security work, while others said it still trails Anthropic’s Claude Opus 5.5.

As an Amazon Associate, Aglena earns from qualifying purchases.

What "Generalized Coding" looks like

Z.ai’s demos lean on code as a universal tool. The blog shows GLM-5.4 producing a self-narrated music video called "Hello World," building a complete game with movement, physics, maps, combat and art, generating an interactive 3D bird-watching scene from pure geometry and custom GLSL shaders, and modeling a six-axis robotic arm in the open-source CAD program FreeCAD.

FreeCAD 0.20.1 window showing a gray 3D model of an L-shaped metal bracket with two holes, with the model tree and toolbars around it
A bracket modeled in FreeCAD, the open-source CAD program Z.ai used for its GLM-5.4 robotic-arm demo.
Photo: Nik vr, 2022, via Wikimedia Commons (CC BY-SA 4.0)

The research site alphaXiv said on Nov. 23 that it is using GLM-5.4 to turn trending arXiv papers into two-minute, 3Blue1Brown-style explainer videos on its homepage. That is a good example of the pitch: rather than generating video pixels the way image models do, GLM-5.4 writes the code that draws and animates each scene.

How the launch unfolded

August 2026: Z.ai releases GLM-5.3, a text-only flagship focused on coding and cybersecurity.

Nov. 22, 8:18 p.m. PT: Zixuan Li, in a post that Z.ai’s official account reposted, says GLM-5.4 is live for all GLM Coding Plan users, with 50% more weekly quota than GLM-5.3.

Nov. 23, 2:27 a.m. PT: Z.ai’s official account announces "Generalized Coding with Our First Loop Transformer" and publishes the technical blog. The post passes 1 million views.

Nov. 23, 3:28 a.m. and 4:34 p.m. PT: TNW and then VentureBeat cover the launch, both noting that Z.ai published no benchmark scores for GLM-5.4 itself.

Nov. 24: Digitimes reports the release as the start of Z.ai’s push toward a general coding paradigm. The API and open weights are still pending.

Your questions, answered

Can I use GLM-5.4 today?

Yes, but only inside Z.ai’s own products: the GLM Coding Plan, which plugs into more than 20 coding tools including Claude Code, Cline, OpenCode and Cursor, plus the ZCode app and Z.ai Chat. The pay-as-you-go API is listed as "coming soon" after a security assessment, and Z.ai’s pricing page does not list GLM-5.4 yet.

How much does it cost?

The GLM Coding Plan costs $18 a month for Lite, $80 for Pro and $168 for Max when billed monthly, or $12.60, $56 and $117.60 a month on a yearly plan. Prices were checked on November 24, 2026. Each plan has a five-hour credit limit and a weekly limit (Lite gets 10,000 credits a week, Pro 60,000 and Max 140,000).

The "1.5 times more quota" claim comes from how GLM-5.4 is metered. It costs 4.6 credits per 10,000 input tokens and 16 per 10,000 output tokens, against 6.9 and 24 for GLM-5.3, so the same work uses two-thirds of the credits. Usage also costs half as much outside peak hours, which Z.ai sets at 2 to 6 p.m. Singapore time on weekdays. For U.S. users on the West Coast, that peak is 10 p.m. to 2 a.m. Pacific, Sunday night through Thursday night.

How do I switch to GLM-5.4 in Claude Code?

Z.ai’s guide assumes you already have a Coding Plan key and Claude Code pointed at Z.ai’s Anthropic-compatible endpoint. In ~/.claude/settings.json, set the default Haiku, Sonnet and Opus models to glm-5.4[1m] (the suffix turns on the 1-million-token context) and set the auto-compact window to 1,000,000. Then run /status to confirm the model shows as glm-5.4. Z.ai says thinking effort defaults to max and can be changed with /effort. In other tools, the model name is simply glm-5.4.

Is GLM-5.4 open source?

Not yet. Z.ai says it plans "to open-source the model weights responsibly after completing necessary safety hardening," with no date and no license named. Its track record is mixed in a useful way: GLM-5, GLM-5.1 and GLM-5.2 are on Hugging Face under the permissive MIT license, but GLM-5.3 shipped under a custom "glm-5.3" license. At 750 billion parameters, it would also be far too big for a home PC even when the weights do arrive.

Is it better than Claude or Gemini?

There is no fair head-to-head yet. VentureBeat noted that Z.ai’s win-rate chart against three other models comes without an explanation of the method, the controlled numbers come from a 30B stand-in, and independent testing so far is limited to early runs such as KingBench. The honest summary from first-day testers is that GLM-5.4 is strong at careful code review and bug finding, slow when it overthinks, and cheap to use inside the Coding Plan.

Who is Z.ai?

Z.ai was founded in Beijing in 2019 as a commercial spinout of research at Tsinghua University, and it released the open-source GLM-130B model in 2022. It used the name Zhipu AI internationally until mid-2025 and still does in China. In January 2026 it became the first major Chinese large-language-model company to go public, listing in Hong Kong at HK$116.20 a share.

The GLM line has built a following among developers because the models are cheap and often released with open weights. GLM-5.4 is a test of whether a smaller model that thinks twice can keep that price edge while closing the gap with much larger rivals.

What to watch next

Four things will settle how good GLM-5.4 really is. The first is API pricing, which will show whether the cheaper credit rate carries over to developers who pay by the token. The second is the open-weight release and its license. The third is independent benchmarking of the 750B model itself rather than the 30B test version. The fourth is the larger model Z.ai says is coming "soon," which it says will carry the loop design forward. Z.ai is also working on adaptive looping, where harder tokens get more passes and easy ones fewer, which could ease the marathon-thinking problem.

Further reading

Cover of Build a Large Language Model (From Scratch) by Sebastian Raschka
Build a Large Language Model (From Scratch) by Sebastian Raschka

A hands-on guide to coding a transformer model layer by layer, the best way to see what looping layers changes.

Cover of AI Engineering: Building Applications with Foundation Models by Chip Huyen
AI Engineering by Chip Huyen

How to evaluate, pick and build on foundation models, useful when weighing a new model like GLM-5.4 against the rest.

NVIDIA Jetson Orin Nano Super developer kit board with a cooling fan
NVIDIA Jetson Orin Nano Super Developer Kit

A small AI computer for running smaller open models and coding agents locally.

Elgato Stream Deck MK.2 with 15 customizable LCD keys on a stand
Elgato Stream Deck MK.2

Fifteen programmable keys for launching scripts, terminals and AI tools with one press.

Samsung 990 PRO 2TB M.2 NVMe solid-state drive
Samsung 990 PRO 2TB NVMe SSD

Fast storage for the large model files that open-weight releases bring.

Aglena Best Of product picks

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Aglena