Skip links

GLM-5.4 explained: vision, the loop transformer and what it costs

GLM-5.4 in silver above Z.ai's loop transformer in grey on near-black, in a field of faint squares with a few lit white
Z.ai's GLM-5.4 runs part of its network twice and adds image input to its flagship coding model.

A designer spots a fault on a mobile landing page: the enquiry button sits on top of the last line of the headline. A screenshot shows the problem more precisely than a ticket can describe it. With GLM-5.4, which Z.ai released on 23 November 2026, a developer can give that screenshot and the page’s code to Z.ai’s flagship model in the same coding session. Its predecessor could not: the GLM-5.3 spec page lists text as its only input.

That gap showed up when we tested GLM-5.3 for our GLM-5.3 explainer. Across 15 everyday marketing jobs, each run twice, it passed 29 of 30 checks, and its one scored miss was a cost-per-acquisition calculation. It skipped a separate alt-text job altogether because it could not see the image. Those results are for GLM-5.3, not GLM-5.4.

Image input is not new to Z.ai’s range, though. GLM-5.3-Flash, the smaller and cheaper model Z.ai released in August, already reads images, video and files. So for visual jobs the fair comparison for GLM-5.4 is Flash; GLM-5.3 is the comparison when both models get the same written brief.

The answer in brief

  • What it is. The new flagship coding model from Z.ai, also known as Zhipu AI. It has about 750 billion parameters, runs one block of 28 layers twice, and reads images, video and files as well as text.
  • Where it runs. On Z.ai’s GLM Coding Plan, in supported coding tools, and in Z.ai’s chat service. There is no standard API, OpenRouter listing or download yet.
  • The evidence. Z.ai has published no benchmark scores for GLM-5.4 itself, only its own head-to-head win rates. Third-party results from ModelDial put it level with GLM-5.3 overall: stronger at back-end engineering, weaker at knowledge and reasoning.
  • The cost. On the Coding Plan it uses two thirds of GLM-5.3’s credits for the same tokens, and twice what Flash uses. Plans cost $18, $80 or $168 a month.
  • Our testing. We have not tested GLM-5.4.

What can GLM-5.4 do with images and code?

It can work from a screenshot, a design or a chart alongside code and instructions. Z.ai’s GLM-5.4 model page lists video, images, text and files as inputs, with a 1-million-token context and up to 128,000 output tokens. Its model-switching guide tells Cline users to tick “Support Images”, and the architecture diagram in Z.ai’s GLM-5.4 technical report shows image features from a 24-layer vision encoder entering the model with the text.

Z.ai calls its target “Generalized Coding”: work where the result is a video, a game or a design, and code is how the model makes it. Its demos include a music video called Hello World narrated by GLM-5.4, a six-axis robotic arm modelled in the FreeCAD design program, a complete game, and an interactive 3D bird-watching scene drawn with mathematical geometry and custom shaders. The appeal for a creative team is that code can be edited: if a product animation needs a slower turn or a different camera angle, there is a specific line to change. Z.ai chose the demos, so they show range rather than how often the model gets such work right.

One early hands-on account shows both the promise and the rough edges. The editorial team of the Chinese tech account 夕小瑶科技说 (Xi Xiaoyao Keji Shuo) published it on 23 November, and AITNT republished the review in Chinese. The tester connected GLM-5.4 to the Pi Agent tool and had it build a 3D hotpot restaurant with small games inside. Tapping two watermelon slices on a table made a character eat them, and both the 3D scene and an on-screen counter went from five slices to three; restarting restored them at once. The tester called the character movement prototype-like and the game rules simplified. It is one tester’s observation, not a measurement, but it checks something a screenshot cannot: whether the scene, the controls and the underlying state still agree after someone acts.

Why does Z.ai run the same 28 layers twice?

To get more reasoning out of the model without making it bigger. In a standard transformer, information passes through each layer once. GLM-5.4 sends it through one block of 28 layers twice, with the same learned weights both times, so the second pass can refine what the first produced. Z.ai’s diagram shows 26 layers first, then the looped block of layers 27 to 54, then 24 more.

The idea is not new, and Z.ai traces it to the Universal Transformer paper of 2018. Z.ai also says looped models trained from scratch still trail ordinary ones given the same training compute, so it converted its existing GLM-5 base model through further training instead of starting again.

The cost of looping is memory. As a model reads, it stores what it has processed in a key-value (KV) cache. A naive looped design would keep a separate full cache for each pass of the looped layers. In GLM-5.4 the second pass reuses most of the first pass’s cache and keeps only a 128-token sliding window of its own, so, in Z.ai’s words, an extra loop “only costs one sliding window of KV cache rather than a full context cache”. Per-token gates decide how much each pass writes back, and the second pass reuses the first pass’s choices about which earlier tokens to attend to.

On speed, Z.ai reports serving figures of up to 200 tokens a second off-peak and 70 to 80 at peak load on its own platform. Thinking time is less clear. Z.ai says looping cut answer length by 10 to 14% on most benchmarks in its 30B test, yet its list of the full model’s limitations starts with a tendency to “get caught in overly long ‘marathon thinking’ loops”. Long reasoning adds waiting time and billed output, and Z.ai has published no measured average for the flagship.

