GLM 5.4 is Z.ai's new flagship coding model, released on 23 November 2026, and the first GLM built on a Loop Transformer. Instead of adding parameters, it runs 28 layers of the GLM-5 base model twice, at what Z.ai calls "the 750B scale". It also reads images, which the text-only GLM-5.3 never did. You can use it today on the GLM Coding Plan, in ZCode and in Z.ai Chat. There is no API price, no open weights and no benchmark table for it yet.

For most users the bigger news is the price. On the Coding Plan, GLM 5.4 uses at least a third fewer credits per token than GLM-5.3, which is what Z.ai's "50% more quota" means in practice. This guide covers those numbers, the Claude Code setup and the first independent tests, which show why the default max effort wastes time on small tasks.

The Key Takeaways

  • What it is: Z.ai's first Loop Transformer. GLM 5.4 runs 28 layers twice at the 750B scale, and Z.ai claims intelligence comparable to 2T-3T parameter models, with no benchmark table behind the claim yet.
  • Where it works: every GLM Coding Plan tier (Lite, Pro and Max), ZCode and Z.ai Chat. The pay-as-you-go API is "coming soon" and the weights follow "safety hardening", with no dates.
  • The quota boost is a per-token discount: weekly credits stay at 10,000 / 60,000 / 140,000, but GLM 5.4 costs 4.6 / 1.1 / 16 credits per unit against GLM-5.3's 6.9 / 1.7 / 24, so every credit buys 1.5x the tokens.
  • Effort matters: Claude Code runs GLM 5.4 at max by default. In AICodeKing's tests Max scored highest on big builds, but KingBench 4 took 431 minutes against Gemini 4 Neon's 109, and Low won the small tasks.
  • First independent score: 33.2 out of 60 on KingBench 4, 7th of 19 models and ahead of GLM-5.3's 27.5, from one reviewer with early access.

What Is GLM 5.4?

From the publisher

See which AI answers best

Ask GPT, Claude and Gemini the same question and compare the answers. On Mac, iPhone and iPad.

Download now!
From the publisher

See which AI answers best

Ask GPT, Claude and Gemini the same question and compare the answers. On Mac, iPhone and iPad.

Try it free
From the publisher

Stop paying for three AI subscriptions

Get GPT, Claude and Gemini in one app on one plan. On Mac, iPhone and iPad.

Download now!
From the publisher

Stop paying for three AI subscriptions

Get GPT, Claude and Gemini in one app on one plan. On Mac, iPhone and iPad.

Try it free
From the publisher

Stop tab-hopping between AI apps

Ask ChatGPT, Claude and Gemini the same question in one window and keep the best answer. On Mac, iPhone and iPad.

Try it free
From the publisher

Stop tab-hopping between AI apps

Ask ChatGPT, Claude and Gemini the same question in one window and keep the best answer. On Mac, iPhone and iPad.

Download now!
From the publisher

Don't just read about AI models. Try them

The newest AI models, ready in one app. On Mac, iPhone and iPad.

Download now!
From the publisher

Don't just read about AI models. Try them

The newest AI models, ready in one app. On Mac, iPhone and iPad.

Try it free

GLM 5.4 is a coding model from Z.ai, the company also known as Zhipu AI, and its first flagship built on a Loop Transformer. Z.ai introduced it in a technical blog post titled "GLM-5.4: Toward Generalized Coding with Our First Loop Transformer", dated 23 November 2026. Zixuan Li of Z.ai announced the Coding Plan rollout at 04:18 UTC that day. The official @Zai_org account followed at 10:27 UTC with this post, which also names what is still missing: the API and the weights.

How big is GLM 5.4?

GLM 5.4 sits at about 750 billion parameters, by Z.ai's own description. The blog never prints an exact count. It refers to "the 750B scale" and lists a 750B base among the model sizes Z.ai tested. Early-access testers put the figure at about 700B, and AICodeKing's review says "700B params". Use Z.ai's 750B until a model card settles it. AICodeKing's early-access charts label the model GLM X Preview.

