Convika

لا تتوفر هذه الصفحة بالعربية بعد، لذا تظهر بالإنجليزية.

GLM-5.4: Z.ai's first Loop Transformer and where to use it

Convika Team14 min read

  • ai-news
  • ai-models
  • glm
On this page

As of November 24, 2026, 00:10 UTC (09:10 JST). Z.ai's GLM-5.4 blog post, its switching guide, API page and release notes, and the zai-org pages on Hugging Face were read again between 00:04 and 00:09 UTC, with no change since launch day; the GLM Coding Plan prices were read on November 23 at 11:32 UTC and Z.ai's post on X at 11:25 UTC (20:25 JST). This page follows the API and open-weights release and changes when either opens.

GLM-5.4 is Z.ai's new flagship model, released on November 23, 2026, and its first built on a Loop Transformer: a block of the same layers runs twice for each token, so the model thinks deeper without growing in size. You can use it today in every GLM Coding Plan (Lite, Pro, and Max), in ZCode, and in Z.ai Chat, and Coding Plan users can switch Claude Code to it. Z.ai says "API access will open after safety evaluation" and "Model weights will be released responsibly," with no date for either (as of November 24, 2026, 00:10 UTC, 20:45 JST).

Below: what Z.ai announced, what a Loop Transformer is, where you can use GLM-5.4 today and what it costs, how to run it in Claude Code, how it compares with GLM-5.3, and the numbers Z.ai has published so far.

What Z.ai announced

Z.ai posted "GLM-5.4: Toward Generalized Coding with Our First Loop Transformer" on its blog on November 23, 2026, and announced it on X at 19:27 JST the same day: "Introducing GLM-5.4: Generalized Coding with Our First Loop Transformer." The blog post says:

  • A new architecture. GLM-5.4 is "our first flagship model built on the Loop Transformer architecture, reaching intelligence levels comparable to 2T-3T parameter models." Z.ai builds it at "the 750B scale."
  • Generalized Coding. Z.ai's name for code as the way to solve a wider range of tasks. The post shows GLM-5.4 making a self-narrated music video, "a complete game" with "character movement, physics, maps, combat systems, and art assets," an interactive 3D bird-watching scene built from "pure mathematical geometry and custom GLSL shaders," and a 6-axis robotic arm in FreeCAD.
  • Images in. GLM-5.4 reads images as well as text. Z.ai credits its range to "improvements in both coding and vision," and its Coding Plan docs call GLM-5.4 a multimodal model.
  • Speed. "GLM-5.4 reaches up to 200 tokens/s during off-peak hours and maintains 70–80 tokens/s at peak load."
  • More use per plan. "Better performance, higher speed, and more generous usage quotas make GLM-5.4 practical for daily work." The quota section below has Z.ai's numbers.
  • API and weights. The blog lists "API (Coming Soon)" and "We plan to open-source the model weights responsibly after completing necessary safety hardening." The X post says "API access will open after safety evaluation" and "Model weights will be released responsibly."
  • A bigger model next. "Our next, significantly larger model will carry forward everything we learned here. It will be ready soon."

What a Loop Transformer is, in plain words

A standard Transformer, the design behind most AI models, passes each token through its stack of layers once. A Loop Transformer runs a group of those layers more than once, and each pass refines what the last one worked out. The model gets the depth of a bigger network without adding parameters.

How GLM-5.4 does it. Z.ai's blog says "GLM-5.4 loops 28 layers of the GLM-5 base model for two iterations." Its architecture diagram shows 26 layers first, the 28 looped layers run twice with the same weights, then 24 more layers. Z.ai didn't train a looped model from scratch: it took its already trained base model and turned it into a Loop Transformer with continued training, which "lets us raise the intelligence ceiling with a relatively small compute overhead."

Three changes that make the loop work at 750B:

  • Gates on each pass. Each pass writes its result back through a gate, so values don't blow up from one pass to the next. Z.ai says the first pass builds the context and writes small updates, and the second pass refines and writes full ones. On harder tokens, the first pass writes more.
  • A small extra memory cost. The second pass reuses the first pass's attention memory (the KV cache) and keeps only a short sliding window of its own. Z.ai: "an extra loop only costs one sliding window of KV cache rather than a full context cache," which keeps the cost increase over GLM-5.3 "well under control" at 1M-token contexts.
  • No second lookup. GLM-5.4 uses sparse attention, and the second pass reuses the attention indices the first pass picked, at no extra indexing cost.

What to expect when you use it. Z.ai writes that GLM-5.4 "tends to get caught in overly long 'marathon thinking' loops," and that this longer reflection "does consistently improve accuracy beyond its parameter count."

Where you can use GLM-5.4 today

GLM-5.4 availability, as of November 24, 2026, 00:10 UTC (09:10 JST):

