A stack of paper layers with a magenta arrow looping back through them beside a server rack, on a navy contour-line background.

Mistral AI Adds Z.ai's GLM-5.4 Loop Transformer Model to Mistral Cloud

Mistral AI now serves Z.ai's GLM-5.4, a coding and agent model that runs part of its network twice to reason more deeply, with a 1 million-token context window on European infrastructure.

By Aileron Daily9:04 am PT3 min read

Mistral AI has added GLM-5.4, Z.ai's latest flagship model for coding and agentic work, to Mistral Cloud on day zero, serving it from European infrastructure. It costs $1.40 per million input tokens and $4.40 per million output tokens, the same list price as GLM-5.3, and customers already on GLM-5.3 can switch without changing APIs.

Z.ai built GLM-5.4 as its debut Loop Transformer, an architecture meant to deepen reasoning while the parameter count stays the same.

How the GLM-5.4 Loop Transformer works

In a standard Transformer, text passes through each layer once. A Loop Transformer instead sends it through a block of layers that share weights more than once, each pass improving on the last. GLM-5.4 takes 28 layers of its GLM-5 base model and runs them twice: the first pass gathers the overall context, and the second reuses that state to refine the answer.

Z.ai says the result reaches intelligence comparable to models with 2 trillion to 3 trillion parameters, on a 750 billion-parameter base. In its test of a 30 billion-parameter model with the same design, looping cut average output length by 10% to 14% on most benchmarks, mostly through shorter chains of thought. The lab's reading is that part of the reasoning moves out of written tokens and into the extra depth of the loop.

Running layers twice would normally multiply the memory a model holds for a long conversation, because each loop would keep a full cache. GLM-5.4's second loop instead reuses the first pass's cache and attention indices, adding only a small local sliding window of its own. Z.ai says that keeps the deployment cost increase over GLM-5.3 under control even at 1 million tokens of context.

What GLM-5.4 offers on Mistral Cloud

  • Context window: up to 1 million tokens, with up to 128,000 output tokens.
  • Inputs: text and images, so agents can work from UI screenshots and architecture diagrams.
  • Features: thinking mode, function calling, context caching and structured output.
  • Price: $1.40 per million input tokens, $0.14 per million cached input tokens and $4.40 per million output tokens.
  • Deployment: on demand, committed usage or dedicated capacity.
  • Controls: zero data retention, EU endpoints and priority throughput.
  • Speed: up to 200 tokens per second off-peak and 70 to 80 at peak load, by Z.ai's figures.

Why Mistral is selling another lab's model

Mistral Cloud combines Mistral's own models with selected third-party open-weight models behind one API on European infrastructure. GLM-5.4 now sits beside Mistral Large 4 as a top option there for coding and agentic work. Mistral points it at three jobs: coding agents working across large codebases, multi-step agents that plan and call tools, and visual coding that starts from a screenshot or a diagram.

Z.ai frames the model as a step toward what it calls Generalized Coding, where code becomes the basis for a much wider range of tasks. It is also open about a weakness: GLM-5.4 tends to fall into overly long marathon thinking loops. That extra self-correction improves accuracy, but on a service billed by the output token it also means longer and costlier answers on hard problems.

What it means for teams running coding agents

The comparison to 2 trillion to 3 trillion-parameter models is Z.ai's own. The concrete offer is simpler to check: a long-context coding model with image input, at GLM-5.3's price, run with zero data retention on EU endpoints. Z.ai says its next model will be significantly larger.