Z.ai also claims GLM 5.4 reaches "intelligence levels comparable to 2T-3T parameter models". Treat that as a vendor claim. The blog publishes no benchmark table for GLM 5.4 itself. Its only chart is an ablation on a much smaller 30B model.

What Z.ai means by Generalized Coding

"Generalized Coding" is Z.ai's name for using code to produce things that are not software. The blog shows four demos, each built by GLM 5.4 writing code. Two are "Hello World", a music video the model narrated itself, and a 6-axis robotic arm modelled in FreeCAD, the open-source CAD program. The other two are a complete game with movement, physics, maps, combat and art assets, and an interactive 3D bird-watching scene built from geometry and custom GLSL shaders.

Z.ai credits the demos to two upgrades at once: stronger coding and vision. GLM 5.4 accepts images as input, and GLM-5.3 accepts text only.

How the GLM 5.4 Loop Transformer Works

A Loop Transformer runs the same layers more than once for every token. In a standard Transformer each layer runs once per forward pass. GLM 5.4 sends its hidden states through a block of 28 weight-shared layers twice, so the network gets deeper without a single new parameter. Z.ai's argument is that long reasoning chains, such as large codebases, security work and 3D modelling, need more compute per token rather than more memorised knowledge.

The idea is not new. Z.ai credits the 2018 Universal Transformer and notes that looped models trained from scratch still lag standard models on the same training budget. So Z.ai did not train GLM 5.4 from scratch. It took the already trained GLM-5 base and converted it into a looped model through continued training.

Three changes that keep the second pass cheap

Z.ai made three changes so that GLM 5.4's second pass adds little memory: gated updates, a shared KV cache and reused attention indices. Without them, a looped model keeps a full KV cache for every pass, which multiplies memory by the number of loops. The first change is gated progressive updates: per-token gates decide how much of each pass is written back. The first pass writes cautiously and the second refines, and harder tokens get bigger first-pass updates.

The second change is a hybrid KV cache. The second pass reuses the first pass's cache and keeps only a small sliding window of its own. In Z.ai's words, an extra loop "only costs one sliding window of KV cache rather than a full context cache". The third is sparse attention index reuse: the second pass reuses the attention indices the first pass already picked, which Z.ai says adds "zero indexing overhead".

Z.ai says the design keeps GLM 5.4's extra deployment cost over GLM-5.3 "well under control" at 1M-token context lengths. Z.ai quotes speeds of up to 200 tokens per second off-peak and 70-80 tokens per second at peak load.

What Z.ai's 30B test showed

Z.ai's only published evidence for the loop is a controlled test on a 30B model. The looped and standard versions had the same parameter count, and the looped one used about 10% more training compute. The biggest gains came in maths, scientific reasoning and long-context tasks. On Z.ai's table, AIME25 rose from 19.17 to 30.42, GPQA-Diamond from 47.58 to 56.26 and the AA-LCR long-context test from 40.33 to 47.67.

Answers also got shorter. Z.ai says average output length fell by 10-14% on most benchmarks, and its table shows 11.7% on GPQA-Diamond and 14.9% on MMLU-Pro. In Z.ai's words, "part of the reasoning shifts from explicit output tokens into the implicit depth of the loop".

GLM 5.4 is the second looped model in a week. Thinking Machines announced Inkling 2 Mini, a 26B looped transformer small enough for a laptop, on 20 November. Inkling 2 Mini is built to run on your own machine. GLM 5.4 applies the same idea at 750B, as a hosted model.

Where You Can Use GLM 5.4 Today

GLM 5.4 runs in three Z.ai products today and nowhere else. Every route that a developer outside Z.ai's own apps would need, the API, the weights and an independent benchmark, is still missing.