WhereStatusWhat Z.ai saysSource
GLM Coding Plan (Lite, Pro, Max)Live on every plan"The GLM Coding Plan now supports the latest GLM-5.4 model for all users (Max, Pro, and Lite)"Coding Plan docs
ZCode, Z.ai's coding appLiveListed under "Getting Started": "ZCode"GLM-5.4 blog
Z.ai Chat (chat.z.ai)Live"Chat with it at Z.ai"GLM-5.4 blog
Claude Code, Cline, and other tools that take a custom modelLive with a Coding Plan API keySet the model to glm-5.4 or glm-5.4[1m]Coding Plan docs
Z.ai API (pay per token)Coming soon"API (Coming Soon)"; "API access will open after safety evaluation"GLM-5.4 blog, Z.ai on X
Open weights (Hugging Face)After safety hardening"We plan to open-source the model weights responsibly after completing necessary safety hardening"GLM-5.4 blog; zai-org on Hugging Face has no GLM-5.4 repository yet

GLM Coding Plan prices. Z.ai's pricing page lists Lite at $18, Pro at $80, and Max at $168 a month, billed monthly, with 20% off quarterly and 30% off yearly. Every plan includes GLM-5.4, GLM-5.3, and GLM-5.3-Flash, and works in more than 20 coding tools, ZCode and Claude Code among them.

How far a plan goes with GLM-5.4. Each plan has a weekly credit allowance (10,000 on Lite, 60,000 on Pro, 140,000 on Max) and a 5-hour one. Z.ai's docs charge GLM-5.4 two thirds of GLM-5.3's credits per token:

Credits per token, per Z.ai's formulaInputCached inputOutput
GLM-5.44.61.116
GLM-5.36.91.724

Off-peak use costs half the credits. Peak hours are Monday to Friday, 14:00 to 18:00 Singapore time (UTC+8). Z.ai estimates that Lite covers 72 to 146 million GLM-5.4 tokens a week at a 95% cache hit rate, against 48 to 97 million for GLM-5.3.

How to use GLM-5.4 in Claude Code

Z.ai's model-switching guide covers Claude Code for GLM Coding Plan users who already point Claude Code at Z.ai's Anthropic-compatible endpoint, https://api.z.ai/api/anthropic, with their plan's API key (first-time setup):

  1. Open ~/.claude/settings.json and add or update these keys under env, leaving the file's other fields as they are:

    {
      "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]"
      }
    }
    

    The [1m] suffix turns on the 1M-token context. If Claude Code says the model doesn't exist, update Claude Code and try again.

  2. Run claude, type /status, and check that the model reads glm-5.4 or glm-5.4[1m].

  3. Type /effort to set how hard it thinks. The default is max, which Z.ai recommends for coding.

In Cline and other tools that take a custom model, choose an OpenAI-compatible provider, enter https://api.z.ai/api/coding/paas/v4 as the base URL, and enter glm-5.4 as the model. Z.ai's guide says you can tick image support and set the context window to 1,000,000.

GLM-5.4 vs GLM-5.3: what changed

GLM-5.4GLM-5.3
ReleasedNovember 23, 2026August 18, 2026
How it was madeGLM-5 base model with 28 layers looped twice"the same base model as GLM-5.2," with "every gain" from post-training
Size"the 750B scale"753B parameters, per its Hugging Face card
InputText and imagesText only, per Z.ai's docs
Context1M tokens with glm-5.4[1m] in Claude Code1M tokens, up to 128K out
Coding Plan credits per token4.6 input, 16 output6.9 input, 24 output
Pay-per-token APIComing soon$1.40 per 1M input tokens, $4.40 per 1M output
Open weightsAfter safety hardeningYes, on Hugging Face under the GLM-5.3 License
Benchmarks Z.ai publishedNone for GLM-5.4 itself; a 30B loop test, belowA full table, for example 88.2 on Terminal Bench 2.1 and 84.5 on CyberGym, as Z.ai reports

GLM-5.3's license. The GLM-5.3 License lets anyone use, copy, modify, sell, fine-tune, and deploy the weights for free, keeping the copyright notice. One condition applies to the largest providers: a "Model as a Service" business whose revenue, with its affiliates, tops US$10 billion over 12 months "must pass Z.AI's security review" before commercial use. For how GLM-5.3 compares with DeepSeek, Qwen, Kimi, and MiniMax, see Chinese AI models.

What Z.ai has published so far, and what comes next

The 30B loop test. Before committing its flagship to the loop, Z.ai tested it on 1B, 4B, 30B, and 750B base models. On a 30B model with the same architecture as the 750B base, it compared a looped and an unlooped version with the same parameter count and "only ~10% more total training compute." Z.ai's results, "evaluated on the 30B model after 200K long-context SFT, with thinking mode enabled":

BenchmarkWithout loopWith loopGainChange in average output length
AIME2519.1730.42+11.3−2%
GPQA-Diamond47.5856.26+8.7−11.7%
AA-LCR40.3347.67+7.3−9.7%
MMLU-Pro71.6575.05+3.4−14.9%
IFBench50.2053.47+3.3−13.0%

