Trending Now
Fact-Checked

GLM-5.4: Z.ai’s New Flagship AI Model With Vision and 1M Context

Share:
Font:
Table of Contents

Z.ai has shipped its next flagship coding model. GLM-5.4 rolled out on November 23, 2026, to every subscriber of the GLM Coding Plan, and it works differently from almost every large model before it — instead of adding layers, it runs the ones it has twice. The new model also adds vision, a million-token context option, and 50% more weekly quota than GLM-5.3.

Z.ai — Zhipu AI’s developer platform — calls this the start of “Generalized Coding”: code as the foundation for tasks beyond software.

What Is GLM-5.4?

GLM-5.4 is Z.ai’s first flagship built on a Loop Transformer. It is built from the roughly 750-billion-parameter GLM-5 base model, looping 28 of its layers for a second iteration. Z.ai claims intelligence comparable to 2–3 trillion-parameter models — unconfirmed by independent benchmarks so far.

Unlike the text-only GLM-5.3, GLM-5.4 accepts images as input — odd, since the lighter GLM-5.3-Flash already handled images and video. Much of real coding work arrives as a screenshot of a bug or a sketch of an interface, so vision makes the flagship useful where its predecessor could not go.

The Loop Transformer, Explained Simply

In a standard Transformer, each layer runs once per token predicted. A Loop Transformer runs a shared block of layers more than once, refining the hidden state each pass — a deeper network, more room to think, without adding a single parameter.

The idea is not new — the Universal Transformer proposed weight-shared depth in 2018 — but looped models trained from scratch trailed ordinary models on the same compute budget. Z.ai instead adapted an already pre-trained base through continued training, raising the intelligence ceiling cheaply.

Three engineering changes keep the extra pass affordable at the 750B scale, according to Z.ai’s blog. First, gated updates: per-token gates control how much each pass writes back — the first pass writes cautiously, the second refines. Second, a hybrid KV cache: the second loop reuses the first pass’s sparse cache plus a small sliding window, so an extra loop costs one window, not a full cache. Third, attention index reuse: the second loop reuses the first loop’s indices, adding no indexing work.

Z.ai validated the design across 1B, 4B, 30B, and 750B base models. On a 30B test model with the same architecture and about 10% more training compute, the looped version gained most in math, scientific reasoning, and long-context tasks, with answers 10–14% shorter on tests such as GPQA-Diamond and MMLU-Pro — but those are 30B test-model results, not GLM-5.4 benchmarks.

What Is New in GLM-5.4?

Beyond vision, three upgrades matter. First, context: a million-token variant — glm-5.4[1m] in Claude Code, glm-5.4 elsewhere — big enough to hold a whole repository in one session. Second, quota: 50% more GLM-5.4 usage than GLM-5.3 on weekly-quota plans (V2, V3, and team). Third, speed: up to 200 tokens per second off-peak, 70–80 at peak, per Z.ai.

GLM-5.4 vs GLM-5.3 and GLM-5.3-Flash

GLM-5.3 is the previous text-only flagship, GLM-5.3-Flash the smaller multimodal model, and GLM-5.4 the new flagship combining both strengths.

Scroll horizontally to view complete table
GLM-5.4 GLM-5.3 GLM-5.3-Flash
Released November 23, 2026 August 14, 2026 August 26, 2026
Architecture Loop Transformer (28 layers ×2, 750B base) Standard Transformer flagship MoE, 320B total / 18B active
Vision Yes, images No, text-only Yes, images and video
Context window 1 million tokens — 1 million tokens
Weekly quota (Coding Plan) 50% more than GLM-5.3 Baseline 3× GLM-5.3 quota
API access Coming soon Available $0.15 / $0.50 per 1M tokens
Open weights Planned after safety hardening Not released MIT, on Hugging Face

How to Try GLM-5.4: Step by Step

The GLM Coding Plan is the only way in right now — no free tier, and the API is not open yet. Follow these steps:

  1. Get a GLM Coding Plan subscription: open z.ai/subscribe and subscribe — the access Z.ai points to in its launch post.
  2. In Claude Code: connect your Coding Plan credentials, then set the model to glm-5.4[1m] for the million-token version.
  3. In other tools: select glm-5.4 — it works across the plan’s supported tools, including Codex, Cline, OpenCode, and ZCode.
  4. Or skip setup entirely: open ZCode or Z.ai Chat and pick GLM-5.4 there — no tool configuration needed.
  5. Try vision first: paste a screenshot of a bug or a sketch of a user interface and ask the model to reproduce the layout or fix the problem.
  6. Try long context: point it at a whole repository and ask for a change touching several files at once — the million-token window is built for this.
  7. Start small: give it one well-defined task — debug a single file or refactor one function — and check the output before handing it a whole codebase. Z.ai warns it sometimes falls into overly long “marathon thinking” loops, though the extra reflection usually improves accuracy.

What GLM-5.4 Can Do Beyond Coding

Z.ai’s launch demos go past ordinary software: the model coded “Hello World,” a self-narrated music video; built a 6-axis robotic arm in FreeCAD; created a complete game; and generated an interactive 3D bird-watching scene from pure geometry and GLSL shaders. Coding, Z.ai argues, is becoming the interface for video, games, and 3D design.

What Is Still Missing

Several expected things are still absent. No GLM-5.4 benchmark scores have been published — the numbers Z.ai shared come from a 30B test model, with real benchmarks promised later. There is no pay-as-you-go API price, since the API is still coming soon pending a safety evaluation. There is no date or license for the open-weight release, only a plan to open-source the weights after safety hardening. Even Z.ai’s developer docs had no GLM-5.4 entry on launch day — the latest was GLM-5.3-Flash (August 26, 2026). Treat the 2T–3T comparison and speed figures as Z.ai’s claims until independent testing weighs in.

GLM-5.4 FAQs

When was GLM-5.4 released?

November 23, 2026. It rolled out the same day to all GLM Coding Plan subscribers, announced by Z.ai product lead Zixuan Li and reposted by Z.ai’s official account.

How do I use GLM-5.4?

Subscribe to the GLM Coding Plan, then set the model to glm-5.4[1m] in Claude Code, or glm-5.4 in other supported tools. It is also in ZCode and Z.ai Chat with no setup.

How much does GLM-5.4 cost?

No separate price — it is included in the GLM Coding Plan. Reports put the plan at $18/month for Lite, $80 for Pro, and $168 for Max, though these figures are reported, not confirmed. API pricing is unpublished.

Is GLM-5.4 open source?

Not yet. Z.ai plans to open-source the weights after safety hardening, but has given no date or license. Its smaller sibling, GLM-5.3-Flash, is already out under an MIT license.

What is a Loop Transformer?

A Transformer design where a shared block of layers runs more than once per forward pass, so the network reasons more deeply without adding parameters. GLM-5.4 runs 28 layers of the GLM-5 base twice, with gated updates and a shared KV cache keeping the extra pass cheap.

GLM-5.4 arrives as every major AI lab races to own the coding-agent space. If a paid plan is out of reach, our roundup of the best free AI tools for students covers the free options — and full details are on Z.ai’s official blog.

Share with classmates and friends

Help your peers with their preparation by sharing this guide.

Was this study guide helpful for your preparation? Student feedback helps us create accurate, high-quality handnotes and guides.
Educator & Author

Omar Faruk

Verified Author

Education and technology researcher, writer, and regular content contributor at HelpTrickBD.

Leave a Comment or Question

Your email address will not be published.