Model guide · verified November 29, 2026

GLM-5.4: Z.ai's first Loop Transformer flagship, fully specified

Z.ai loops 28 layers of the GLM-5 base model twice to buy depth without parameters. 1M context, 128K output and multimodal input — but for now only through the GLM Coding Plan.

The short version

GLM-5.4 is the first Z.ai flagship built on the Loop Transformer architecture, and Z.ai says it reaches intelligence levels comparable to 2T-3T parameter models — a vendor claim, not an independent result. The published spec is 1M context, 128K maximum output, and video / image / text / file input with text output. Access is asymmetric: every GLM Coding Plan user can use it today, with weekly-quota plans getting 1.5x the GLM-5.3 allowance, while the Model API is closed until Z.ai completes its security assessment. Z.ai's pricing page carries no GLM-5.4 row, so there is no per-token price to quote yet.

Verified November 29, 2026

Every figure on this page was read from Z.ai's own pages on November 29, 2026 (Asia/Shanghai): the GLM-5.4 guide in English and Chinese, the pricing page, the model overview, the Coding Plan overview, and the official blog post dated November 23, 2026. The Claude Fable 5.2 figures quoted in the comparison section were re-read from Anthropic's pricing docs the same day. Where Z.ai makes a claim rather than publishing a measurement — the 2T-3T comparison, the benchmark deltas — this page says so.

The published spec sheet

Every cell below comes from Z.ai's documentation. Where Z.ai publishes nothing, the cell says not published rather than borrowing GLM-5.3's numbers.

ItemGLM-5.4
API model IDCoding Plan name glm-5.4 (glm-5.4[1m] for 1M mode); no public Model API ID
ReleasedNovember 23, 2026 (Z.ai blog post)
ArchitectureLoop Transformer — 28 GLM-5 base layers run for two iterations, 750B scale
Input modalitiesVideo / Image / Text / File
Output modalityText
Context window1M
Maximum output128K
CapabilitiesThinking mode, streaming, function calling, context caching, structured output
ThroughputUp to 200 tok/s off-peak, 70-80 tok/s at peak load
WeightsNot released — Z.ai says it plans to open-source them after safety hardening
Model APIClosed — will be made available upon completion of the security assessment
GLM Coding PlanOpen to all users; weekly-quota plans get 1.5x the GLM-5.3 quota
Per-token priceNot published — no GLM-5.4 row on the pricing page
Data retentionNot published

Sources: docs.z.ai/guides/llm/glm-5.4 and docs.bigmodel.cn/cn/guide/models/glm-5.4, both read November 29, 2026. The documentation page states no release date — November 23, 2026 is the date on Z.ai's official blog post for this model. For the general-purpose Model API, Z.ai publishes no model ID and no per-token price while it stays closed; the Coding Plan model name (glm-5.4, or glm-5.4[1m] for the 1M mode) comes from Z.ai's model-switching guide and is set out in the setup section below.

What you can use today, and what you cannot

In the same documentation, the Coding Plan and the Model API are in completely different states. This is the part readers misread most often.

  • GLM Coding Plan: open to every user

    Z.ai's own line is that GLM-5.4 is now available to all GLM Coding Plan users and reachable through supported coding tools. The Coding Plan overview lists ZCode, Claude Code, Codex, OpenCode, AutoClaw and OpenClaw among the supported tools, and states that all plans support GLM-5.4, GLM-5.3 and GLM-5.3-Flash. Plans start at 18 USD per month.

  • Model API: still closed

    The guide's opening note says the Model API will be made available upon completion of the security assessment. The model overview repeats the same sentence, and the official blog post labels the API link Coming Soon. Read carefully, that limits the general-purpose Model API: it has no published model ID and no per-token rate card. It does not mean GLM-5.4 is unreachable — the Coding Plan already documents a model name and subscription-only endpoints, covered in the setup section below.

  • Weekly-quota plans get 1.5x the GLM-5.3 allowance

    Z.ai's wording: for users on weekly quota plans, the available quota for GLM-5.4 is increased to 1.5x that of GLM-5.3. The plan's credit table points the same way — per 10,000 credits GLM-5.4 bills 4.6 input / 1.1 cached input / 16 output multipliers against GLM-5.3's 6.9 / 1.7 / 24, so the same tokens consume fewer credits.

  • Weights: announced, not released

    The blog post says Z.ai plans to open-source the model weights responsibly after completing necessary safety hardening. Until those weights exist there is nothing to download and nothing to self-host, so do not carry GLM-5.2's MIT licence or GLM-5.3-Flash's open weights over to 5.4.

Quoted lines are Z.ai's own wording, read November 29, 2026. Plan contents and quotas change; check z.ai/subscribe and the Coding Plan overview before you buy.

