GLM-5.4
GLM-5.4 is Z.ai's flagship Loop Transformer model released November 23, 2026, reusing 28 layers twice per forward pass over a ~750B base with a 1M-token context window and 128K max output. Pay-as-you-go Model API and OpenRouter routing (z-ai/glm-5.4) launched December 2, 2026 at $1.40/$4.40 per 1M tokens ($0.26 cached; Prime Intellect route $0.40/$2.464) alongside GLM Coding Plans ($18–$168/mo), while public Hugging Face weights remain unreleased.
What changed
- First Z.ai flagship built on a Loop Transformer architecture — looping 28 layers twice with per-token gates and sliding-window KV reuse to scale reasoning depth without inflating total weights.
- Supports native text, image, video and file inputs across 1M context and 128K max output, targeting 'Generalized Coding' (apps, 3D, CAD, video scripts).
- Standalone Model API and OpenRouter (z-ai/glm-5.4) launched December 2, 2026 at $1.40 input / $4.40 output per 1M ($0.26 cached) on Z.ai and primary hosts, alongside GLM Coding Plans ($18–$168/mo); public open weights remain unreleased.
GLM-5.4 or Flash? — pick the right variant
Where you can use GLM-5.4
| Z.ai Model API | Model ID glm-5.4 live at $1.40 input / $4.40 output per 1M tokens ($0.26 cached input, limited-time free cache storage) with 1M context and 128K max output. |
|---|---|
| OpenRouter | Live since Dec 2, 2026 as z-ai/glm-5.4 across 7 providers: Z.ai, Modal, Friendli, Crusoe, Inferact vLLM ($1.40/$4.40, $0.26 cached) and Baseten ($1.40/$4.40, $0.14 cached) at 82–234 tok/s P50, plus Prime Intellect at $0.40/$2.464 ($0.0744 cached, 156 tok/s). |
| GLM Coding Plan | Live in ZCode and terminal coding harnesses (Claude Code via glm-5.4[1m]) on Lite (~$18/mo), Pro (~$80/mo) and Max (~$168/mo) tiers with 1.5× weekly quota vs GLM-5.3. |
| Open Weights | Not yet publicly downloadable as of December 2, 2026 (zai-org/GLM-5.4 on Hugging Face returns 404/gated). |
How GLM-5.4 compares
| Metric | GLM-5.4 | Claude Opus 5.5 | GLM-5.3 Flash | Qwen4 Max |
|---|---|---|---|---|
| Release date | Nov 23, 2026 | Sep 22, 2026 | Aug 26, 2026 | Nov 16, 2026 |
| Context window | 1M | 1M | 1M | 1M |
| Parameters | ~750B (28 layers looped 2×) | Undisclosed | 320B (18B active) | 2.4T (71B active) |
| Key benchmark | — | DeepSWE v1.1 74.2% | DeepSWE v1.1 63.4% | Terminal-Bench 4.0 (AA) 48.5% |
| API (in / out) | $1.40 / $4.40/M | $4 / $20/M | $0.15 / $0.50/M | $1.425 / $4.275/M |
API pricing & quick cost estimate
Where to run GLM-5.4
Benchmarks
No official scores published yet for the benchmarks we track.
How to use GLM-5.4
- Create an API key in the Z.ai developer console.
- Verify current pricing & rate limits: https://docs.z.ai/guides/overview/pricing ↗
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "z-ai/glm-5.4", "messages": [{"role": "user", "content": "Audit this repository architecture"}]}'
API & runtime notes
- Z.ai direct Model API (glm-5.4) and six OpenRouter providers bill $1.40/$4.40 per 1M ($0.26 cached; Baseten $0.14 cached), matching GLM-5.3 list pricing; OpenRouter's cheapest floor route (Prime Intellect) bills $0.40/$2.464 ($0.0744 cached).
- Thinking mode is always enabled (thinking.type only supports enabled, with thinking.clear_thinking: false and reasoning_effort: max recommended); Z.ai notes the model can enter long 'marathon thinking' loops, so set explicit output limits or lower reasoning_effort for latency-sensitive calls.
- Z.ai has not published a standardized 750B benchmark table (publishing only 30B loop-ablation deltas) and Artificial Analysis Intelligence Index v5.0.1 scores are still pending.
What GLM-5.4 can do
- Loop Transformer reuses sparse-attention indices and limits extra KV cache to a single sliding window; in Z.ai's 30B architecture ablation (200K SFT, thinking enabled), explicit output length dropped 10–14% on GPQA-Diamond and MMLU-Pro.
- Z.ai documents direct API throughput of up to 200 tokens/s during off-peak hours and 70–80 tokens/s at peak load via fused Loop Transformer kernels (OpenRouter P50 ranges from 82 tok/s on Z.ai to 234 tok/s on Modal).
- Broad multimodal coding covering repository engineering, visual UI builds, 3D modeling and video editing code.
- Supports context caching, structured JSON outputs, streaming tool calls (stream + tool_stream) and web search.
Technical specifications
GLM-5.4 FAQ
How much does GLM-5.4 API cost and is it on OpenRouter?
Yes — both Z.ai's standalone Model API (glm-5.4) and OpenRouter (z-ai/glm-5.4) went live on December 2, 2026. Official Z.ai rates and primary OpenRouter providers (Modal, Friendli, Crusoe, Inferact vLLM, Z.ai) cost $1.40 input / $4.40 output per 1M tokens ($0.26 cached), while Prime Intellect on OpenRouter offers an alternate route at $0.40/$2.464 ($0.0744 cached). Subscription access also remains on GLM Coding Plans ($18–$168/mo).
Why are GLM-5.4 benchmark scores marked pending?
Z.ai has not published a standardized 750B benchmark table (the 10–14% shorter CoT figure in Z.ai's docs comes from a 30B ablation experiment) and Artificial Analysis v5.0.1 scores are not yet available. We do not publish unverified leaderboard numbers and will add official or AA scores once released.