The facts

  1. Mistral Cloud now offers GLM-5.4, Z.ai's latest flagship model for coding and agentic work.

  2. GLM-5.4 joined Mistral Cloud on day zero and is available now.

  3. Mistral serves GLM-5.4 from its European infrastructure.

  4. Mistral Cloud offers Mistral's own models and selected third-party open-weight models through one API on European infrastructure.

  5. Customers already using GLM-5.3 can reach GLM-5.4 through the same Mistral Cloud API.

  6. GLM-5.4 sits alongside Mistral Large 4 as a top option on Mistral Cloud for coding and agentic work.

  7. GLM-5.4 is the first model built on Z.ai's Loop Transformer architecture, which adds reasoning depth without adding parameters.

  8. In a standard Transformer each layer runs once per forward pass, while a Loop Transformer runs a group of layers that share weights several times, refining the result of the previous pass.

  9. GLM-5.4 runs 28 layers of the GLM-5 base model twice.

  10. The first pass builds the overall context and the second pass reuses that state to refine the output.

  11. Z.ai says GLM-5.4 reaches intelligence comparable to models with 2 trillion to 3 trillion parameters.

  12. GLM-5.4 has a 750 billion-parameter base.

  13. Keeping a full memory cache for each loop would multiply memory use, so GLM-5.4's second loop reuses the first pass's cache and adds only a local sliding window of its own.

  14. The second loop reuses the attention indices the first loop produced, adding no indexing overhead.

  15. Z.ai says these choices keep GLM-5.4's deployment cost increase over GLM-5.3 under control at 1 million tokens of context.

  16. In Z.ai's test on a 30 billion-parameter model of the same design, looping cut average output length by 10% to 14% on most benchmarks, mostly through shorter chains of thought.

  17. Z.ai says part of the reasoning moves from written-out tokens into the depth of the loop.

  18. GLM-5.4 has a context window of up to 1 million tokens and can output up to 128,000 tokens.

  19. GLM-5.4 accepts image input, so agents can work from UI screenshots and architecture diagrams.

  20. GLM-5.4 supports thinking mode, function calling, context caching and structured output.

  21. On Mistral Cloud, GLM-5.4 costs $1.40 per million input tokens, $0.14 per million cached input tokens and $4.40 per million output tokens, the same list price as GLM-5.3.

  22. Customers can use GLM-5.4 on demand, with committed usage or with dedicated capacity.

  23. Mistral serves GLM-5.4 with zero data retention, EU endpoints and priority throughput.

  24. Mistral lists coding agents across large codebases, multi-step agents that plan and call tools, and visual coding from screenshots or diagrams as uses for GLM-5.4.

  25. Z.ai calls GLM-5.4 a step toward Generalized Coding, in which code becomes the basis for solving a much wider range of tasks.

  26. Z.ai says GLM-5.4 tends to fall into overly long marathon thinking loops, though the extra self-correction improves accuracy.

  27. Z.ai says GLM-5.4 reaches up to 200 tokens per second off-peak and 70 to 80 tokens per second at peak load.

  28. Z.ai says its next model will be significantly larger.

In their words

What people in AI posted about this story

Charles Frye on X

Developer advocate, Modal

Quoting @modal: GLM 5.4 is the largest loop transformer model released to date, and is available now on Modal for inference and post-training. The loop transformer architecture translates to higher efficiency, requiring fewer tokens t…

➿

Questions and answers

What is GLM-5.4 on Mistral Cloud?

GLM-5.4 is Z.ai's latest flagship model for coding and agentic work, now offered on Mistral Cloud from European infrastructure. It has a context window of up to 1 million tokens, up to 128,000 output tokens and image input, and Mistral serves it with zero data retention and EU endpoints.

How much does GLM-5.4 cost on Mistral Cloud?

GLM-5.4 on Mistral Cloud costs $1.40 per million input tokens, $0.14 per million cached input tokens and $4.40 per million output tokens, the same list price as GLM-5.3. Customers can use it on demand, with committed usage or with dedicated capacity.

How does the GLM-5.4 Loop Transformer work?

The GLM-5.4 Loop Transformer runs 28 layers of the GLM-5 base model twice. The first pass builds the overall context and the second reuses that state to refine the output, which Z.ai says adds reasoning depth without adding parameters. The second loop reuses the first pass's cache and attention indices to limit memory use.

How powerful is Z.ai GLM-5.4?

Z.ai says GLM-5.4 reaches intelligence comparable to models with 2 trillion to 3 trillion parameters, on a 750 billion-parameter base. Z.ai also says GLM-5.4 tends to fall into overly long marathon thinking loops, though the extra self-correction improves accuracy.

Can GLM-5.3 customers on Mistral Cloud switch to GLM-5.4?

Mistral Cloud customers already building with GLM-5.3 can reach GLM-5.4 through the same Mistral Cloud API, at the same list price. GLM-5.4 supports thinking mode, function calling, context caching and structured output.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.