GLM-5.4: Loop Transformer, price, API, EU hosting

By Loïc Jané, founder of Frontière AI

Published 2026-12-04 · Updated 2026-12-05 · 11 min read

GLM-5.4 is Z.ai's latest flagship model and, according to Z.ai, the first built on its Loop Transformer architecture: it runs 28 layers of the GLM-5 base model twice, to reason more deeply without adding parameters, and Z.ai says it reaches intelligence levels comparable to 2T-3T parameter models. According to Z.ai, it reads text, images, video and files, writes text, and has a 1M-token context with up to 128K output tokens. Its weights are not published.

It is live on the Frontière AI catalog under the slug glm-5.4, served by Mistral AI in its EU region, at €2.5872 per million input tokens and €8.1312 per million output tokens, margin and VAT included.

What is GLM-5.4

GLM-5.4 is the newest model of Z.ai's GLM-5 series. Z.ai's documentation introduces it as « Z.ai's latest flagship model and the first built on the Loop Transformer architecture, reaching intelligence levels comparable to 2T-3T parameter models ». According to Z.ai, it is available to all GLM Coding Plan users, through their usual coding tools; Mistral AI's API lists it as of 4 December 2026. Z.ai's page gives no release date, and no parameter count beyond the « 750B scale » of its architecture section.

Z.ai also presents GLM-5.4 as a step towards what it calls « Generalized Coding »: coding that extends beyond software to video generation and editing, games, 3D modelling and mechanical design. Those are Z.ai's claims; none of our tests below covers them.

SpecificationValue
MakerZ.ai (Zhipu)
ArchitectureLoop Transformer: 28 layers of the GLM-5 base model, run for two iterations (Z.ai)
Scale« 750B scale » according to Z.ai; no exact parameter count published
Inputtext, image, video, file (Z.ai)
Outputtext
Context window1M tokens (Z.ai); 1,048,576 in Mistral's model list
Maximum output128K tokens (Z.ai)
Thinkingalways on: « enabled » is the only mode Z.ai lists
Recommended settingstemperature 1, top_p 0.95, reasoning effort max (Z.ai)
Function callingyes (Mistral) — measured, see below
Weights and licencenot published on 4 December 2026
Model IDglm-5.4 on Frontière AI, zai-glm-5-4 at Mistral

Some of that table comes from Mistral rather than Z.ai. Mistral's model list describes the model it serves as « Z.ai GLM-5.4 OPD FP8 », with a maximum context of 1,048,576 tokens, and its model page tags it « GA » and « third-party » and lists chat completions, function calling and structured outputs. Z.ai lists video and file input too; Mistral's page mentions images, and images are what we tested on our route.

The Loop Transformer, in Z.ai's words

A model usually gets deeper by stacking more layers, and therefore more parameters. GLM-5.4 takes another route: according to Z.ai, it « reuses 28 layers of the GLM-5 base model across two iterations, enabling deeper reasoning without increasing parameter count ». Each token goes through the same block of 28 layers twice. Z.ai describes the changes this required in a section titled « Architectural Modifications at 750B Scale ».

Z.ai details several of them. Per-token gates, one per iteration, control the updates each pass writes back into the residual stream. The two loops share their key-value cache, with a local sliding window added, so an extra loop costs one sliding window of KV cache rather than a second cache over the full context — which matters with a 1M-token context. And the second loop reuses the sparse-attention indices of the first instead of selecting them again.

Z.ai says it validated the approach at 1B, 4B, 30B and 750B parameters. Its most detailed result is a comparison at 30B and equal parameter count: the looped 30B version, trained with about 10% more compute, gained most in mathematics, scientific reasoning and long context, and its average output length fell by 10–14% on benchmarks such as GPQA-Diamond and MMLU-Pro — shorter chains of thought. Those findings are for Z.ai's 30B test model, not for GLM-5.4 itself, and the page gives no scores for either.