How to reach it today

The Coding Plan is a subscription with its own endpoints and model name — not the Model API. Z.ai's model-switching guide documents both.

  • Model name: glm-5.4, or glm-5.4[1m] for the 1M mode

    Z.ai's switching guide tells Claude Code users to point the Opus, Sonnet and Haiku aliases at glm-5.4[1m] and to set CLAUDE_CODE_AUTO_COMPACT_WINDOW to 1000000 for the 1M context. For OpenAI-compatible tools such as Cline it gives the base URL https://api.z.ai/api/coding/paas/v4 with the model name glm-5.4. These are Coding Plan endpoints tied to a subscription key; they are not the general Model API.

  • Effort: /effort, default max

    In Claude Code the /effort command switches thinking intensity and the default is max. Turning thinking off is converted to low rather than disabling reasoning, and Z.ai recommends max for coding tasks. That is the Coding Plan's mapping, not an API parameter list.

  • Endpoints differ per tool

    The same guide lists three base URLs: https://api.z.ai/api/anthropic for Claude Code and Goose, https://api.z.ai/api/v1 for Codex, and https://api.z.ai/api/coding/paas/v4 for other OpenAI-compatible tools. A call to any of them requires an active GLM Coding Plan subscription.

Read from docs.z.ai/devpack/latest-model and docs.z.ai/devpack/overview on November 29, 2026. Model names, endpoints and defaults change; the official pages win over this one.

Plan credit multipliers: 5.4 is the cheaper row

The Coding Plan bills credits, not tokens: model usage = (input tokens x input multiplier + cached input tokens x cached input multiplier + output tokens x output multiplier) / 10,000.

Multiplier per 10,000 creditsGLM-5.4GLM-5.3
Input multiplier4.66.9
Cached input multiplier1.11.7
Output multiplier1624

Multipliers from the Coding Plan overview, read November 29, 2026. Off-peak model usage bills at 50% of the standard credit rate; peak hours are Monday to Friday, 14:00-18:00 at UTC+8. Z.ai's own weekly token estimate at a 95% cache-hit rate is 72-146M (Lite), 440-870M (Pro) and 1,014-2,028M (Max) for GLM-5.4, against 48-97M / 290-580M / 676-1,352M for GLM-5.3.

Pricing: the rate card has no 5.4 row

Z.ai's pricing page (read November 29, 2026) lists GLM-5.3, GLM-5.3-Flash and GLM-5.3-FlashX under Latest Models, and GLM-5.3-FlashX-Legal, GLM-5.2, GLM-5.1, GLM-5 and older models under Text Models. GLM-5.4 is in none of those tables.

  • No published rate means no number on this page

    GLM-5.3's row is $1.4 input / $0.26 cached input / $4.4 output per million tokens, and GLM-5.2 and GLM-5.1 carry the identical row. GLM-5.4 is a different architecture and Z.ai has published no rate for it, so a budget that bills 5.4 at 5.3's prices is invented.

  • The subscription is the only price that exists

    A Coding Plan subscription starts at 18 USD per month: Lite at 2,000 five-hour / 10,000 weekly credits, Pro at 12,000 / 60,000, Max at 28,000 / 140,000. Whether that beats an API depends on a rate Z.ai has not published.

  • The reference point most readers want: Claude Fable 5.2

    Anthropic's published list price, re-read November 29, 2026, is $8 input / $40 output / $0.20 cached input / $10 cache write for 5 minutes / $16 for 1 hour per million tokens, with batch at $4 / $20. That is about 5.7x GLM-5.3's input rate and 9x its output rate — but a price comparison against 5.4 is impossible until Z.ai prints one.

USD per million tokens, published list prices only. Z.ai figures from docs.z.ai/guides/overview/pricing; Anthropic figures from platform.claude.com/docs/en/about-claude/pricing. Both change without notice.

Where it sits in the GLM family

GLM-5.4 is not a point release of 5.3: the base, the architecture and the access model all changed. The 5.3 and 5.2 pages on this site cover the other two trade-offs.

GLM-5.3: the model 5.4 is measured against

GLM-5.3 (August 18, 2026) keeps the GLM-5.2 base model and improves it entirely through post-training: text-only input, reasoning always on with low / high / max effort, and — in Z.ai's own 5.3 documentation — a 1M-token context window with 128K maximum output. Z.ai's 5.4 guide compares quota, credit multipliers and deployment cost against 5.3 throughout, which makes 5.3 the row to read beside 5.4.

GLM-5.2: the open-weights branch

GLM-5.2 (June 16, 2026) is the open-weight flagship: 1M context, 128K output, MIT weights. GLM-5.4 is not open, so if self-hosting is the requirement, 5.2 is still the answer and 5.4 is not a substitute.