How good is GLM-5.4?

Z.ai says GLM-5.4 reaches “intelligence levels comparable to 2T-3T parameter models”, but it has published no benchmark scores for GLM-5.4 itself and no model card. Three sets of figures exist, and they measure different things.

The first is Z.ai’s own experiment on a 30-billion-parameter test model built to the same design. Both versions had the same number of parameters; the looped one used about 10% more training compute.

Table 1. Looping raised every score on Z.ai’s 30B test model, most of all in maths and science. These are not GLM-5.4 scores. Evaluated after long-context fine-tuning, with thinking on. Source: Z.ai GLM-5.4 technical report.

If the table extends beyond the screen, scroll sideways to view all columns.

Benchmark What it tests Without loop With loop Change (points) Answer length
AIME25 What it testsCompetition maths Without loop19.17 With loop30.42 Change (points)+11.3 Answer length2% shorter
GPQA-Diamond What it testsGraduate-level science Without loop47.58 With loop56.26 Change (points)+8.7 Answer length11.7% shorter
AA-LCR What it testsLong-context reasoning Without loop40.33 With loop47.67 Change (points)+7.3 Answer length9.7% shorter
MMLU-Pro What it testsBroad knowledge Without loop71.65 With loop75.05 Change (points)+3.4 Answer length14.9% shorter
IFBench What it testsFollowing instructions Without loop50.20 With loop53.47 Change (points)+3.3 Answer length13.0% shorter

The pattern fits Z.ai’s argument that the biggest gains come where chains of reasoning are longest. Z.ai says it validated the design at 1B, 4B, 30B and 750B parameters, but has published results for the 30B model only.

The second is Z.ai’s own head-to-head comparison, shown on its GLM-5.4 model page. Its Chinese documentation describes it as an internal test across 200 real coding scenarios. GLM-5.4 won 51.1% of comparisons with GLM-5.3, tied 25.7% and lost 23.1%. Against Moonshot’s Kimi K3.1 Pro it won 41.8% and lost 31.3%, and against DeepSeek V4.1 Flash it won 36.6% and lost 33.2%, with the rest ties. Z.ai has not published the tasks or how the results were judged, so these are its own claims, not measurements anyone else can repeat.

The third is a third-party result for the flagship itself. ModelDial’s coding leaderboard has added GLM-5.4 at max reasoning effort. ModelDial scores models on private test datasets in five areas, weighted into an overall score.

Table 2. On ModelDial’s tests GLM-5.4 is level with GLM-5.3 overall and matches GLM-5.3-Flash on visual aesthetics. All three models at max reasoning effort; scores out of 100; selected categories. Source: ModelDial Coding Rankings v2.

If the table extends beyond the screen, scroll sideways to view all columns.

Category GLM-5.4 GLM-5.3 GLM-5.3-Flash
Overall GLM-5.447.6 GLM-5.347.2 GLM-5.3-Flash34.5
Back-end engineering GLM-5.445.9 GLM-5.336.8 GLM-5.3-Flash30.0
Knowledge and reasoning GLM-5.455.0 GLM-5.370.0 GLM-5.3-Flash40.0
Front-end engineering (functionality) GLM-5.456.7 GLM-5.354.6 GLM-5.3-Flash32.7
Visual aesthetics GLM-5.426.0 GLM-5.323.0 GLM-5.3-Flash26.0

Overall, GLM-5.4 is barely ahead of GLM-5.3, a much narrower lead than Z.ai’s own win rates suggest: a clear gain in back-end engineering and a 15-point drop in knowledge and reasoning cancel out. For visual work, the comparison with Flash says more. GLM-5.4 scored far higher on front-end functionality, which ModelDial says covers usability across screen sizes and content lengths, keyboard operation and interface state, but exactly the same as Flash on visual aesthetics. ModelDial’s run of GLM-5.4 also finished in less than half GLM-5.3’s evaluation time (126 minutes against 280), though that figure mixes thinking length with serving speed. ModelDial calculates cost from API pricing, and its cost column for GLM-5.4 is blank.

The results are useful, but the tests are private, and ModelDial’s method page does not say its tasks give models screenshots to work from. They do not show how GLM-5.4 handles a screenshot-to-fix job like the enquiry button, that it beats GLM-5.3 in general, or that it can be called through OpenRouter. Artificial Analysis does not list GLM-5.4 on its models leaderboard.

Where can you use GLM-5.4?

In two places, and not yet in three others:

  • GLM Coding Plan, in supported tools. Yes, on Lite, Pro and Max. Z.ai’s Coding Plan FAQ says plan keys work only inside supported coding tools, and its guides cover ZCode, Claude Code and Cline among others.
  • Z.ai’s chat service. Yes: the technical report lists Z.ai Chat as a place to try it.
  • Z.ai’s standard API. Not yet. The technical report marks the API “Coming Soon”, Z.ai’s launch post on X says “API access will open after safety evaluation”, and Z.ai’s API pricing page has no GLM-5.4 price.
  • OpenRouter. Not listed in OpenRouter’s public model catalogue or on its Z.ai provider page.
  • Downloadable weights. Not yet. Z.ai’s Hugging Face page has no GLM-5.4 repository, and the technical report says Z.ai plans to release the weights “responsibly after completing necessary safety hardening”, with no date or licence.

