Citation and evidence

GLM-5.4

Report a problem with this article

Edit article
More

Cite this article

GLM-5.4 is a reasoning and coding model from Z.ai, released to GLM Coding Plan users on November 23, 2026. ZCode version 4.0.0 introduced it as a built-in model with vision capabilities and broader coding support.[1] The ZCode documentation describes its agent as co-tuned with GLM-5.4 for long tasks, context retention and repeated tool use.[2]

Access and model settings

The following settings are documented for GLM-5.4 in ZCode, checked on November 25, 2026.[3]

SettingDocumented value
Model identifierglm-5.4
Context window1M tokens; the FAQ specifies 1000000 when configuring it manually
Thinking levelsLow, High and Max
Default thinking levelMax
Coding Plan accessLite, Pro, Max and Team
Claude Code model settingglm-5.4[1m]

Expanded article table

GLM-5.4 is available through the Coding Plan in supported coding tools, rather than being restricted to ZCode. Earlier GLM-5.3 and GLM-5.3-Flash remain selectable; the client does not automatically replace them with GLM-5.4. The same FAQ says there is no GLM-5.4 Flash model.[3]

Z.ai's November 23 announcement listed a general model API and downloadable weights as forthcoming, with weight release dependent on safety hardening.[4]

Coding Plan access through compatible endpoints should therefore be distinguished from the separately announced general API release. A Coding Plan API key spends subscription quota on coding workloads.[5]

Loop Transformer architecture

Z.ai adapted a pretrained GLM-5 base through continued training. Its published design runs 28 layers twice, sharing weights across the two passes. The announcement describes development at the 750B scale; that scale description is not an exact downloadable-checkpoint parameter count.[4]

MechanismPublished design
Gated updatesPer-token gates control residual updates in each iteration.[4]
Hybrid KV cacheThe second pass reuses first-pass sparse KV and maintains its own local sliding window.[4]
Sparse index reuseThe second pass reuses the first pass's attention indices.[4]

Expanded article table

The controlled ablation described in the announcement used a 30B model, not the flagship. Z.ai reported improved results with about 10% more training compute after long-context supervised fine-tuning, and 10-14% shorter output on most benchmarks such as GPQA-Diamond and MMLU-Pro.[4] Those small-model results should not be read as a measured flagship scorecard.

Research background

Weight sharing across computational depth predates GLM-5.4. Dehghani and colleagues' Universal Transformer paper, submitted in 2018 and published at ICLR 2019, proposed a recurrent self-attention model with a dynamic per-position halting mechanism.[6] It provides background for shared-depth computation, rather than an evaluation of GLM-5.4.

Geiping and colleagues' 2025 recurrent-depth research studied extra computation in hidden representations rather than through additional output tokens. Their proof-of-concept model had 3.5 billion parameters and was trained on 800 billion tokens.[7] That work concerns a separate model and does not establish GLM-5.4's performance or training recipe.

Using GLM-5.4 in coding tools

ZCode separates the model from the surrounding agent. Its agent can work with repository files, terminal output, browser state and Git state, while the model supplies reasoning and tool decisions.[2] A model's ability to interpret images does not by itself give an application a browser, terminal or permission to change files.

The model selector exposes Low for faster responses on simple tasks, High for everyday development, and Max for more demanding architecture, debugging and long tasks. The effort control changes reasoning depth, while separate execution modes govern permission requests.[2]

For other supported tools, the Coding Plan configuration uses the model name glm-5.4. ZCode's FAQ gives glm-5.4[1m] for Claude Code. If the model is missing, it recommends updating the client and refreshing the model list.[3]

Endpoints and billing scope

The official connection guide distinguishes Coding Plan routes from the general prepaid-balance API.[5]

Access routeGlobal Z.ai base URLBilling scope
OpenAI-compatible Coding Planhttps://api.z.ai/api/coding/paas/v4Coding Plan quota, coding workloads
Anthropic-compatible Coding Planhttps://api.z.ai/api/anthropicCoding Plan access through the compatible protocol
General OpenAI-compatible APIhttps://api.z.ai/api/paas/v4Resource packages or prepaid balance; a distinct service route

Expanded article table

Listing the general route does not establish that GLM-5.4 is enabled on it. Account authorization can configure Coding Plan routing automatically. Users in mainland China can use the corresponding BigModel service; the connection guide documents its separate hostnames.[5]

AutoClaw's November 23 release note also confirms GLM-5.4 integration through the GLM Coding Plan. It identifies V2, V3 and Team users as eligible for its advertised 1.5x quota.[8]

Context, quotas and trials

ZCode's context window meter includes room reserved for generation and a safety buffer. Its FAQ describes automatic compaction around 966K tokens for a 1M window. Compaction is client behavior, so the nominal window does not mean a session can fill every token with unchanged history before summarization.[3]

The connection guide describes a five-day Start Plan trial with a daily allocation of 3 million tokens for GLM-5.4 and 5 million for GLM-5.3-Flash. These are trial allowances, not permanent free quotas; the account's Start Plan page shows its actual entitlements.[5]

The developer plan notice separates current credits-based subscriptions from legacy plans. Its legacy V2 reference lists GLM-5.4 quota multipliers of 0.67x off-peak and 2x at peak, compared with GLM-5.3's 1x and 3x. Peak hours are Monday to Friday, 14:00-18:00 Singapore time (UTC+8).[9] Those multipliers are subscription-accounting rules, not dollar prices per million API tokens.

Limitations and evidence

Z.ai acknowledges that GLM-5.4 can enter excessively long reasoning loops.[4]

The ZCode FAQ likewise warns that the highest thinking setting can take longer and consume quota quickly; lower effort is available for simpler work.[3]

The model's published architectural explanation, controlled small-model ablation and product integration documentation answer different questions. None alone measures reliability on an arbitrary repository or establishes that every generated patch is correct. Actual agent behavior also depends on the tools, permissions and verification supplied by the client.[2]

Continue reading

More to read

Topics:AI Code GenerationAI ModelsChina AILarge Language ModelsReasoning Models

References

  1. ^Z.ai. ZCode releases and updates, version 4.0.0. November 23, 2026; accessed November 25, 2026.
  2. ^1 ^2 ^3 ^4Z.ai. ZCode Agent. Accessed November 25, 2026.
  3. ^1 ^2 ^3 ^4 ^5Z.ai. FAQ (Q&A). Accessed November 25, 2026.
  4. ^1 ^2 ^3 ^4 ^5 ^6 ^7Z.ai. GLM-5.4: Toward Generalized Coding with Our First Loop Transformer. November 23, 2026; accessed November 25, 2026.
  5. ^1 ^2 ^3 ^4Z.ai. Connect Models & Plans. Accessed November 25, 2026.
  6. ^Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit and Lukasz Kaiser. Universal Transformers. arXiv:1807.03819, submitted July 10, 2018; ICLR 2019.
  7. ^Jonas Geiping and colleagues. Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach. arXiv:2502.05171, February 2025.
  8. ^AutoClaw Team. Meet GLM-5.4 in AutoClaw. November 23, 2026; accessed November 25, 2026.
  9. ^Z.ai. Plan Update Announcement. Published July 30, 2026, subsequently updated; accessed November 25, 2026.

Improve this article

Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.

1 revision · v1 · 1,119 words · full history

Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify

Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here

Cite this page: AI Wiki. "GLM-5.4." aiwiki.ai, updated 25 Nov 2026. CC BY 4.0. https://aiwiki.ai/wiki/glm_5_4

Edit article

What links here