Skip to article Ruben Garcia Jr

Z.ai Shipped GLM-5.4 — The Loop Transformer Is Here, the API Isn’t

All notes ↗

Z.ai published GLM-5.4 on November 23, 2026 — the Chinese announcement is dated November 22 — and the pitch is unusually architectural for a flagship drop. This is their first Loop Transformer model: 28 layers from the GLM-5 base, run twice per forward pass, at what they call 750B scale. They say that reaches intelligence comparable to 2-trillion to 3-trillion parameter models. They also say the public Model API opens after a security assessment, and the weights come later, after safety hardening.

That last part is the one that matters if you build agents for a living. The model is out. The rental door is open through the GLM Coding Plan. The pay-as-you-go meter and the checkpoint are not.

What GLM-5.4 actually is

In a normal Transformer, each layer runs once per forward pass. In a Loop Transformer, a shared block of layers runs more than once and refines the hidden state from the previous pass. You get a deeper network without adding parameters. Z.ai did not pre-train a looped model from scratch — they note those still lag behind unshared models under the same pre-training budget — and instead continued training an already trained GLM-5 base into a loop.

At 750B scale, those 28 layers run for two iterations, with three changes to keep the extra pass practical. Gated progressive updates stop hidden-state norms from exploding: the first pass writes conservatively and builds global context, the second opens the gates and refines the output, and harder tokens get a more aggressive first write. A hybrid KV cache lets the second pass reuse the sparse keys and values from the first pass and keep only a local sliding window of new ones, so the extra loop costs one window of cache, not a second copy of a 1-million-token context. Because the base already uses sparse attention, the second loop also reuses the first loop’s attention indices.

The product claim on top of that is “Generalized Coding”: use code to generate and edit video, build a complete game, and do 3D modeling and mechanical design. The launch demos include a self-narrated “Hello World” music video, a six-axis robotic arm modeled in FreeCAD, a full game, and an interactive 3D bird-watching scene built from math and custom GLSL shaders. Those are vendor demos, not benchmarks.

The spec sheet, and the numbers that are actually public

Z.ai’s model guide is the cleanest primary source for the product limits. Input can be video, image, text, or file. Output is text. Context is 1 million tokens, with a maximum of 128K output tokens. The model overview lists English and Chinese. Supported capabilities include thinking mode, streaming, function calling, context caching, and structured output such as JSON. Claimed throughput is up to 200 tokens per second off-peak, and 70–80 tokens per second at peak load.

What you will not find there is a flagship benchmark table for the 750B model. The 2T–3T intelligence claim is Z.ai’s. It is not a published Artificial Analysis Intelligence Index score — I could not find a public AA result for GLM-5.4 as of November 26, 2026 — and it is not a row on OpenRouter. The glm-5.4 model URL returns 404, and OpenRouter’s Z.ai GLM version list still treats GLM 5.3 as current.

The evidence Z.ai did publish is a 30B iso-parameter ablation with the same architecture as the 750B base, identical parameter counts, and about 10% more total training compute. After 200K long-context supervised fine-tuning, with thinking mode on, Z.ai says the largest gains showed up in math, scientific reasoning, and long-context tasks, and that average output length on benchmarks such as GPQA-Diamond and MMLU-Pro dropped by 10–14%. MarkTechPost transcribed the 30B chart, including an 11.3-point gain on AIME25 and an 8.7-point gain on GPQA-Diamond. Those figures describe the smaller research model, not the deployed flagship.

Z.ai’s Chinese announcement adds a 200-task in-house coding evaluation and a claim that GLM-5.4 feels like the strongest Chinese coding model, especially on visual and long-horizon work. No per-task scores shipped with it. They also flag a real limitation: the model tends to fall into overly long “marathon thinking” loops. Z.ai says that prolonged reflection and self-correction does improve accuracy beyond the parameter count. If you are paying in Coding Plan quota, long thinking is still a cost, even when it helps.

How it compares — and what is still missing

The fair comparison today is not GLM-5.4 versus Opus or Gemini on a public leaderboard — those numbers are not out. It is GLM-5.4 versus GLM-5.3 as a product, and versus the hole where an API price and an independent score should be.