Zhipu’s Chinese launch announcement, posted on its verified Weibo account, also names TRAE, WorkBuddy, Qoder, CatPaw and AutoClaw alongside ZCode and its own chat services, and repeats that the API will open after a safety assessment. We have not checked which of those tools offer GLM-5.4 to UK accounts, or on which plans.

Resellers have moved faster than Z.ai’s own API. AIHubMix lists a model called Coding GLM 5.4, names Z.ai as its provider and charges $0.06 per million input tokens and $0.22 per million output tokens (US list prices), with a free version capped at 100 requests a day. Z.ai’s own API is still closed, so it is not clear how that access is provided.

In Claude Code with a Coding Plan key, Z.ai’s set-up guide for switching models says to add these keys to ~/.claude/settings.json, keeping anything else already in the file, with Claude Code pointed at https://api.z.ai/api/anthropic:

"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 switches on the 1-million-token context, and /status shows which model is answering. Effort defaults to max; /effort changes it, and switching thinking off sets it to low rather than turning reasoning off. In Cline and other OpenAI-compatible tools, the same guide gives the base URL https://api.z.ai/api/coding/paas/v4 and the model name glm-5.4. Our Claude Code setup guide covers the rest of that tool.

Older subscriptions may differ. Z.ai’s plan update notice gives GLM-5.4 usage rates for Legacy Plan V2 and legacy Team plans, and Zhipu’s announcement names V2, V3 and team plans; neither mentions Legacy Plan V1. If your plan page says Legacy Plan V1, check that glm-5.4 works in your tool before switching a project over.

What does GLM-5.4 cost on the Coding Plan?

Whatever your plan costs. The individual monthly prices on Z.ai’s Coding Plan subscription page are $18 for Lite, $80 for Pro and $168 for Max, with 20% off for quarterly billing and 30% off for yearly. Z.ai shows these in US dollars; we have not checked what a UK checkout charges.

The plan meters use in credits. Z.ai’s Coding Plan overview gives Lite 10,000 credits a week, with no more than 2,000 in any five hours; Pro gets six times that and Max 14 times. Each model has its own credit rate per token, and the formula is simple: tokens multiplied by the model’s rate, divided by 10,000.

Table 3. The same session costs GLM-5.4 two thirds of GLM-5.3’s credits. Our arithmetic for one session of 10,000 uncached input tokens and 5,000 output tokens, before any tool charges. Source: Z.ai Coding Plan overview.

If the table extends beyond the screen, scroll sideways to view all columns.

Model Input rate Output rate Credits, standard rate Credits, off-peak
GLM-5.4 Input rate4.6 Output rate16 Credits, standard rate12.6 Credits, off-peak6.3
GLM-5.3 Input rate6.9 Output rate24 Credits, standard rate18.9 Credits, off-peak9.45
GLM-5.3-Flash Input rate2.3 Output rate8 Credits, standard rate6.3 Credits, off-peak3.15

For the same budget, that buys 50% more tokens on GLM-5.4 than on GLM-5.3, which is where the “50% more quota” in Z.ai’s announcement comes from. It is not 50% more weekly credits, because the allowance is unchanged. Nor is it 50% more finished jobs or 50% better work: a session that reasons for longer or needs a second attempt uses more tokens, and can cost more to finish.

Off-peak use costs half the credits. Peak hours are 14:00 to 18:00 Singapore time on weekdays, which is 06:00 to 10:00 in the UK while the clocks are on GMT, so an afternoon session in the UK counts as off-peak.

Should UK businesses use GLM-5.4?

If you already subscribe to the Coding Plan, GLM-5.4 is included at a lower credit rate than GLM-5.3, so trying it on work with nothing sensitive in it costs little. For visual jobs, compare it with Flash, which uses half the credits and matched it on visual aesthetics in ModelDial’s tests.

If you want it inside a client-facing product or workflow, wait for Z.ai’s standard API, its terms and its price. A hosted product depends on those, not on the weights licence, which matters only if you plan to run or redistribute the model yourself.

Two cautions apply either way. Z.ai has not published a safety or cyber evaluation of GLM-5.4, and outside assessments of GLM-5.3 describe GLM-5.3, not this model. And before client or personal data reaches any hosted model, check what the provider keeps, where and for how long, and under which terms. Where a provider is based is one input to that assessment, not the answer; our GLM-5.3 explainer sets out Z.ai’s terms.

Watch for the standard API and its price, a working OpenRouter listing, the weights and their licence, more independent results, and Z.ai’s next model: the technical report says “our next, significantly larger model” will build on GLM-5.4 and “will be ready soon”. If you want help choosing a model for a project in the meantime, talk to AIWIZ.

Explore
Drag