GLM-5.4: what it is and how to use it today
2026-11-23 · 4 min read
GLM-5.4 is the new coding model from Z.ai, the Chinese lab behind the GLM family, and it launched today. You can use it right now if you pay for Z.ai's GLM Coding Plan, which starts at $18 a month. The API and the open weights are not out yet.
@Zai_org announced it on X as "Generalized Coding with Our First Loop Transformer." The post makes three claims: the model loops existing layers of the GLM-5 base for deeper reasoning, it pushes past ordinary coding into video, games, 3D shaders and CAD, and it can now see images.
What a Loop Transformer is
Most models pass your prompt through their layers once. According to Z.ai's documentation, GLM-5.4 "reuses 28 layers of the GLM-5 base model across two iterations." The same weights get a second pass at the problem, so the model reasons deeper without getting bigger.
Z.ai says it did not train this from scratch. It took the existing 750B-parameter base and kept training it with the loop in place. The company claims the result lands at an intelligence level comparable to models with 2 to 3 trillion parameters. That number is Z.ai's own. TestingCatalog's launch coverage notes that no benchmark scores have been published yet, so treat it as a claim until someone outside the company tests it.
The docs do admit one weakness. The model "tends to get caught in overly long 'marathon thinking' loops." I read that as: expect it to chew on simple requests longer than it should.
What it can do
| GLM-5.4 | |
|---|---|
| Input | Text, images, video, files |
| Output | Text |
| Context window | 1M tokens |
| Max output | 128K tokens |
| Speed | Up to 200 tokens/s off-peak, 70 to 80 at peak |
| Available in | GLM Coding Plan, ZCode, Z.ai Chat |
| API | After Z.ai finishes a security assessment |
| Open weights | Planned after safety hardening, no date |
Vision is the practical upgrade. A coding model that can look at a screenshot can compare what it built against what you asked for. Z.ai's three demos lean on that: a generated music video, a six-axis robotic arm modeled in FreeCAD, and a 3D bird-watching scene written in GLSL shaders.
How to try it
The Coding Plan has three tiers, Lite, Pro and Max. Z.ai's docs list Lite at 2,000 credits per five hours and 10,000 per week, Pro at 12,000 and 60,000, and Max at 28,000 and 140,000. The only price I could confirm is the $18 starting point. If you are on a weekly quota, you get 1.5 times as much GLM-5.4 usage as you did with GLM-5.3.
The plan plugs into tools you may already run. Z.ai's quick-start names Claude Code, Cline, OpenCode, Cursor and several others. For Claude Code, you point it at Z.ai's endpoint and pick the new model:
export ANTHROPIC_BASE_URL="https://api.z.ai/api/anthropic"
export ANTHROPIC_AUTH_TOKEN="your-zai-api-key"
export ANTHROPIC_DEFAULT_SONNET_MODEL="glm-5.4[1m]"
export ANTHROPIC_DEFAULT_OPUS_MODEL="glm-5.4[1m]"
In other tools the model name is plain glm-5.4. Once you are in, give it something visual, since that is what changed. A prompt like this is a fair first test:
Here is a screenshot of our booking page. Rebuild it as a single HTML file, then list every place your version differs from the screenshot.
If it spends five minutes thinking about a one-line fix, you have met the marathon problem. Give simple edits to a smaller model. If you are new to running Claude Code this way, our Code Mode walkthrough covers the settings side.
My read
The weights are what I'm waiting on. GLM-5.3 shipped as open weights, and the security conversation that followed is why we wrote about GLM-5.3 and exploit writing. This time Z.ai is holding both the API and the weights until its safety checks are done. It has not said how long that will take.
The loop idea is also cheap to copy. If a second pass through layers a lab already trained buys this much, other labs will try it, and the open models you can run yourself get better without needing bigger hardware. Inkling 2 Mini showed last week how much fits on a 32GB Mac already.
Two cautions before you put client work through it. Your code goes to Z.ai's servers, so check that against whatever data rules you operate under. And with no published benchmarks, the only test that counts is your own repo.
What this means for a small business
A capable coding model for $18 a month keeps pushing the cost of custom software down. The internal tool you priced out two years ago, the one that syncs your booking system with your invoicing, is a much smaller project now. Picking a model is the easy part. Knowing which of your processes is worth automating is harder.
That is what New Face Design's free process audit is for. We look at where your team's hours go and tell you which fixes would pay for themselves, whichever model ends up doing the work.