Deepseek ArtifactsDeepseek Artifacts
Availability checked 2026-11-30

GLM-5.4 in the GLM Coding Plan: how to switch, and what is still closed

Z.ai shipped GLM-5.4 to every Coding Plan tier while keeping the Model API shut. Here is the exact settings change, the credit math, and the availability checks we re-read on 2026-11-30.

Where GLM-5.4 stands right now

GLM Coding Plan
Open. Every tier — Lite, Pro and Max, on Personal and Team plans — can select GLM-5.4.
Model API (pay-as-you-go)
Not open. Z.ai states the Model API “will be made available upon completion of the security assessment”, and the pricing table still lists no GLM-5.4 rate.
Quota
Weekly-quota plans get 1.5× the GLM-5.4 allowance they would get on GLM-5.3, on top of GLM-5.4’s lower credit multipliers.
Where you can call it
Only inside Z.ai’s supported tools — Claude Code, Codex, Cline, Roo Code, Kilo Code, OpenCode, ZCode and the rest of the official list.

Verified 2026-11-30 against docs.z.ai/guides/llm/glm-5.4, /devpack/overview, /devpack/latest-model and /guides/overview/pricing. Z.ai has not added a GLM-5.4 entry to its release notes yet, so treat any launch date you see elsewhere as unconfirmed.

TL;DR

  • Already paying for a GLM Coding Plan? You can use GLM-5.4 today — no new purchase, no extra key. You only switch the model IDs in your tool.
  • In Claude Code, map OPUS and SONNET to glm-5.4[1m], keep HAIKU on glm-5.3-flash[1m], then confirm with /status.
  • You cannot buy GLM-5.4 tokens yet: no API price, no API key path and no bring-your-own-provider route until the security assessment clears.
  • GLM-5.4 is cheaper per token in plan credits than GLM-5.3 (4.6 / 1.1 / 16 versus 6.9 / 1.7 / 24), and off-peak usage still bills at 50%.

What actually changed in GLM-5.4

Z.ai’s own summary: GLM-5.4 is its first flagship built on a Loop Transformer, where 28 layers of the GLM-5 base model run twice per forward pass at 750B scale — a design the company says reaches intelligence comparable to 2T–3T parameter models.

  • Loop Transformer — weight-shared layers iterate twice, backed by a hybrid KV cache (shared cross-loop cache plus a private sliding window) and sparse-index reuse, so an extra loop costs one sliding window of KV instead of a full context cache.
  • Limits — 1M token context, up to 128K output tokens, input as video, image, text or file, text out.
  • Capabilities — thinking mode, streaming at up to 200 tokens/s off-peak (70–80 tokens/s at peak), function calling, context caching and structured output.
  • Generalized coding — Z.ai positions it beyond app code: video generation by code, complete games, 3D scenes and CAD-style mechanical design.
  • Known weakness — the write-up admits the model can fall into overly long “marathon thinking” loops; the extra reflection usually buys accuracy at the cost of wall-clock time.

Source: docs.z.ai/guides/llm/glm-5.4 (page last modified 2026-11-23, read 2026-11-30). The page names GPQA-Diamond and MMLU-Pro only to say output length drops 10–14% on most benchmarks; it publishes no GLM-5.4 scorecard we could quote, so none appears here.

Switch to GLM-5.4 in six steps

This route is the Claude Code one, because that is where most GLM plans are spent. Every value below is copied from the official switching guide.

  1. 1

    Confirm the plan already covers GLM-5.4

    All plans support GLM-5.4, GLM-5.3 and GLM-5.3-Flash, so nothing needs to be upgraded. Open the Subscription page only to confirm the plan is active — an expired plan fails on the first request, not with a model error.

  2. 2

    Update Claude Code before touching the model name

    GLM-5.4 is addressed as glm-5.4, and the 1M-context variant needs the [1m] suffix. Older Claude Code builds reject that suffix as an unknown model, so check claude --version first if a switch is going to fail.

  3. 3

    Edit ~/.claude/settings.json — add keys, never replace the file

    Merge the env block into the settings file you already have. Windows keeps the same file at %USERPROFILE%\.claude\settings.json; WSL and a native Windows install can hold different copies, so edit the one your shell launches.

    {
      "env": {
        "CLAUDE_CODE_AUTO_COMPACT_WINDOW": "1000000",
        "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.3-flash[1m]",
        "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.4[1m]",
        "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.4[1m]"
      }
    }
  4. 4

    Restart and prove which model answers

    Close every Claude Code window, open a new terminal and run claude. If it asks “Do you want to use this API key”, answer yes, then type /status: the settings source should be ~/.claude/settings.json and the model line should read glm-5.4 or glm-5.4[1m].

  5. 5

    Set thinking effort (the default is already max)

    /effort switches thinking intensity inside a session. The default level is max, which Z.ai recommends for coding; disabling thinking, or asking for a low effort, converts to the low level rather than switching the model.

  6. 6

    Non-Anthropic tools: use the OpenAI-compatible endpoint

    For Cline, Roo Code, Kilo Code, OpenCode and similar: choose the OpenAI-compatible provider, set the base URL to https://api.z.ai/api/coding/paas/v4, paste the Z.ai key, pick a custom model and type glm-5.4, tick image support, and set the context window to 1000000. Codex uses https://api.z.ai/api/v1.