RouteStatus on 23 November 2026Detail
GLM Coding PlanLiveAll tiers: Lite, Pro and Max. Works in Claude Code, Cline and other agents that accept a custom model name.
ZCodeLiveZ.ai's own coding tool, listed in the launch blog.
Z.ai ChatLivechat.z.ai, listed in the launch blog. The model picker sits behind a login.
Pay-as-you-go APINot yetListed as "Coming Soon". No GLM 5.4 row on the price list.
Open weightsNot yetPromised "after completing necessary safety hardening". No date.
BenchmarksNoneNo table from Z.ai, no Artificial Analysis page.

We checked the four public places where a new GLM normally shows up, between 13:37 and 13:40 UTC on 23 November. We call this the Fello AI GLM 5.4 availability check. Z.ai's API price list still opens with GLM-5.3 at $1.40 input and $4.40 output per million tokens. Z.ai's release notes still end with GLM-5.3-Flash on 26 August. The newest repositories in the zai-org Hugging Face organisation are the GLM-5.3 family from August, and a Hugging Face search for "glm-5.4" returns nothing. Artificial Analysis has no GLM 5.4 page, and the GLM 5.4 docs page that Z.ai's blog links to returns a 404. Our GLM pricing guide has the full API rate card for the models you can call today.

Want GLM in a chat window on a Mac or iPhone without a coding subscription? Fello AI includes GLM next to ChatGPT, Claude and Gemini in one app. There is no Z.ai account to set up, and new models usually reach the app once their API opens. The GLM desktop client for macOS page covers that setup.

What "50% More Quota" Means for GLM 5.4

Your Coding Plan credits did not grow; GLM 5.4 simply costs fewer credits per token than GLM-5.3. Zixuan Li's announcement is the source of the "50% more quota" line that most launch coverage repeats:

Z.ai's plan documentation shows how the 50% is delivered. The Coding Plan meters usage in credits: 2,000 / 12,000 / 28,000 per five hours and 10,000 / 60,000 / 140,000 per week on Lite, Pro and Max. Those numbers are unchanged. What changed is the multiplier each model applies to tokens:

ModelInputCached inputOutput
GLM 5.44.61.116
GLM-5.36.91.724
GLM-5.3-Flash2.30.568

Credits used equal tokens times the multiplier, divided by 10,000. GLM-5.3's input multiplier of 6.9 is exactly 1.5 times GLM 5.4's 4.6, and 24 is exactly 1.5 times 16; the cached rate, 1.7 against 1.1, drops a little more. The same weekly credits therefore buy GLM 5.4 1.5 times as many tokens as GLM-5.3. Some early write-ups turned Li's post into larger credit totals of 15,000, 90,000 and 210,000 a week. Z.ai's credit table does not show those numbers.

What 1.5x buys in a week

On Lite, 1.5x means about 72-146 million GLM 5.4 tokens a week against 48-97 million on GLM-5.3, by Z.ai's own estimates at a 95% cache hit rate. The low end assumes every request runs at peak hours, the high end that every request runs off-peak at half the credit rate:

PlanGLM 5.4, million tokens a weekGLM-5.3, million tokens a week
Lite72-14648-97
Pro440-870290-580
Max1,014-2,028676-1,352

Peak hours are Monday to Friday, 14:00 to 18:00 Singapore time (UTC+8). The Lite plan starts at $18 a month.

What one agent session costs

One long agent session costs 287.5 credits on GLM 5.4 against 436 credits on GLM-5.3 at the peak rate. The example session sends 1 million input tokens, 950,000 of them cached, and gets 100,000 output tokens back. Lite's 2,000-credit five-hour window fits four such sessions on GLM-5.3 and six on GLM 5.4. Off-peak, the same window fits nine on GLM-5.3 and thirteen on GLM 5.4.

The catch is reasoning. Output tokens carry the highest multiplier, and GLM 5.4 at max effort writes a lot of them. In AICodeKing's review it reasoned about 1.04 million tokens over one full KingBench 4 run. If GLM 5.4 writes 200,000 output tokens where GLM-5.3 wrote 100,000, the same session costs 447.5 credits, more than GLM-5.3's 436.