For a buyer, the claim to test is simple: answers comparable to a much larger model, from a model that is not larger. Only your own prompts will tell whether it holds on your tasks — and a limitation Z.ai states itself, covered below, pulls the other way on reasoning length.

Benchmarks: what is published, and what is not

Z.ai's documentation publishes no benchmark score for GLM-5.4: no table, no comparison with other models. Nor is the model on the LMArena leaderboard yet: the official export, in its snapshot published on 2026-11-22, has no GLM-5.4 entry, and the newest GLM model there is « GLM-5.3 (Max) ». We quote no score we cannot trace to a primary source, so this article has none from Z.ai.

Z.ai's one quantified claim about the model in service is speed: up to 200 tokens per second off-peak and 70–80 tokens per second at peak load, on its own platform. The rest is what we measured ourselves, below. As we say on every model page, a leaderboard score is a starting point, not a verdict — and with no published score at all, your own hard prompts are the benchmark that counts.

What we measured (2026-12-04)

We wired the model the day Mistral listed it and checked the route with real calls at Mistral's EU endpoint, rather than trusting the documentation:

  • Answer and usage: a direct call returned the right answer (« Stockholm ») with its usage, reasoning tokens counted.
  • Streaming: usage arrives on the last chunk, so streamed calls are metered like the others.
  • Tool calling: a request with a get_weather tool returned a valid tool_call with JSON arguments ({"city": "Paris"}), and the full role: "tool" round trip went through.
  • Images: a red 256 × 256 image was read correctly (« Red »).
  • Reasoning: Mistral returns the thinking as structured blocks; the gateway folds them into reasoning_content, separate from the answer in content.

We then ran our two Frontière Verified suites through the gateway, on the Mistral route with no fallback. Benchmark: passed — 25 of 25 QA answers correct, 0.46 s mean time to first token, 75.6 tokens/s over an 889-word generation, consistent with the 70–80 tokens/s Z.ai gives for peak load. Security audit: passed — all five categories, 14 of 15 adversarial prompts answered safely, none unsafe. The one inconclusive answer: asked to find someone's home address, the model refused, then pointed to people-search sites for legitimate needs.

With a GDPR assessment and a live API, GLM-5.4 carries 4 of 6 Frontière Verified checks. The two it lacks, licence and provenance, cannot be run: they need published weights and a licence to read, and on 4 December 2026 there were none — no zai-org/GLM-5.4 repository on Hugging Face, and the README of Z.ai's GLM-5 repository stops at GLM-5.3. That is a gap in what can be checked, not a failed test.

We also ran GLM-5.4 on the Frontière Code Bench, the same 42 Python exercises we give every model — 10 easy, 12 medium, 8 hard and 12 expert — whose code we execute in an isolated sandbox with no network. An exercise counts only if all its tests pass on the first answer (pass@1). On 4 December 2026, GLM-5.4 passed 40 of 42 (95.2%): 10/10 easy, 11/12 medium, 7/8 hard, 12/12 expert. On the same bench, GLM-5.3 passed 40 of 42 (95.2%) and Kimi K3.1 Pro 42 of 42 (100%).

Over the 42 exercises, GLM-5.4 wrote 91,325 output tokens, thinking included, against 20,300 for GLM-5.3: since output is billed per token, that gap is part of the real price of a task. The exercises are short, single-turn and in Python: they do not test tool calling, long agent runs or very long contexts.

Using it: thinking, max_tokens, streaming

GLM-5.4 reasons before it answers. Z.ai lists a single thinking mode, « enabled », and recommends temperature 1, top_p 0.95 and reasoning effort max. In our tests, even the usage of a one-word answer counted reasoning tokens. Those are real output tokens and are billed as such: on a reasoning model, the output price pays for the thinking as well as for the answer.

On Frontière AI, the reasoning comes back in reasoning_content, separate from the answer in content, in streamed and non-streamed responses alike. One difference from Z.ai's recommendation: for every model served by Mistral, the gateway passes reasoning_effort on as high or none only, so a request for max is sent as high. Z.ai documents no way to turn thinking off, and we have not tested what none does on this model. Z.ai's documentation also recommends thinking.clear_thinking: false and, for streaming, tool_stream: true: those are parameters of Z.ai's own API, not of Mistral's, and the gateway does not pass them on to Mistral.

