Dev & code

Z.ai opens the API for GLM-5.4, its first looped-layer flagship model, at GLM-5.3's price and with no published weights for now

Chinese lab Z.ai opened the API for GLM-5.4 on December 2, a model of about 750 billion parameters that runs data through 28 of its layers twice to reason more deeply without growing larger. The price is unchanged ($1.40 / $4.40 per million tokens), the model is also served by Mistral in Europe, and it gains 36 points on the Agent Arena Index. The weights, though promised, have not been published yet.

Abstract generated illustration for the Dev & code section

Chinese lab Z.ai opened the API for GLM-5.4 on December 2, 2026, its new flagship model for coding and agents, unveiled on November 23 in a technical blog post. What sets it apart is its architecture: instead of stacking new layers, GLM-5.4 runs data through 28 layers of its base model twice, with the same weights. Z.ai calls this a “Loop Transformer” and expects it to deliver deeper reasoning without a bigger model. The price does not change: $1.40 per million input tokens and $4.40 per million output tokens, like GLM-5.3. The weights, however, have not been published yet.

What is available

GLM-5.4
Size “750-billion scale” in parameters (Z.ai)
Architecture 28 layers of the GLM-5 base model run twice (shared weights)
Context / maximum output 1 million tokens / 128,000 tokens
Inputs / outputs text, image, video, file / text
Z.ai API price (per million tokens) $1.40 input, $0.26 cached, $4.40 output
Mistral Cloud price $1.40 input, $0.14 cached, $4.40 output (European endpoints)
Weights promised, no date

The model is available through Z.ai’s API (identifier glm-5.4), through the GLM Coding Plan, Z.ai’s subscription for coding tools, and, since the same day, through Mistral Cloud (identifier zai-glm-5-4). Thinking is always on: the thinking.type parameter only accepts “enabled,” and Z.ai recommends the maximum reasoning effort.

How the loop works

In a classic Transformer, each layer is used once per pass. In a looped model, a block of layers is reused several times and, on each round, refines what it computed in the previous one. Z.ai acknowledges in its technical blog post that the idea dates back to the 2018 Universal Transformer, but looped models trained from scratch remained weaker than classic models at equal compute. So the lab took an already trained base model and converted it through continued training.

Three adjustments make the operation viable at this scale, according to Z.ai: per-token gates that regulate what each pass writes, to keep activations from blowing up; a hybrid KV cache, in which the second pass reuses the first pass’s cache and adds only a sliding window, instead of doubling memory; and reuse of the sparse attention indices from the first pass. According to Z.ai, the hybrid cache keeps the increase in deployment cost compared with GLM-5.3 in check with a one-million-token context.

The published figures come from an experiment on a 30-billion-parameter model: with the same number of parameters and about 10% more training compute, the looped version improves mainly in mathematics, scientific reasoning and long contexts, and produces responses 10 to 14% shorter on GPQA-Diamond and MMLU-Pro. Z.ai concludes that part of the reasoning shifts from written tokens to the depth of the network. The post does not give the equivalent for GLM-5.4 itself. And it flags an opposite limitation: the model tends to get stuck in overly long reasoning, which Z.ai calls “marathon thinking.”

What Arena measures

The only external measurement available, Arena ranked GLM-5.4 (Max) in Code Arena WebDev, where users vote on generated web applications: 1,692 points, 15th on entry on December 2, 17th on the leaderboard home page checked on December 3. On the Agent Arena Index, it scores 1,134 points (26th), versus 1,098 points (39th) for GLM-5.3 (Max), or 36 points better at the same price. Arena presents it as the top open-source model in WebDev (“would be #1”) and third on the Agent Arena Index, even though the weights are only promised.

Same price, but what real cost?

Z.ai’s price list shows the same per-token price for GLM-5.1, 5.2, 5.3 and 5.4. The cost of a task, however, depends on the number of reasoning tokens consumed, and the two announced effects pull in opposite directions: shorter responses on the 30-billion model, sometimes endless reasoning on GLM-5.4. Without an independent measurement of cost per task, it is impossible to say which one wins out.

To place GLM-5.4 among the recent Chinese and American models covered here: Amazon Ergo is billed at $1 / $3 on Bedrock with weights already published, and StepFun’s Step 5 at $1 / $2.70, with weights that are likewise only promised. GLM-5.4 is therefore more expensive per token than both models, but it reads images and video, which Ergo does not.

Two small discrepancies between sources: Mistral lists cached input at $0.14 while Z.ai charges $0.26, and it mentions “750B Active Parameters,” whereas Z.ai gives no number of active parameters.

Our take

GLM-5.4 matters first for its method. Labs usually improve their models by making them bigger or training them longer; Z.ai shows that existing layers can also be reused, at a training cost presented as modest on a test model; and GLM-5.4 scores 36 points higher than GLM-5.3 on the Agent Arena Index with no price increase, though there is no telling how much of that is due to the loop. If the technique holds up, other labs will adopt it, and open models that have already been released could be “looped” in turn. For a developer, the immediate appeal is simple: same rate as GLM-5.3, a one-million-token context, image input (and video on Z.ai’s API), and European hosting through Mistral. The caveats are just as concrete: thinking cannot be turned off, the real cost per task has not been measured, and the weights have not been published, even though Arena already ranks it, conditionally, among open-source models. Things to watch: Artificial Analysis’s measurements, the release date for the weights, and the “significantly larger model” Z.ai says is coming soon.

Sources

  1. Z.ai — GLM-5.4: Toward Generalized Coding with Our First Loop Transformer (technical blog, November 23, 2026) Primary source
  2. Z.ai — GLM-5.4 documentation (modalities, context, parameters, Coding Plan) Primary source
  3. Z.ai — API pricing Primary source
  4. Z.ai on X — GLM-5.4 API announcement (December 2, 2026) Primary source
  5. Mistral — GLM 5.4 is now available on Mistral Cloud (December 2, 2026) Primary source
  6. Arena on X — GLM-5.4 (Max) in Code Arena WebDev (December 2, 2026) Primary source
  7. Arena on X — GLM-5.4 (Max) on the Agent Arena Index (December 2, 2026) Primary source
  8. Arena — leaderboard home page (checked December 3, 2026) Primary source

A primary source comes directly from the company, lab or organization concerned. A secondary source reports the information without being its author: we flag it as such. Spotted an error? See our corrections policy.

How we work: editorial charter and methodology · our verification process · corrections log. Spotted an error? Write to contact@neuralbrew.ai.