Skip to content
What is GLM-5.4? Z.ai's new coding model, and how to get it
Back to Blog
#AI models#GLM-5.4#GLM 5.4 pricing#GLM 5.4 API#GLM Coding Plan#GLM 5.4 vs GLM 5.3

What is GLM-5.4? Z.ai's new coding model, and how to get it

Zohaib Masood

GLM-5.4 is Z.ai's new flagship model, released on 23 November 2026 for coding and long agent tasks. You can use it today in Z.ai's chat, in its ZCode tool and through the GLM Coding Plan, which starts at $18 a month. You cannot yet build a product on it: the API and the open weights are both still to come.

So it is worth trying as a coding assistant for your own team now. For software you ship to customers, wait for the API price, or use GLM-5.3, which is already on the API.

What is new in GLM-5.4?

It thinks more per token without getting bigger. GLM-5.4 is a Loop Transformer: it runs 28 of its layers twice on each pass, reusing the same weights. Z.ai built it by continuing to train the GLM-5 base model, at 750B parameters, and says the result is "comparable to 2T-3T parameter models". That is the vendor's claim, and the launch post gives no benchmark scores for GLM-5.4 itself to back it.

Z.ai's diagram of GLM-5.4: a 28-layer block runs as loop pass 1, then again as loop pass 2 with the same weights
The loop: layers 27 to 54 run once, then again with the same weights. Diagram: Z.ai, GLM-5.4 launch post.

What it does publish is a test on a smaller 30B model of the same design. There, looping helped most on maths, science and long-context tasks, and cut average output length by 10-14% across most benchmarks. Read it as evidence for the method, not a score for the model you would use.

The specifications, from the docs on 25 November 2026:

  • Input: text, images, video and files. Output: text.
  • Context: 1M tokens, with up to 128K tokens of output.
  • Speed: up to 200 tokens a second off-peak, and 70-80 at peak load, according to Z.ai.
  • For developers: thinking mode, streaming, function calling, context caching and structured output such as JSON.

Z.ai calls the aim "Generalized Coding": using code to do work that is not software, such as CAD models in FreeCAD, 3D scenes, games and video. Those are its own demos.

Where does it fall short?

It can overthink. The launch post says so directly:

Most notably, it tends to get caught in overly long "marathon thinking" loops, though this prolonged reflection and self-correction does consistently improve accuracy beyond its parameter count.

Z.ai, GLM-5.4 launch post

For you, that means slower answers and more output tokens on simple jobs. Give it hard, long tasks and keep a smaller model for quick edits.

Independent results are thin. One early tester on Hacker News, simonw, ran a drawing prompt and found the output "pretty similar" to GLM-5.3. One prompt settles nothing, but it is a reason to test on your own repository before you switch.

How do you get it, and what does it cost?

Subscribe to the GLM Coding Plan and use it inside a supported agent tool. Z.ai lists ZCode, Claude Code, Codex, OpenCode and others, and every plan includes GLM-5.4. Usage is metered in credits, and GLM-5.4 uses fewer of them than GLM-5.3. These are the credit multipliers in the docs, read on 25 November 2026:

ModelInputCached inputOutput
GLM-5.44.61.116
GLM-5.36.91.724

Credits are tokens times the multiplier, divided by 10,000. Take a coding run with 20,000 new input tokens, 180,000 cached and 30,000 output:

(20,000 × 4.6 + 180,000 × 1.1 + 30,000 × 16) ÷ 10,000 = 77 credits

The Lite plan allows 2,000 credits every five hours and 10,000 a week, so about 25 of those runs per window and 129 a week at the peak rate. Off-peak usage costs half. Peak is Monday to Friday, 14:00-18:00 Singapore time (06:00-10:00 UTC).

There is no API price yet. Z.ai's docs say the API opens "upon completion of the security assessment", and the weights follow "safety hardening", with no date for either. On 25 November GLM-5.4 was not on Z.ai's API price list or on OpenRouter.

Should your business use it now?

Try it if your developers already work in one of those tools and you can afford a month's plan to compare it on real tickets. Check the plan's terms before you connect it to anything beyond them.

Do not plan a customer-facing feature around it yet. If you need a GLM model in a product today, GLM-5.3 costs $1.40 per million input tokens and $4.40 per million output on the API, and its weights are on Hugging Face. Keep the model name in one setting so you can swap when GLM-5.4 opens.

If you want help choosing a model and building it into your product or workflow, see what we build or tell us about the job.

Sources