GLM-5.3-Flash: the cheap workhorse

Every Coding Plan supports GLM-5.4, GLM-5.3 and GLM-5.3-Flash. Z.ai's own model-pairing guide suggests Flash for routine coding and testing, and GLM-5.4 for design trade-offs and key reviews.

Dates and specs come from Z.ai's model documentation and its New Released page, and GLM-5.2's MIT licence from its Hugging Face model card, all read November 29, 2026. This page covers GLM-5.4 only; the 5.3 and 5.2 figures are context, not a re-verification of those models.

GLM-5.4 vs Claude Fable 5.2: how to choose

Five things decide it: whether the price can be compared at all, how you reach the model, context, weights, and whether you trust the vendor's intelligence claim.

  • Price: not comparable yet

    Fable 5.2 lists at $8 / $40 per million tokens and GLM-5.3 at $1.4 / $4.4, which is about 5.7x on input and 9x on output between those two models. Those multipliers say nothing about GLM-5.4: it has no published rate, so any claim that 5.4 specifically is N times cheaper than Fable 5.2 would be invented.

  • Access: a subscription against an API

    Fable 5.2 is API-first: Claude API, Amazon Bedrock, Google Cloud and Microsoft Foundry all serve it. GLM-5.4 today is reached mainly through a GLM Coding Plan subscription — its own model name and subscription-only endpoints inside a coding tool — rather than through the general-purpose Model API, which is still closed.

  • Context: both publish 1M in, 128K out

    Z.ai publishes 1M context and 128K maximum output for GLM-5.4; Anthropic publishes the same pair for Fable 5.2. Context size is not the differentiator here — modality is: GLM-5.4 accepts video, images, text and files, while Fable 5.2 takes text and images.

  • Weights: closed on both sides, for now

    Neither model has downloadable weights. Z.ai says it intends to open-source GLM-5.4 after safety hardening; Anthropic has announced no such plan for Fable 5.2.

  • How to decide

    Pick Fable 5.2 when you need a callable API, Anthropic's 30-day retention terms, or the tooling built around it. Pick GLM-5.4 when you already pay for a GLM Coding Plan and want the strongest model on it for long, vision-heavy or CAD-style coding work — and treat the 2T-3T intelligence claim as a vendor claim until independent evaluations exist.

Fable 5.2 figures come from Anthropic's pricing documentation and GLM-5.4 figures from Z.ai's, both read November 29, 2026. This site has not independently benchmarked either model.

What a Loop Transformer actually does

It is not another mixture-of-experts variant: it runs the same block of layers twice. That one idea explains the quota, the deployment cost and the admitted weakness.

  • A block of layers, executed twice

    In a standard Transformer each layer runs once per forward pass. In a Loop Transformer a group of weight-shared layers runs several iterations, refining the previous pass's hidden states, so the network gets deeper without more parameters. GLM-5.4 loops 28 layers of the GLM-5 base model for two iterations.

  • The KV-cache trick is why 1M context stays affordable

    A naive loop keeps a full KV cache per iteration, multiplying memory by the loop count. Z.ai reuses the sparse KV selected in the first pass and adds only a sliding window of newly generated KV for the second, so an extra loop costs one window rather than a whole context cache. In Z.ai's words that keeps the cost increase over GLM-5.3 well under control at 1M context.

  • And the sparse-attention index is reused too

    The second loop reuses the attention indices produced by the first loop's indexer. Z.ai reports that this performs nearly identically to recomputing the indices, at zero added indexing overhead.

  • The 2T-3T claim, and the weakness Z.ai admits

    Z.ai says GLM-5.4 reaches intelligence levels comparable to 2T-3T parameter models — a vendor claim with no published third-party evaluation behind it. The same post concedes that the model tends to get caught in overly long marathon thinking loops, which Z.ai argues still improves accuracy. Both statements are Z.ai's; this page repeats them as such.

The architecture description paraphrases docs.z.ai/guides/llm/glm-5.4, read November 29, 2026. The 30B iso-parameter ablation and the 10-14% shorter outputs are vendor-run experiments on a smaller model, not measurements of the 750B flagship.

Sources

Every page below was opened and read on November 29, 2026 (Asia/Shanghai).

This page will go stale

Every fact here is dated November 29, 2026. A subscription-only model usually gets an API and a rate card later — when Z.ai publishes either, the not published cells on this page and the registry entry behind them need re-reading, not patching with GLM-5.3's numbers.

Figures live in the glm-5-4 entry of @/lib/models/registry, lastVerified 2026-11-29.

Where to go next

Compare it against the GLM generation it replaces, or price a workload against Claude Fable 5.2 with the models that do have a published rate.

Questions people ask