Endpoints by protocol: Anthropic Messages https://api.z.ai/api/anthropic · OpenAI Chat Completions https://api.z.ai/api/coding/paas/v4 · OpenAI Responses https://api.z.ai/api/v1. Pairing the wrong URL with the wrong tool is the most common “model not found” cause.

What a GLM-5.4 session costs in plan credits

Credits are not tokens. Each plan carries a 5-hour bucket and a weekly bucket, and every model drains them at its own multiplier:

ModelInputCached inputOutput
GLM-5.44.61.116
GLM-5.36.91.724

Plan buckets (official table)

  • Lite — 2,000 credits per 5 hours, 10,000 per week
  • Pro — 12,000 credits per 5 hours, 60,000 per week
  • Max — 28,000 credits per 5 hours, 140,000 per week

Off-peak usage bills at 50%. Peak is Monday to Friday, 14:00–18:00 Singapore time (UTC+8) — the block that hurts Europe and Asia most; evening work in the Americas usually lands off-peak.

Z.ai’s estimate at a 95% cache-hit rate puts GLM-5.4 at roughly 72–146M tokens per week on Lite, 440–870M on Pro and 1,014–2,028M on Max — about 1.5× the token range it lists for GLM-5.3.

The 5-hour bucket refills five hours after consumption; the weekly bucket resets every seven days from the subscription date. MCP tools (Web Search, Web Reader, Zread, Vision) bill in the same currency at a 1.2 output multiplier per call.

What still does not work: the Model API

The line that matters sits in the model overview: “The Model API will be made available upon completion of the security assessment.” In practice that closes four doors:

  • No pay-as-you-go keys. The pricing table lists GLM-5.3, GLM-5.3-Flash, GLM-5.3-FlashX and older models — there is no GLM-5.4 row, so there is no per-million-token price to budget against.
  • No app backends. Your own product cannot call GLM-5.4 through the API yet, so do not schedule a feature launch around it.
  • No unsupported tools. Plan usage is restricted to Z.ai’s supported tools, and the FAQ says calls outside the plan are not available — so wrapping the endpoint in a custom script is off the table.
  • Key types are not interchangeable. Personal plan, Team plan and standard model-API keys are managed separately; a plan key will not behave as an API key when the API opens.

Watch three official pages instead of trusting a repost: the GLM-5.4 model page, the pricing table (a GLM-5.4 row appearing is the real signal), and the release notes.

As of 2026-11-30 the newest release note is dated 2026-08-26 (GLM-5.3-Flash), so even the public launch date is not published there. GLM-5.3’s price and license terms do not transfer to GLM-5.4.

Migrating from GLM-5.3 without breaking your setup

Four checks catch almost every failed switch:

  • Both Opus and Sonnet slots. Z.ai’s manual config maps OPUS and SONNET to glm-5.4[1m] and keeps HAIKU on glm-5.3-flash[1m]; leaving Sonnet on 5.3 means half your sessions stay on the old model.
  • The [1m] suffix needs a recent Claude Code. If the model is reported missing, update the CLI before debugging anything else.
  • Compaction window. Keep CLAUDE_CODE_AUTO_COMPACT_WINDOW at 1000000 so long sessions compact at the 1M boundary instead of an older default.
  • Rollback is one edit. Point the same two variables back at glm-5.3[1m] and restart; nothing else in the file changes.

When it does not work

SymptomWhat to do
“Model not found” right after editing settingsUpdate Claude Code, confirm the build understands the [1m] suffix, then fully restart the CLI — old windows keep stale env.
Requests fail at peak hour but work laterYou most likely hit the 5-hour bucket rather than a broken model. Check the Subscription page; it refills five hours after consumption.
/status still shows an older GLM buildThe settings source is pointing elsewhere — a project-level override, a shell env var, or a second Claude Code install (WSL versus Windows).
Answers take minutes and rambleThat is the documented marathon-thinking behaviour. Compare /effort max on a hard task with a normal one; do not assume a config error.

Where this fits with our GLM Coding Plan guide

The Coding Plan guide covers the whole funnel — choosing Lite, Pro or Max, creating the key, the settings block, first real tasks and where usage is metered — with screenshots from a real session. This page is the GLM-5.4 delta: what changed, how to switch, and what is still gated. Start with the guide if you do not have a plan yet.

Open the GLM Coding Plan guide

Want the spec sheet and the head-to-heads?

Our sister site keeps the spec-and-comparison view of GLM-5.4 — spec table, GLM-5.3 comparison, plan-versus-API economics and cross-model comparisons. This page deliberately stays on the operational side: switching, quota and availability.

Read the GLM-5.4 spec sheet on fable5

GLM-5.4 FAQ

Keep exploring