GLM-5.3 already had a 1M context window and 128K max output, and it is still the model on Z.ai’s public rate card: $1.40 per million input tokens and $4.40 per million output tokens, with cached input at $0.26. GLM-5.4 is not on that card. Do not inherit 5.3’s token price.

What did change is the architecture and the input surface. The 5.4 guide lists native video, image, text, and file input. The loop is the new compute bet: more effective depth for long reasoning chains, with KV and sparse-index tricks aimed at keeping 1M-context deployment costs under control. Z.ai also says weekly quota plans get 1.5× the GLM-5.3 quota when they run 5.4. Weights are still a promise. Z.ai says it plans to open-source them “responsibly after completing necessary safety hardening,” with no date. I checked the zai-org Hugging Face org while writing this. The latest GLM checkpoints there are still GLM-5.3 and GLM-5.3-Flash. There is no GLM-5.4 model card and no GitHub weights drop to review.

What I would actually use it for

I build custom WordPress sites and custom AI agents, so I do not rank a model on a slogan. I rank it on whether I can point a coding agent at it this week, and on what still has to wait. Where GLM-5.4 looks useful on paper is long-horizon, tool-using work that also needs eyes: a 1M context window with caching for a repo or a long agent thread, function calling and JSON output for tool results, and image, video, and file input when the job starts from a screenshot or a CAD-adjacent artifact and ends in code.

The catches are operational. The standard Model API is not open yet, so you should not point a generic production app at Z.ai’s usual API base URL and expect glm-5.4 to bill like 5.3. Coding Plan keys are separate from standard API keys, and the plan is limited to officially supported tools. Because the model can spend a long time thinking, I would start with one bounded job and watch quota. If you already live in Claude Code, Cline, OpenCode, Cursor, or Z.ai’s own ZCode and Z.ai Chat, you can try it now. If you need a public token price, an independent leaderboard score, or weights on Hugging Face, you are still waiting.

How to try it

Today the supported path is the GLM Coding Plan, which Z.ai says is live for all users on Max, Pro, and Lite. Subscribe, create a Coding Plan API key — not a standard Model API key — and connect a supported tool. The official endpoints are https://api.z.ai/api/anthropic for Anthropic Messages (Claude Code, Goose), https://api.z.ai/api/coding/paas/v4 for OpenAI Chat Completions, and https://api.z.ai/api/v1 for OpenAI Responses, including Codex.

The model IDs are glm-5.4 and, for the 1M context window, glm-5.4[1m]. In Claude Code, Z.ai’s switch-model guide has you add this to ~/.claude/settings.json without wiping the rest of the file:

{
  "env": {
    "CLAUDE_CODE_AUTO_COMPACT_WINDOW": "1000000",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.4[1m]",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.4[1m]",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.4[1m]"
  }
}

In Cline, the same docs say to choose an OpenAI-compatible provider, set that Chat Completions base URL, paste your Coding Plan key, enter glm-5.4 as a custom model, enable image support, and set the context window to 1,000,000. A minimal OpenAI-compatible call against that documented Coding Plan endpoint — not the standard Model API, which is still listed as coming soon — follows the official SDK pattern:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_CODING_PLAN_KEY",
    base_url="https://api.z.ai/api/coding/paas/v4",
)

completion = client.chat.completions.create(
    model="glm-5.4",
    messages=[{"role": "user", "content": "Write a Python function"}],
)

print(completion.choices[0].message.content)

Use that in a supported tool context, and keep the key out of source control. When the security assessment finishes, Z.ai says the standard Model API will open at z.ai/model-api. Until then, I would not budget a 5.4 token price or assume OpenRouter will route it.

My take

The interesting part of GLM-5.4 is a serious bet that looping a trained model is a cheaper way to buy reasoning depth than stacking more parameters, plus a product bet that coding skill generalizes into video, games, and CAD. I want both of those to be true. I also want a public score, a public price, and a weight file before I talk about them as facts.

If you already have a GLM Coding Plan, switch a single coding agent to glm-5.4 this week and give it one long, visual, tool-using job. Watch whether the extra thinking helps or just burns the 1.5× quota. If you are waiting on open weights, keep polling Hugging Face. This one does not have a date, and I will believe it when the repo exists.

Sources