GLM-5.4: Z.ai's First Loop Transformer, 750B Scale, 1M Conte
xt, Access and Setup (Nov 2026)
GLM-5.4 (Nov 23, 2026): Z.ai's first Loop Transformer, 28 layers twice, 1M context, Coding Plan only. Claude Code setup; API price, weights date unpublished.
On November 23, 2026, Z.ai (Zhipu AI) announced its new flagship GLM-5.4. It is the first model to use a Loop Transformer, which runs 28 layers of the GLM-5 base model twice, and Z.ai positions it as reaching "intelligence comparable to 2T-3T parameter models." For now it is available only to GLM Coding Plan subscribers. The Model API will arrive "upon completion of the security assessment," and open weights are planned without a date. We found no API pricing and no benchmark table in text form in the official blog or docs. This article sticks to what the official documentation confirms and marks everything else as not published.
GLM-5.4 at a glance
| Item | Detail | Source type |
|---|---|---|
| Announced | November 23, 2026 | Official blog, major press |
| Positioning | Z.ai's latest flagship; first Loop Transformer | Official docs |
| Scale | Base model at "750B scale" (total/active split not stated) | Official docs |
| Structure | 28 layers of the GLM-5 base model, 2 iterations, shared weights | Official docs |
| Context length | 1M tokens | Official docs |
| Max output | 128K tokens | Official docs |
| Input / output | Input: video, image, text, file / Output: text | Official docs |
| Model ID | glm-5.4 (glm-5.4[1m] for 1M context) | Official docs (model switching guide) |
| Availability | GLM Coding Plan (all tiers); Model API not yet available | Official docs |
| API pricing | Not published | None |
| Open weights | Planned after safety hardening; no date | Official blog (confirmed via press coverage) |
| Benchmarks | No text table for GLM-5.4 itself | Official blog (images only) |
"750B" is the official description of the base model's scale, not a table entry for total or active parameters. Some commentary puts it near 700B, so wait for an official figure before relying on an exact number.
What GLM-5.4 is
Z.ai frames GLM-5.4 around "Generalized Coding": code as the foundation for a wider range of tasks such as video, games, 3D shaders and CAD. The official documentation names the Loop Transformer as the enabling technique.
The previous release, GLM-5.3, kept the GLM-5.2 base and improved only through post-training. GLM-5.4 changes the architecture itself by looping the base model's layers, which is a bigger step than the version number suggests.
How the Loop Transformer works
A standard Transformer passes the input through its stack of layers once. A Loop Transformer reuses the same layers and weights several times, adding depth of computation without adding parameters. GLM-5.4 repeats 28 layers of the GLM-5 base model for two iterations. The documentation lists four design choices.
- Gated progressive updates: per-token gates control how each iteration writes back to the residual stream and keep activation scales stable
- Hybrid KV cache: the second loop reuses the first loop's sparse KV and adds a sliding window, so an extra loop costs about one sliding window of cache
- Sparse attention index reuse: the second loop reuses the first loop's indices with no extra indexing overhead
- Fused kernels: core kernels are fused to cut the memory reads and writes that looping adds
Z.ai says it validated the design progressively at 1B, 4B, 30B and 750B scales. In a 30B iso-parameter comparison with about 10% more compute, the looped model improved most on math, scientific reasoning and long-context tasks. Average output length on benchmarks such as GPQA-Diamond and MMLU-Pro dropped by 10-14%, which Z.ai attributes to part of the reasoning moving into the loop's implicit depth.
Note that the quantitative evidence in text is the 30B controlled experiment. We could not find a score table for the 750B GLM-5.4 that can be read side by side with other vendors' models, and press coverage describes the launch as having no benchmarks.
What it can do
- Multimodal input: video, image, text and files in; text out
- Thinking mode for deeper reasoning
- Streaming: up to 200 tokens/s off-peak and 70-80 tokens/s at peak, per the docs
- Function calling for external tools
- Context caching for long conversations
- Structured output such as JSON
Official examples include generating and editing video (a self-narrated music video), engineering-grade CAD such as a 6-axis robotic arm in FreeCAD, and interactive 3D scenes built from mathematical geometry and custom GLSL shaders. These are demos; success rates are not published. Z.ai also acknowledges that the model can fall into overly long "marathon thinking," which it says still improves accuracy, so adjusting effort is the practical lever.
Pricing and availability: Coding Plan only for now
GLM-5.4 is available on all GLM Coding Plan tiers (Lite, Pro, Max). The plan page says "starting at just 18 USD per month" and uses 5-hour and weekly credit allowances. Off-peak usage is charged at 50% of the standard rate; peak hours are Monday to Friday, 14:00-18:00 (UTC+8).
| Plan | 5-hour credits | Weekly credits | Estimated weekly tokens (95% cache hit) |
|---|---|---|---|
| Lite | 2,000 | 10,000 | about 72-146M |
| Pro | 12,000 | 60,000 | about 440-870M |
| Max | 28,000 | 140,000 | about 1,014-2,028M |
The documented credit multipliers for GLM-5.4 are 4.6 (input), 1.1 (cached input) and 16 (output). Plans with weekly quotas get 1.5x the GLM-5.3 quota for GLM-5.4.
The Model API is not available yet. Z.ai says it will be offered after the security assessment, so there is no per-million-token API price today, and any price circulating elsewhere has no official backing. Coding Plan use is also limited to officially supported tools and products.
How to use it from Claude Code
Z.ai's model switching guide is written for existing Coding Plan users who already have an API key and a working endpoint. Endpoints: https://api.z.ai/api/anthropic for Anthropic-compatible tools (Claude Code, Goose), https://api.z.ai/api/v1 for Codex, and https://api.z.ai/api/coding/paas/v4 for other OpenAI-compatible tools.
For Claude Code, add or update these keys under env in ~/.claude/settings.json without replacing the rest of the file. Add the [1m] suffix and the compaction window to use the 1M context.
{
"env": {
"CLAUDE_CODE_AUTO_COMPACT_WINDOW": "1000000",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.4[1m]",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.4[1m]",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.4[1m]"
}
}This assumes your API key (ANTHROPIC_AUTH_TOKEN) and ANTHROPIC_BASE_URL (https://api.z.ai/api/anthropic) are already set. Run claude, then /status, and confirm the settings source is ~/.claude/settings.json and the model shows glm-5.4 or glm-5.4[1m]. If the [1m] model is reported as missing, update Claude Code.
Thinking intensity is switched with /effort; the default is max.
| Tool input | Effective level |
|---|---|
thinking.type unset, true, enabled, adaptive | max (default) |
thinking.type false, disabled, none, off | low (light thinking continues) |
reasoning_effort minimal, light, low | low |
reasoning_effort medium, high | high |
reasoning_effort xhigh, max, ultra | max |
| Any other string | max (falls back to default) |
Z.ai recommends max for coding, but because the model can think for a long time, try high or lower on lighter tasks. For OpenAI-compatible tools such as Cline, set the base URL to https://api.z.ai/api/coding/paas/v4 and the model name to glm-5.4. We do not include a direct Python or curl API example because the Model API is not available and no official example exists.
Comparison with other models
A fair comparison with other vendors needs official benchmarks under the same conditions, which GLM-5.4 does not have yet. This article therefore compares only within the GLM family and does not score GLM-5.4 against other vendors' flagships. GLM-5.2 and GLM-5.3 values come from our earlier articles based on official announcements.
| Item | GLM-5.2 | GLM-5.3 | GLM-5.3-Flash | GLM-5.4 |
|---|---|---|---|---|
| Scale | 753B (about 40B active) | 743B | 320B (18B active) | 750B scale (split not stated) |
| Main trait | Open weights (MIT) | Strengthened by post-training only | Lightweight, open weights | First Loop Transformer |
| Structure | Standard Transformer | Same (GLM-5.2 base) | Same | 28 layers looped twice |
| Context length | - | Not stated | - | 1M |
| Weights | Released | Announced as planned | Released | Planned after safety hardening, no date |
| Access | Weights, API | Coding Plan | Weights, Coding Plan | Coding Plan only (no API) |
See our GLM-5.3 article for its security-oriented scores and the GLM-5.3-Flash requirements article for local-run estimates. For a format that lines up official pricing, benchmarks and availability, see our Gemini 4 Neon article; GLM-5.4 lacks the official numbers that format needs.
In practice, GLM-5.4 is an architectural change, not an extension of the same recipe, so the reliable test is to run GLM-5.3 (or its Flash variant) and GLM-5.4 on your own tasks under identical conditions. The 1.5x weekly quota relative to GLM-5.3 makes such a trial easy to budget.
Benchmarks: what is known and unknown
- Benchmarks in the official docs are shown as images; we found no table citable as text
- The quantitative statements in text are the 30B controlled-experiment gains and the 10-14% shorter average output on GPQA-Diamond, MMLU-Pro and similar
- "2T-3T parameter class" is a positioning statement, not a score showing parity on a specific benchmark
- We do not cover leaderboards or scores circulating on social media without official backing
Separate the design idea (deeper reasoning through looping) from real-world success rate, cost and latency. A reproducible evaluation set, such as your own bug-fix, test-repair and refactoring tasks compared against GLM-5.3, is the most reliable basis for a decision.
Running it locally: not possible now, rough targets once released
Weights are unreleased, so local execution is not possible today. The figures below are generic estimates for a model of roughly 750B parameters, not official numbers. Real requirements depend on the confirmed parameter count (not stated officially), quantization format, KV cache and runtime support.
| Precision | Weights only (estimate) | Note |
|---|---|---|
| BF16 | about 1.5TB | parameters x 2 bytes |
| FP8 | over about 750GB | parameters x 1 byte plus overhead |
| 4-bit | over about 375GB | parameters x 0.5 byte plus overhead (often 400GB-class in practice) |
| 2-bit | over about 190GB | large quality loss, limited use |
Because a Loop Transformer reuses the same layers, weight memory does not grow with the number of loops; running 28 layers twice still stores one set of weights. Compute does increase, and Z.ai's hybrid KV cache design is described as keeping the extra cache small. That is a design claim, so actual memory and speed on runtimes such as vLLM or SGLang need checking once support appears.
For reference, we estimated GLM-5.2 at about 430GB in 4-bit. If GLM-5.4's base is of similar scale, local use implies a multi-GPU server or a workstation with large unified memory. Z.ai also says a "significantly larger" model is coming soon; a smaller variant is not mentioned.
Cautions before adopting it
- No API: embedding it in your own service or pay-as-you-go use must wait for the Model API
- Coding Plan scope: limited to officially supported tools and products; check the Quick Start for the list
- Data handling: if you send proprietary code, review the terms and data policy first (we did not verify them for this article)
- Long thinking: the default max can think long, and output carries a x16 credit multiplier, so consider lowering effort
- License: unstated for the future weights; GLM-5.2 was MIT, but GLM-5.4 is not guaranteed to match
- Safety hardening: Z.ai cites it as the reason for the delay; we could not find the assessment details
Not published or not confirmed
- Model API launch date and pricing (input, output, cache)
- Total and active parameter counts and any MoE configuration
- Weights release date and license
- Official GLM-5.4 benchmark numbers in citable text form
- Same-condition comparisons with other vendors
- Name and timing of the "significantly larger" model
Summary
GLM-5.4 is Z.ai's first Loop Transformer flagship, gaining depth by running the same layers twice rather than adding layers. The model ID glm-5.4, the 1M context and image/video input are confirmed in official docs. API pricing, benchmarks, the weights date and the license are not. Coding Plan subscribers can try it in Claude Code now; compare it with GLM-5.3 on your own tasks and decide on wider adoption after the API and weights arrive.
FAQ
How much does the GLM-5.4 API cost?
As of November 24, 2026 the Model API is not available and has no published price; the docs say it will be offered after the security assessment. On the Coding Plan, plans start at 18 USD per month and GLM-5.4's credit multipliers are 4.6 (input), 1.1 (cached input) and 16 (output).
Can I run GLM-5.4 locally?
Not today, because the weights are unreleased. Z.ai plans to release them responsibly after safety hardening, with no date. As a generic estimate for a 750B-scale model, FP8 needs over about 750GB and 4-bit over about 375GB; these are not official figures.
What is a Loop Transformer, and how does it differ from a standard Transformer?
It reuses the same layers and weights several times to add computational depth without adding parameters. GLM-5.4 runs 28 layers of the GLM-5 base model twice. Weight memory does not grow, while compute does; Z.ai uses KV cache and index reuse to limit the extra cost.
What is the GLM-5.4 model ID and how do I set it in Claude Code?
The model ID is glm-5.4, or glm-5.4[1m] for the 1M context. Set ANTHROPIC_DEFAULT_HAIKU_MODEL, SONNET_MODEL and OPUS_MODEL under env in ~/.claude/settings.json, and set CLAUDE_CODE_AUTO_COMPACT_WINDOW to 1000000. Confirm the model with /status.
Is GLM-5.4 better than other vendors' latest models?
It cannot be judged yet. Z.ai positions it as comparable to 2T-3T parameter models, but we found no same-condition benchmark table for GLM-5.4 itself. Compare it with GLM-5.3 on your own tasks first.
株式会社オブライト
Oflight Inc. is a Tokyo-based IT company providing software development, digital signage, web development, network systems, and IoT/AR/VR technology services.
Related free tools (no sign-up, instant results)
Feel free to contact us
Contact Us