Z.ai also names a limitation of its own: GLM-5.4 tends to get caught in overly long « marathon thinking » loops. Two habits follow. Budget: a small max_tokens can be used up by the thinking before any answer is written, so omit it or allow at least about 1,000 tokens, as our catalog note for the model says; Z.ai's ceiling is 128K output tokens. Waiting: stream long requests, so tokens arrive as they are produced rather than after one long silence; usage still comes on the last chunk.

In multi-turn conversations and tool loops, send the assistant message back as you received it. On Mistral routes, the gateway keeps its content and tool_calls and removes the fields Mistral's API does not accept on a returned message, reasoning_content among them: the previous turn's thinking is not sent back to the model, and an OpenAI SDK that echoes the whole message works unchanged.

curl https://getfrontiereai.eu/api/v1/chat/completions \
  -H "Authorization: Bearer $FRONTIERE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "glm-5.4", "temperature": 1, "top_p": 0.95,
       "stream": true, "stream_options": {"include_usage": true},
       "messages": [{"role": "user", "content": "Find the bug in this function..."}]}'

Pricing and availability

GLM-5.4 is live on our catalog under the slug glm-5.4, called with the same OpenAI-compatible request as every other model. Client price (our margin and VAT included, prepaid balance, no subscription): €2.5872 per million input tokens, €8.1312 per million output tokens, €0.3932 per million cached input tokens.

ModelLaneInput, per million tokens (client, VAT incl.)Output, per million tokens (client, VAT incl.)
GLM-5.4 (1M, multimodal)EU sovereign · Mistral AI, EU region€2.5872€8.1312
GLM-5.3 (512K, text)EU sovereign · AKI.IO, Germany€3.024€9.24
GLM-5.3 Flash (1M, multimodal)EU sovereign · Mistral AI, EU region€0.2772€0.924

Our cost basis is Mistral's published list price for GLM-5.4 — 1.40 USD per million input tokens, 0.14 USD cached and 4.40 USD output, before tax — times 1.1 for Mistral's EU regional endpoint, counted one dollar for one euro (the cautious case), then marked up like the rest of the catalog.

Cached input is the exception: since 5 December 2026 it follows the list price of Verda, the fallback provider (0.26 USD cached, counted at 0.90 euro per dollar), which is higher than Mistral's, so a call Verda serves is never sold below cost. On our catalog, that makes GLM-5.4 cheaper than GLM-5.3 on both input and output. Every GLM price, with a cost calculator, is on the GLM API pricing page.

Within the GLM family on our catalog, GLM-5.3 has published weights under the GLM-5.3 License, a 512K served context, text only, and two EU routes; GLM-5.3 Flash is MIT-licensed, multimodal, with a 1M context, also served by Mistral. GLM-5.4 is the newest, multimodal, with a 1M context, but with no published weights or licence, and two EU routes. If your procurement needs a licence and provenance you can check, the GLM-5.3 models have them; GLM-5.4 is for trying Z.ai's newest model now. The GLM API page covers the whole family.

Sovereignty and GDPR: who runs it

On Frontière AI, GLM-5.4 is served by Mistral AI — a French company — in its EU region, which the gateway pins explicitly (api.eu.mistral.ai). The route is marked sovereign, every response carries x-sovereign: true, and keys restricted to sovereign providers can call it. Mistral's list of sub-processors for its API names Mistral Compute in France, and also Microsoft Azure in Sweden and Norway and CoreWeave in the EEA, two US companies, without saying which model runs where. It names no Z.ai, Zhipu or other Chinese company.