How to Use GLM 5.4 in Claude Code

Point Claude Code at Z.ai's Anthropic-compatible endpoint, then set all three model slots to glm-5.4[1m]. Z.ai's model-switching guide gives these steps:

  1. Have an active GLM Coding Plan and a Z.ai API key, and confirm an existing GLM model already works. Z.ai suggests testing glm-5.3-flash first.
  2. Check that Claude Code is configured with Z.ai's endpoint, https://api.z.ai/api/anthropic.
  3. Open ~/.claude/settings.json and add or update only the keys below. Do not replace the whole file.
  4. Start claude, type /status, and check that Model shows glm-5.4 or glm-5.4[1m].
{
  "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 and the compact window of 1,000,000 switch on the 1M-token context. If Claude Code says the model does not exist, update Claude Code and try again. Zhipu's Chinese guide to the same plan sets the compact window to 512,000 instead, a size it recommends for better coding results. In Cline and similar agents, choose an OpenAI-compatible provider, enter https://api.z.ai/api/coding/paas/v4 as the base URL and glm-5.4 as a custom model, and tick image support. Agents without a custom model setting cannot use GLM 5.4 yet.

Claude Code's /effort command changes how long GLM 5.4 thinks. Z.ai sets the default to max and recommends max for coding. Z.ai maps "medium" and "high" to its high level, and "minimal", "light" and "low" to its low level. Our guide to Claude Code effort levels explains the command itself.

GLM 5.4 Effort Levels: When Max Helps and When It Hurts

Max effort gives GLM 5.4 its best scores on long builds and wastes time on short tasks. The first independent evidence comes from AICodeKing, a YouTube coding reviewer who had early access. The review went up at 05:07 UTC on 23 November, about five hours before the @Zai_org launch post, and states that it is not sponsored:

GLM 5.4 on KingBench 4

GLM 5.4 scored 33.2 out of 60 on AICodeKing's KingBench 4, 7th of 19 models. Claude Fable 5.2 leads the board at 42.0 and Gemini 4 Neon is second at 37.9. GLM-5.3 scored 27.5, though AICodeKing notes that its build was partial, scored after a timeout. AICodeKing calls GLM 5.4 "the best Open Model you can use right now", even though its weights are not public yet.

Read the score as one reviewer's result, not an industry benchmark.

The six tasks are build jobs, from an emulator and a container runtime to a Fitbit desktop app. Gemini 4 Neon graded most of GLM 5.4's tasks, and GLM 5.4 graded at least two of its own. Two tasks were rerun with a clarified prompt, and the same-prompt total is 31.8.

What each effort level scored

Max scored highest on the big KingBench 4 builds and Low scored highest on small tasks, in AICodeKing's runs at all four effort levels. The small tasks are a separate set of five deterministic checks:

EffortKingBench 4 (out of 60)5 small tasks: checks passed5 small tasks: total time
Low25.225 of 2566 s
Medium24.124 of 25175 s
High28.820 of 25426 s
Max31.8 (33.2 with the rerun)20 of 25454 s

High and Max each failed one of the small tasks by thinking past a 180-second timeout. On the full benchmark, the Max run took 431 minutes against Gemini 4 Neon's 109. Each step was not slower, but GLM 5.4 took 1,128 steps against Neon's 244 and reasoned about 1.04 million tokens against roughly 70,000. AICodeKing ran the two models in different tools and at different effort levels, so the ratio is a rough guide. Z.ai's own blog names the same weakness: GLM 5.4 gets caught in overly long "marathon thinking" loops, which Z.ai says still improve accuracy.

The practical rule: keep max for long, multi-file builds and code reviews where accuracy matters more than time. Switch to low with /effort for quick fixes and small checks. AICodeKing settles on High as the everyday middle and uses GLM 5.4 mainly as a reviewer for bugs and security problems.

GLM 5.4 vs GLM 5.3

GLM 5.4 replaces GLM-5.3 as the model to pick on the Coding Plan, and GLM-5.3 stays the only one of the two you can call by API or download. GLM 5.3 was Z.ai's August flagship, built for coding and cybersecurity.

GLM 5.4GLM-5.3
ArchitectureLoop Transformer, 28 layers run twiceStandard, each layer runs once
Image inputYesNo, text only
Context1M tokens1M tokens, 128K max output
Coding Plan credits (input / cached / output)4.6 / 1.1 / 166.9 / 1.7 / 24
API price per 1M tokensNot published$1.40 input, $0.26 cached, $4.40 output
Open weightsNot yetYes, under Z.ai's own GLM-5.3 licence
Benchmarks from Z.aiNone for the model itselfYes
KingBench 4 (AICodeKing)33.2 / 6027.5 / 60 (partial build)

On the Coding Plan, switching is an easy call: GLM 5.4 is cheaper per token, reads images and scored higher in the only independent test so far. Lower the effort for small jobs, or the extra reasoning eats the cheaper rate. Teams on the pay-as-you-go API should stay on GLM-5.3 until a GLM 5.4 price appears. Anyone who needs weights on their own servers should look at GLM-5.3 or the smaller, MIT-licensed GLM 5.3 Flash.

Is GLM 5.4 the GLM 5.5 People Expected?

No. GLM 5.4 is a point release on the existing GLM-5 base, and Z.ai says a bigger model comes next. The blog's closing lines say Z.ai is pursuing both deeper loops and larger models, and that its "next, significantly larger model will carry forward everything we learned here. It will be ready soon." Z.ai has not named that model or given a date. It also lists one open research question: adaptive compute, where harder tokens get more loop iterations than easy ones. Our explainer on why GLM 5.5 never shipped tracks what Z.ai has said about its next generation.

The Verdict on GLM 5.4

GLM 5.4 is worth switching to today if you already pay for the GLM Coding Plan, and worth waiting for if you need an API or weights. On the plan it is the cheaper model per token, it reads images, and it beat GLM-5.3 in the first independent test. The open questions are the ones Z.ai left open itself: no benchmark table to back the 2T-3T claim, no API price and no date for the weights. Switch the model string, drop the effort to low for quick jobs, and keep max for the large builds where the extra thinking pays for itself.

FAQ

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", but gives no date. On 23 November the zai-org Hugging Face organisation had no GLM 5.4 repository. The newest open GLM weights are GLM-5.3 and GLM-5.3-Flash.

How much does GLM 5.4 cost?

GLM 5.4 has no per-token API price yet. The paid way to use it is the GLM Coding Plan, which starts at $18 a month for Lite. On the plan, GLM 5.4 uses 4.6 credits per input unit and 16 per output unit, against GLM-5.3's 6.9 and 24. Z.ai's launch blog also lists Z.ai Chat as a place to try it.

How many parameters does GLM 5.4 have?

About 750 billion, by Z.ai's description of "the 750B scale". Z.ai has not published an exact count, and early testers reported about 700 billion. Because GLM 5.4 runs 28 of its layers twice, it gets more depth without adding parameters.

When will the GLM 5.4 API be available?

Z.ai has not given a date. Z.ai's launch post on X says API access "will open after safety evaluation", and the blog lists the API as "Coming Soon". Until then, GLM 5.4 works only through the GLM Coding Plan, ZCode and Z.ai Chat.

Is GLM 5.4 better than GLM 5.3?

In the only independent test so far, yes: GLM 5.4 scored 33.2 out of 60 on AICodeKing's KingBench 4 against GLM-5.3's 27.5, and it adds image input. Z.ai has not published a benchmark table comparing the two, so treat that as an early result from one reviewer.

The featured image for this article was created with the help of AI.