The blog

AI & inference · 4 min read
November 23, 2026 · Timothy O’Brien

GLM-5.4 Cuts Thinking Tokens on Paper, but the API Price Is Still Missing

Z.ai's GLM-5.4 loops layers instead of adding parameters to cut thinking tokens, yet ships first inside a subscription with no API price and a warning on long thinking loops.

Z.ai released GLM-5.4 on November 23, 2026, pitching it as a coding model that reaches the intelligence of much larger systems without adding parameters. From a cost perspective, the interesting part is not the demo videos. It is what the architecture tries to save, what it still risks spending, and the fact that Z.ai has not published a per-token API price yet.

Right now you can run GLM-5.4 in Z.ai Chat, ZCode, and the GLM Coding Plan subscription, while the developer API is listed as “Coming Soon” and open weights are held back for safety hardening. Z.ai’s official API pricing sheet still stops at GLM-5.3.

Looping layers instead of buying more parameters

In a standard transformer, each layer runs once per pass. GLM-5.4 takes a 750-billion-parameter base model and runs a shared block of layers twice in a loop. The bet is simple enough: instead of training and serving a much larger model from scratch, you reuse weights you already have and spend extra compute inside the forward pass.

On a smaller test model, Z.ai reports that looping raised training compute modestly while cutting average output length on reasoning benchmarks by 10 to 14 percent. If a model shifts part of its reasoning from visible chain-of-thought tokens into that internal loop, a buyer pays for fewer output tokens per answer. That is the cost argument for the architecture, and on paper it makes sense.

The catch is that running layers twice normally doubles memory traffic and key-value cache pressure on long contexts. Z.ai says it avoided most of that penalty by reusing sparse attention indices and keeping only a local sliding window of new cache on the second pass. Even so, Z.ai’s own numbers show why serving capacity still matters: throughput drops from up to 200 tokens per second off-peak to less than half that under peak load. When an interactive coding agent loses more than half its speed during busy hours, developers feel it as waiting time.

Why a subscription launch hides the unit cost

Z.ai put GLM-5.4 into its GLM Coding Plan before putting it on a public rate card. That plan starts at 18 dollars a month and already meters usage differently during weekday peak hours versus off-peak periods.

Shorter average thinking on a benchmark does not protect your bill if a hard job gets stuck in a loop.

A subscription hides per-token economics behind a quota, which is fine for individual experimentation and awkward for capacity planning. Chapter 7 of the book separates subscription seats from metered APIs and provisioned capacity because each one puts risk in a different place. Until Z.ai posts per-token input, cached-input, and output rates for GLM-5.4, a team cannot calculate whether the loop architecture actually lowers cost per accepted coding task compared with GLM-5.3 or competing models.

I also pay close attention to the limitation Z.ai put near the top of its own post: GLM-5.4 “tends to get caught in overly long ‘marathon thinking’ loops.” That admission matters more to your budget than a lower average token count on benchmarks. Averages look tidy in a launch chart. In production, it is the tail jobs that chew through a Coding Plan quota or run up a metered API bill when a model keeps second-guessing itself without converging.

Read the announcement

The primary source for everything here is Z.ai’s release post, GLM-5.4: Toward Generalized Coding with Our First Loop Transformer, paired with Z.ai’s API pricing table and Coding Plan documentation. Read the blog post as a vendor research announcement: the ablation numbers come from a smaller test model with thinking mode enabled, and the flagship model’s API pricing is still missing.

If you want to evaluate GLM-5.4 seriously for team workloads, wait for the API price list and test it the way Chapter 8 of the book recommends: measure total tokens consumed per accepted task, including retries and runaway thinking passes, during the hours your team actually works.

Keep following the story

The Without Surprise newsletter

A little perspective.
Delivered occasionally.

New chapters, visual summaries, practical notes on cost and capacity, and new posts — with the same dates and sources as everything else here.