Z.ai reads two things from it. The largest gains are in math, scientific reasoning, and long-context tasks. And the looped model writes 10 to 14% shorter answers on most benchmarks: "part of the reasoning shifts from explicit output tokens into the implicit depth of the loop."

GLM-5.4's own scores. Z.ai's blog post and X post give no benchmark scores for GLM-5.4 itself, as of November 24, 2026, 00:10 UTC. The 30B table is the one set of numbers Z.ai has published for the loop.

What Z.ai says comes next:

  • The API, "after safety evaluation."
  • The weights, "after completing necessary safety hardening."
  • A larger model: "our next, significantly larger model will carry forward everything we learned here. It will be ready soon."
  • Adaptive compute, so "harder tokens dynamically get more iterations," which Z.ai says it is exploring.

Publish what GLM-5.4 builds as a link

Z.ai shows GLM-5.4 making games, 3D scenes with GLSL shaders, videos, and CAD models. Here is how to send each one to anyone as a link:

  • A game or a shader demo in one HTML file. Convika puts it online at its own link, and it plays in any browser, on a phone or a computer, with its scripts and WebGL running. Sign up free, and on Put your page or file online, choose Upload a file or Paste code, then click Create my preview. The same box takes the game's folder or a .zip of it. Publishing an HTML game has the full steps.
  • From Claude Code. If GLM-5.4 writes the game inside Claude Code, connect Convika once with claude mcp add --transport http convika https://mcp.convika.com and sign in. Then ask Claude Code to save the HTML file to Convika and give you the preview link. Claude Code landing page walks through it.
  • A 3D model export. Open an STL, OBJ, GLB, or 5 other formats in Convika's free 3D model viewer, with nothing uploaded: turn it, zoom in, and read its size and triangle count. The link button under the view uploads the file and gives you a URL; whoever opens it sees the file's name and size and downloads it in one press. The STL viewer and GLB viewer do the same for one format each.
  • A video. Video to link gives the file a link whose page plays the video in the browser, with no signup.

To put a page live, click Publish page on its screen, choose Public, and click Next. The first time, click Publish free: the page is live at its own link with the Convika bar, and Convika shows how many people opened it. Under it, Publish without the Convika bar starts Pro with its free trial: 7 days free, then $12 a month, cancel any time before it ends.

Frequently asked questions

Is GLM-5.4 open source?

Not yet. Z.ai says "We plan to open-source the model weights responsibly after completing necessary safety hardening," with no date, as of November 24, 2026, 00:10 UTC (09:10 JST). Its previous flagship, GLM-5.3, is on Hugging Face under the GLM-5.3 License, which allows commercial use.

Is GLM-5.4 available via API?

Not on the pay-per-token Z.ai API yet: Z.ai's launch post lists the API as "Coming Soon," and Z.ai says "API access will open after safety evaluation." Today, GLM Coding Plan users call GLM-5.4 with their plan's API key inside coding tools such as Claude Code and Cline, as model glm-5.4.

How do I use GLM-5.4 in Claude Code?

With a GLM Coding Plan and Claude Code already set up for Z.ai, set ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL, and ANTHROPIC_DEFAULT_HAIKU_MODEL to glm-5.4[1m] in ~/.claude/settings.json, along with "CLAUDE_CODE_AUTO_COMPACT_WINDOW": "1000000". Run claude and check /status. The steps above have the full settings.

What are GLM-5.4's benchmarks?

Z.ai's launch post has one table: a 30B test model with and without the loop, where the loop added 11.3 points on AIME25, 8.7 on GPQA-Diamond, and 7.3 on AA-LCR, with shorter answers. Z.ai gives no benchmark scores for GLM-5.4 itself, as of November 24, 2026, 00:10 UTC. It says GLM-5.4 reaches "intelligence levels comparable to 2T-3T parameter models."

How much does GLM-5.4 cost?

Every GLM Coding Plan includes it: Lite at $18, Pro at $80, and Max at $168 a month billed monthly, with 20% off quarterly and 30% off yearly, per Z.ai's pricing page. GLM-5.4 uses two thirds of GLM-5.3's credits per token, and off-peak use costs half.

How big is GLM-5.4?

Z.ai describes GLM-5.4 at "the 750B scale": it loops 28 layers of the GLM-5 base model twice, so the extra depth adds no parameters. Z.ai says that puts it at "intelligence levels comparable to 2T-3T parameter models."

What is a Loop Transformer?

A Transformer that runs a group of its layers more than once per token, each pass refining the last, instead of passing through every layer once. It gets the depth of a bigger model with the same parameters. Z.ai traces the idea to the 2018 Universal Transformer.

Sources

Read on November 23, 2026, between 11:28 and 11:35 UTC (20:28 to 20:35 JST), unless another time is given. The blog post, the switching guide, and zai-org on Hugging Face were read again at 11:44 UTC (20:44 JST), with no change.