---
id: 18973
lang: en
title: "Z.ai opens GLM-5.4 API: its own tests show it beating GLM-5.3 on 51.1% of coding tasks"
published_at: "2026-12-02 14:29:09"
source_name: "Habr AI"
source_url: "https://habr.com/ru/companies/selectel/articles/1115130/?utm_campaign=1115130&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/18973"
categories: ["llm"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Z.ai opens GLM-5.4 API: its own tests show it beating GLM-5.3 on 51.1% of coding tasks

> **Краткая суть (BLUF):** Z.ai has opened the GLM-5.4 API, so the model can now be used with pay-per-token billing, even though it was available only through the Coding Plan subscription for nine days. In 200 internal coding scenarios, it beat GLM-5.3 in 51.1% of cases and lost in 23.1%, but the company ran the tests itself. The price is unchanged, so switching requires only a model name change. For complex code edits, it is worth testing on your own tasks, while cheaper models are a better fit for chat.  • Price: $1.40 per million input tokens and $4.40 per million output tokens • Cached input: $0.26 per million, nearly 5.4 times cheaper than regular input • KingBench 4: 7th place out of 19, but the run took 431 minutes

Imagine you have an agent in production that edits code on GLM-5.3, and a new version, GLM-5.4, comes out. Until now, it was available only to Coding Plan subscribers, so you could not try it in your service. On December 2, nine days after launch and a safety review, Z.ai opened the model through the standard pay-per-token API. You can connect to it, for example, through the Selectel AI router. The headline figure of this story is 51.1%. That is how often, across 200 internal programming scenarios, GLM-5.4 produced a better result than GLM-5.3 (in 25.7% of cases the results were equal, and in 23.1% the new version lost). Z.ai ran the tests itself, so the figure should be checked against your own tasks.

## What changed with the launch

The model identifier in the Z.ai API is glm-5.4. In the documentation it is listed first among the text models and is selected by default. The maximum output is 128,000 tokens. Reasoning depth is set with the values low, high, and max. For GLM-5.4, Z.ai recommends temperature 1, top_p 0.95, and reasoning_effort max.

The other parameters for text requests match GLM-5.3, so migration comes down to replacing the model name in your config. In the AI router catalog, the model carries a vision label, meaning you can send images in requests. Access runs through an OpenAI-compatible API, so in an existing client you only need to change the base URL and specify the alias z-ai/glm-5.4.

## What the tests show

Z.ai has still not published a table of benchmark scores. It has only released a chart of pairwise comparisons: two models solve the same task, and the results are compared to see which one is better. That works out to almost every second win and almost every fourth loss, and the company itself did the counting.

Independent measurements have appeared. The blogger and developer AICodeKing placed GLM-5.4 seventh out of 19 in the KingBench 4 benchmark. The model scored 33.2 out of 60 against 27.5 for GLM-5.3. But it is not fast: the run took 431 minutes and 1,128 steps, while Google's Gemini 4 Neon took 109 minutes and 244 steps. This was a single run rather than a controlled measurement, so it is too early to draw firm conclusions.

Coding Plan subscribers who tried the model from the first days reported another problem: at maximum reasoning effort, runs sometimes get stuck in loops.

## Price and how to approach it

GLM-5.4 costs the same as GLM-5.3, 5.2, and 5.1: $1.40 per million input tokens, $0.26 per million cached tokens, and $4.40 per million output tokens. GLM-5 is cheaper: $1.00, $0.20, and $3.20. Cache storage is currently free, but Z.ai describes this condition as time-limited.

Cached input is nearly 5.4 times cheaper than regular input. A typical agent request with 50,000 input tokens and 2,000 output tokens costs about $0.079. If 40,000 of the input tokens hit the cache, the cost is about $0.033. For agents that repeatedly run over the same long context, the difference is significant.

There is a catch. The price per million tokens does not change, but the real cost of a task can rise if the model thinks for a long time in max mode. Token usage at that effort level should be monitored separately.

## What to do about it

- If your agent already runs on GLM-5.3, substitute glm-5.4 and run your own set of tasks. This is a question of an evening, not a week.
- The new model makes sense where quality matters more than speed: complex code edits and long agentic tasks.
- For chat and bulk text processing, it is better to stay with cheaper models.
- Compare not only quality but also run time and token count: that is where GLM-5.4 may turn out to be expensive.

Bottom line: there is no strong evidence of superiority yet. Z.ai's internal test shows an advantage in roughly half the cases, while an independent run puts the model seventh out of 19 with slow performance. But the barrier to entry is nearly zero: the price is unchanged, the parameters match, and the API is compatible with OpenAI. Testing the model on your own data is cheaper than arguing about it based on someone else's charts.

The material was published on Habr and is partly promotional: the source is the Selectel blog, which sells access to models through its AI router.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/companies/selectel/articles/1115130/?utm_campaign=1115130&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18973
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