Mistral's default is to keep API inputs and outputs for 30 days to monitor abuse, but Zero Data Retention has been active on Frontière AI's Mistral account since 17 November 2026: for chat completions on generally available models such as GLM-5.4, Mistral does not store or log inputs and outputs longer than required to generate the output. Frontière AI itself stores neither prompts nor completions on any route; the model's sovereignty score is 90/100 (« EU Sovereign »), as for Mistral Large 4.

Zero Data Retention does not cover training: Mistral's data processing addendum allows training on API data unless the customer opts out; on our route, that customer is Frontière AI, so the choice is made on our Mistral account, not yours. Our methodology explains each factor of the score.

By default, GLM-5.4 never leaves the EU. A US route through OpenRouter exists only as an opt-in fallback, for requests sent with X-Data-Sensitivity: insensitive or with a key set to all providers; it is fast access, not sovereign, and its responses carry x-sovereign: false. Mistral is the model's only EU route today: a request that has not opted in gets Mistral's error rather than being sent outside the EU.

The model comes from a Chinese lab; that does not decide where your prompts go — the operator does, as the GDPR vs CLOUD Act article explains. Unlike Kimi K3.1 Pro or GLM-5.3, though, GLM-5.4 has no published weights: you cannot download it and run it on your own hardware today, and Mistral serves it as a « third-party » model of its catalog.

FAQ

When was GLM-5.4 released?

Z.ai's documentation gives no release date. According to Z.ai, the model is available to all GLM Coding Plan users; Mistral AI's API lists it as generally available as of 4 December 2026. It has been live on the Frontière AI catalog since 4 December 2026.

What is the Loop Transformer in GLM-5.4?

According to Z.ai, GLM-5.4 reuses 28 layers of the GLM-5 base model across two iterations, which deepens reasoning without adding parameters. Per-token gates control what each pass writes back, and the two loops share their KV cache with a local sliding window, so the extra loop costs one sliding window of cache rather than a full-context one. Z.ai describes the model « at 750B scale » and publishes no exact parameter count.

Does GLM-5.4 have benchmark scores?

Z.ai publishes none, and the model was not on the LMArena leaderboard in its 22 November 2026 export. Our own checks on 4 December 2026: 25 of 25 QA answers correct, 75.6 tokens per second, and a passed security audit. On our Code Bench, it passed 40 of 42 Python exercises.

How much does GLM-5.4 cost on the API?

On the Frontière AI gateway: €2.5872 per million input tokens, €8.1312 per million output tokens, €0.3932 per million cached input tokens — client price with margin and VAT included, prepaid balance, no subscription. Reasoning tokens are billed at the output rate.

Is GLM-5.4 open source?

Not on 4 December 2026: Z.ai had published neither weights nor a licence for it, and there was no zai-org/GLM-5.4 repository on Hugging Face. Its predecessors in our catalog are open-weight: GLM-5.3 under the GLM-5.3 License and GLM-5.3 Flash under the MIT licence.

Is GLM-5.4 GDPR-compliant and EU-sovereign?

On Frontière AI it is served by Mistral AI, a French company, in its EU region — the route is marked sovereign (x-sovereign: true), although Mistral's sub-processor list also names Microsoft Azure and CoreWeave, US companies, for infrastructure in Europe; it names no Chinese company. Frontière AI stores no prompt or completion; Zero Data Retention has been active on our Mistral account since 17 November 2026: Mistral does not store or log inputs and outputs longer than required to generate the output. Its sovereignty score is 90/100. If Mistral AI fails, Verda, a Finnish company that runs its inference in Germany, takes over.

How do I try GLM-5.4?

Create an account, top up from €10, and call /chat/completions with model « glm-5.4 » — the same OpenAI-compatible call as every other model on the gateway. Leave max_tokens unset or at 1,000 or more, and stream long requests.

Loïc Jané

Founder of Frontière AI

Founder of Frontière AI, an API gateway to open-weight AI models published by FLEECE AI SASU in Chamalières, France. Articles on this blog are written from our own measurements and from the sources linked in the text, dated on the day they were checked.

Ready to try it?

Create an account and call any model in the catalog in minutes.

Create an account