GLM-5.4 is now available on Crusoe Cloud
Z.ai's GLM-5.4, its first Loop Transformer flagship, is live on Crusoe Cloud through Serverless Inference. Here is what the looped architecture changes, what you can build with it, and how to send your first request through an OpenAI-compatible API.

- GLM-5.4, Z.ai's first Loop Transformer model, is now available on Crusoe Cloud through Serverless Inference, with no GPUs to provision.
- GLM-5.4 runs a shared block of 28 layers twice per token, which Z.ai says matches 2 to 3 trillion-parameter models from a 750 billion-parameter base.
- GLM-5.4 on Crusoe Cloud is built for agentic coding, CAD scripting and game prototyping, with a 1 million-token context window.
GLM-5.4, Z.ai's first flagship model built on a Loop Transformer architecture, is now available on Crusoe Cloud. You can call GLM-5.4 today in Crusoe Intelligence Foundry, with no GPUs to provision or manage.
GLM-5.4 adds vision and introduces what Z.ai calls Generalized Coding, where the model writes code to build things that are not software, such as games, video, 3D scenes and CAD models.
Crusoe is a day-zero launch partner for GLM-5.4, delivering instant access on Serverless Inference. Our engineers configured the model on Crusoe's inference engine so it runs smoothly from the first request. This post covers what is new in the model, what you can build with it and how to get started.
What is new in GLM-5.4
A Loop Transformer for deeper reasoning. In a standard transformer, each layer runs once per forward pass. GLM-5.4 runs a shared block of 28 layers twice, so the second pass refines the work of the first. The model gains reasoning depth without adding parameters. Z.ai says GLM-5.4 reaches intelligence levels comparable to models with 2 trillion to 3 trillion parameters, on a base model at the 750 billion-parameter scale.
Vision for visual coding. GLM-5.3 was text only. GLM-5.4 accepts text and images as input, so it can work from a screenshot, a mockup or a diagram.
Long context for long tasks. GLM-5.4 supports a 1 million-token context window and a maximum output length of 128,000 tokens. That is enough room for a large codebase, its documentation and a long agent history in one session.
Measured gains from the loop. Z.ai tested the design on a 30 billion-parameter model with the same architecture as the GLM-5.4 base. With identical parameter counts and about 10% more training compute, the looped version showed clear gains. The largest came in math, scientific reasoning and long-context tasks. Average output length also dropped 10% to 14% on benchmarks such as GPQA-Diamond and MMLU-Pro, because part of the reasoning moves from output tokens into the loop.
What you can build
Z.ai frames GLM-5.4 around Generalized Coding, the idea that code can build far more than traditional software development produces. Its launch demos point to work your team can hand to the model today.
Beyond software
- Mechanical and robotics design. GLM-5.4 writes the scripts that drive CAD tools and maintains global logical consistency across long chains of dependent constraints. Z.ai's demo models a six-axis robotic arm to engineering grade with FreeCAD and Blender.
- Game prototyping. Describe the game and get a playable build. Z.ai's demo covers character movement, physics, maps, combat and art assets in one project.
- Video and motion content. The model renders visuals through code, which your team can version and edit like any source file. Z.ai's demo is a self-narrated music video called "Hello World," with audio from a separate music model.
- Interactive 3D scenes. GLM-5.4 generates geometry and custom shaders for scenes that run in real time. Z.ai's demo is a bird-watching scene built from mathematical geometry and GLSL shaders.
For software teams
- Screenshot to fix. Give the model a screenshot of a broken layout with the component source. It reads both and writes the change.
- Code review and security testing. Add GLM-5.4 as a second reviewer before release. Z.ai positions the model for cybersecurity work, building on GLM-5.3.
- Long-running engineering agents. GLM-5.4 holds a large repository in context and works through large-scale software engineering tasks with multi-step tool calls.
These tasks share one trait. Each is built on multi-step causal chains, where one wrong step breaks everything after it. That is the kind of work the multi-pass loop is built for. As with any generated design or code, test the output in your own tools before you rely on it.
Configured to run smoothly on Crusoe Cloud
A looped model asks more of the serving stack than a standard one. In GLM-5.4, 28 layers run twice for every token. At a 1 million-token context, the key-value (KV) cache dominates memory. Z.ai designed the model to keep that cost contained with a hybrid KV cache. The second loop reuses the sparse cache entries selected by the first loop's indexer and keeps its own newly generated KV entries only for a local sliding window. This cross-loop KV sharing avoids storing a full context cache for each pass.
Crusoe's inference engine, powered by MemoryAlloy™ technology, delivers low latency and high throughput for demanding agentic AI workloads at scale. With Serverless Inference, you get that performance through an API call, without setting up or managing GPU infrastructure.
Get started
GLM-5.4 works with any OpenAI-compatible client.
- Open Crusoe Intelligence Foundry in the Crusoe Cloud console and select Models.
- Click Get API Key, then Create.
- Point your client at the Crusoe endpoint and call the model.
Three settings help you get the most from the model.
- Set the reasoning effort for the task. GLM-5.4 can think for a long time on hard problems. Z.ai recommends a lower effort level for small, well-scoped edits. Save the highest level for work that needs it.
- Stream responses and allow generous timeouts. Long agent runs can outlast the default timeout in many clients. The example above sets both.
timeout=1800lets the client wait up to 30 minutes for the model, in place of the OpenAI SDK default of 10 minutes.reasoning_effort="high"sets how much the model reasons before it answers. Lower it for small edits and raise it for hard problems. Withstream=True, tokens arrive as the model writes them, so you can watch progress during a long run. - Right-size the context. Z.ai recommends a 512,000-token window in coding clients for better results, even though the model supports more.
See the pricing page for current rates.
What's next
GLM-5.4 is available now on Serverless Inference. Experience GLM-5.4 today using Crusoe Intelligence Foundry, or talk to our team about Tailored Deployments for bespoke optimization. Stay tuned for expanded capabilities including Self-Serve Deployments and Serverless Fine-Tuning.
New users can claim $5 in complimentary credits to get started.
Frequently
asked questions
How do looped transformers work?
A looped transformer runs the same block of layers more than once per forward pass. Each pass refines the work of the one before, so the model gains reasoning depth without adding parameters. GLM-5.4, Z.ai's first Loop Transformer model, runs a shared block of 28 layers twice. Z.ai says this gives its 750 billion-parameter base intelligence comparable to models with 2 trillion to 3 trillion parameters. GLM-5.4 is available on Crusoe Cloud.
Is GLM-5.4 a coding model?
Yes. GLM-5.4 is Z.ai's flagship model, built for agentic coding and what Z.ai calls Generalized Coding, where the model writes code to build games, video, 3D scenes and CAD models. In Z.ai's internal evaluation of 200 real-world coding scenarios, it stood out in visual coding, visual replication and long-horizon tasks. Developers can run GLM-5.4 on Crusoe Cloud through Serverless Inference.
What is Serverless Inference?
Serverless Inference lets developers call an AI model through an API without provisioning or managing GPUs. The provider runs the infrastructure behind each request. Serverless Inference in Crusoe Intelligence Foundry serves models such as GLM-5.4 on Crusoe's inference engine, powered by MemoryAlloy™ technology. The API is OpenAI-compatible, so existing clients only need to point at the Crusoe endpoint.
How do I get a GLM-5.4 API key?
GLM-5.4 on Crusoe uses a Crusoe Inference API key. To create one, open Crusoe Intelligence Foundry and select Models. Click Get API Key, then Create. The key works with any OpenAI-compatible client pointed at the Crusoe inference endpoint.



