Model News · As of 2026-11-26

GLM-5.4 Guide: What the Loop Transformer Changes, Coding Plan vs API, and Using GLM in Claude Code

GLM-5.4 is the flagship model Zhipu (Z.ai) released on November 23, 2026, and its first built on a Loop Transformer architecture: it runs 28 layers of the GLM-5 base twice, adding reasoning depth without adding parameters, with 1M context, 128K output, and video, image, text and file input. As of 2026-11-25, GLM-5.4 is available only through the GLM Coding Plan, ZCode and Z.ai Chat. Zhipu says the model API will open after a security assessment, and no public API price has been published yet. QCode is adding GLM-5.4 — check /models for availability and the exact model ID; glm-5.3 is available today.

QCode is an independent third-party API service and is not affiliated with Zhipu (Z.ai). Every claim about GLM-5.4 below is attributed; Zhipu's official docs are the reference.

Updated 2026-11-26

Key facts

  • Release date: 2026-11-23. Zhipu's blog post is titled "Toward Generalized Coding with Our First Loop Transformer."
  • Architecture: reuses 28 layers of the GLM-5 base over two iterations. Zhipu says it reaches intelligence comparable to 2T–3T-parameter models. The reported ~750B total parameter count is not confirmed by Zhipu.
  • Specs (Zhipu docs): 1M context, 128K max output; video, image, text and file input; thinking mode, tool calling, context caching and structured output.
  • Access: every GLM Coding Plan tier, plus ZCode and Z.ai Chat. On weekly-quota plans, GLM-5.4 gets 1.5x the GLM-5.3 quota. The model API "will be made available upon completion of the security assessment."
  • Benchmarks: no absolute scores from Zhipu at launch, only a win-rate chart. Independent tests suggest it is strong but thinks at length, using more time and tokens than some rivals.
  • On QCode: As of 2026-11-26, QCode is adding GLM-5.4 — check /models for availability and the exact model ID. glm-5.3 is available today.

What GLM-5.4 is

Zhipu frames GLM-5.4 as the start of "Generalized Coding": using code as the foundation for a much wider range of tasks. Its examples include video generation and editing, complete games, 3D modeling and mechanical design. The idea is that the model doesn't just write functions; it uses code as a general way to drive tools.

GLM-5.3 shipped in August 2026, so GLM-5.4 arrives about three months later. On launch day, Simon Willison wrote that he signed up for the Coding Plan to try it, since the model was not reachable through the regular API. Two days later, GLM-5.4 discussion hit the Hacker News front page with 1,170 points (per the 2026-11-25 HN digest), making it the most talked-about Chinese model of the month.

What the Loop Transformer changes

The usual way to get a smarter model is to make it bigger. GLM-5.4 takes another route: run the same layers again.

  • Layer reuse. Zhipu's docs say GLM-5.4 reuses 28 layers of the GLM-5 base across two iterations. The second pass refines the hidden states from the first, giving a deeper network with the same parameter count.
  • Continued training, not a fresh start. DataCamp's summary notes that GLM-5.4 was adapted by continued training of the pre-trained GLM-5 base, not trained from scratch, and that Zhipu reportedly validated the architecture at 1B, 4B, 30B and 750B parameters.
  • Per-token gates and a hybrid KV cache. As reported, per-token gates control how much of each loop's update is written back into the residual stream, and a hybrid KV cache keeps the extra loop's memory cost to about one sliding window rather than a second full-context cache. That is how serving cost stays contained at 1M context.
  • Zhipu's ablation. In a 30B iso-parameter comparison, the looped version used about 10% more total training compute, and average output length dropped 10–14% on benchmarks such as GPQA-Diamond and MMLU-Pro. The biggest gains were in math, scientific reasoning and long-context tasks. Zhipu's explanation: part of the reasoning moves from explicit output tokens into the implicit depth of the loop.

One caveat Zhipu states itself: the model can fall into overly long "marathon thinking" loops. That matches the independent observations below about long runtimes and high token use.

Specs at a glance

Item GLM-5.4 GLM-5.3 (for comparison)
Released 2026-11-23 2026-08
Architecture Loop Transformer (28 layers × 2 iterations) Conventional MoE
Context / max output 1M / 128K 1M / 128K
Input Video, image, text, file Text only (use GLM-5.3-Flash for multimodal)
Thinking Supported; effort maps to low / high / max Always on; effort low / high / max
Tool calling, structured output, context caching Yes Yes
Output speed (Zhipu claim) Up to ~200 tokens/s off-peak, 70–80 tokens/s at peak —
Where to get it GLM Coding Plan, ZCode, Z.ai Chat; API pending Coding Plan and API
API price (per M tokens) Not published $1.40 input / $0.26 cached / $4.40 output (Z.ai official)
Weights After safety hardening, no date See Zhipu's status page
QCode Being added; check /models Available: glm-5.3

Benchmarks and independent tests: strong, but it thinks a lot

As of 2026-11-23, Zhipu had published no absolute benchmark scores for GLM-5.4. The docs include only a win-rate chart, and a Zhipu team member said scores would come later (as recorded by DataCamp). What we have so far comes mostly from independent testers:

  • KingBench 4 (independent reviewer AICodeKing): 7th overall and 1st among open models. But the full run took 431 minutes (Gemini 4 Neon: 109), used 1,128 reasoning steps (vs 244) and about 1.04M tokens (vs about 70,000). All figures as summarized by DataCamp.
  • Independent tool-calling test: 1.56% failure rate, 11th of 17 models, with 66% of failed calls recovered on retry (as summarized by DataCamp).
  • Simon Willison's pelican-on-a-bicycle SVG test: one image each at low, high and max effort. He called the max-effort result "not great to be honest," though the pelican was recognizable.

Put together: GLM-5.4's ceiling is worth watching, but in agent workloads it may spend more time and tokens to reach an answer. On Zhipu's Coding Plan, that decides how many tasks fit in a 5-hour window. Once the API opens, it will show up directly on the bill.

Coding Plan or API: what you can buy today

Channel GLM-5.4? Price and quota (as of 2026-11-25)
GLM Coding Plan Yes, every tier Lite from $18/month (official). Pro and Max about $80 and $168/month per a third-party snapshot dated 2026-10-15. Lite: 2,000 credits per 5 hours, 10,000 per week; Pro 12,000 / 60,000; Max 28,000 / 140,000 (official)
ZCode / Z.ai Chat Yes With subscription
Zhipu API (per token) Not yet; after security assessment Not published; GLM-5.3 is $1.40 / $4.40
QCode Being added; check /models glm-5.3 and glm-5.3-flash available today, billed at the rate shown on /models

Two more official rules: off-peak usage on the GLM Coding Plan is charged at 50% of the standard credit rate, with peak hours Monday to Friday, 14:00–18:00 (UTC+8). And on weekly-quota plans, GLM-5.4 gets 1.5x the GLM-5.3 quota.

If you already pay for the Coding Plan, trying GLM-5.4 costs you almost nothing. If you pay per token and want GLM managed alongside Claude, GPT and other models under one key, GLM-5.3 is the option for now until the API opens.

Using GLM-5.4 in Claude Code (Zhipu's own setup)

Zhipu's Coding Plan docs (docs.bigmodel.cn, read 2026-11-25) give these Claude Code settings:

  • In the env block of ~/.claude/settings.json, set ANTHROPIC_DEFAULT_HAIKU_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL, ANTHROPIC_DEFAULT_OPUS_MODEL and ANTHROPIC_DEFAULT_FABLE_MODEL to glm-5.4[1m].
  • Set CLAUDE_CODE_AUTO_COMPACT_WINDOW to 512000. The docs recommend a 512,000-token client window even though the model supports 1M.
  • Older Claude Code versions need the [1m] suffix to enable the 1M context.
  • Use /effort in a session to change thinking depth. With thinking off, it is fixed at low; none, minimal, light and low map to low; medium and high map to high; xhigh, max, ultra and requests with no value map to max.

Sketch (set the base URL and key per Zhipu's Claude Code docs; only the model fields are shown):

{
  "env": {
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.4[1m]",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.4[1m]",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.4[1m]",
    "ANTHROPIC_DEFAULT_FABLE_MODEL": "glm-5.4[1m]",
    "CLAUDE_CODE_AUTO_COMPACT_WINDOW": "512000"
  }
}

CLAUDE_CODE_AUTO_COMPACT_WINDOW is an official Claude Code variable that accepts 100000 to 1000000; per the Claude Code docs, the k and M suffixes work from v2.1.304 (500k = 500,000), and a bare number is read as tokens. This configuration applies to Zhipu's own Coding Plan endpoint, not to QCode.

Using GLM in Claude Code through QCode (today: GLM-5.3)

If you want one key for Claude, GPT and Chinese models, build your workflow on GLM-5.3 through QCode now.

Step 1: point Claude Code at QCode

export ANTHROPIC_BASE_URL=https://api.qcode.cc/api
export ANTHROPIC_AUTH_TOKEN=cr_your_key
claude --model glm-5.3

Or start claude normally and type /model glm-5.3 in the session.

Step 2: split models by task (optional)

Keep Claude for the main work and hand background tasks to the cheaper GLM-5.3-Flash:

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.qcode.cc/api",
    "ANTHROPIC_AUTH_TOKEN": "cr_your_key",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.3-flash"
  },
  "model": "claude-opus-5-5"
}

Step 3: call GLM from other tools and scripts over the OpenAI protocol

curl https://api.qcode.cc/openai/v1/chat/completions \
  -H "Authorization: Bearer $QCODE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"glm-5.3","messages":[{"role":"user","content":"Explain this regex: ^(?=.*\\d)(?=.*[a-z]).{8,}$"}]}'

Things to watch:

  • Exact model IDs. On QCode they are glm-5.3 and glm-5.3-flash. Don't type glm-5.4 or a retired name; once GLM-5.4 is added, use the ID shown on /models.
  • Context window. Claude Code assumes a 200K context for model IDs it doesn't recognize, and the effective CLAUDE_CODE_AUTO_COMPACT_WINDOW is capped at the model's window as Claude Code sees it (Claude Code docs). If you rely on a [1m] suffix through QCode, test it with a small request first; otherwise start with the default window and run /compact when needed.
  • Thinking. GLM-5.3 always reasons, with effort low, high or max. If a client sends "thinking disabled," our GLM-5.3 guide recommends enabling it and setting effort to low instead.
  • Claude-native features. Non-Claude models may not support features such as extended thinking in Claude Code (QCode docs), so treat GLM as a complement.

More combinations in Claude Code with DeepSeek, GLM, Kimi and Qwen.

Use GLM-5.3 now, or wait for GLM-5.4?

Your situation Suggestion
Already on the GLM Coding Plan Try GLM-5.4 now and watch how fast it burns quota
Pay per token, want GLM next to Claude/GPT under one key Use glm-5.3 on QCode now; reassess when the GLM-5.4 API opens
Need screenshots, designs or video as input GLM-5.4 takes multimodal input; on QCode, multimodal glm-5.3-flash is available today
Sensitive to runtime and token use (CI, batch) Stay on GLM-5.3 or the cheaper Flash tier until more public evals land
Need to self-host Wait for the weights; Zhipu has given no date

For a price comparison across vendors, see Chinese AI coding models price comparison (November 2026).

What to watch next

  1. API launch and pricing. Zhipu only says "upon completion of the security assessment." The price will decide how GLM-5.4 compares for pay-per-token use.
  2. Weights. Zhipu says it will open-source the weights responsibly after safety hardening, with no date.
  3. Official benchmark scores. Launch came with a win-rate chart only; official scores and more third-party evals will show where it really sits for coding agents.
  4. GLM-6. Zhipu's CEO has described a "self-evolution, full self-training" direction, and about 60% of new financing goes to next-generation GLM, but there is no release date. See GLM-6 release date.

FAQ

When was GLM-5.4 released?

On November 23, 2026. Zhipu published the blog post "Toward Generalized Coding with Our First Loop Transformer" and made the model available on the GLM Coding Plan, ZCode and Z.ai Chat the same day.

Does GLM-5.4 have an API, and how much does it cost?

Not as of 2026-11-25. Zhipu's docs say the model API will open after the security assessment, and no price has been published. For reference, GLM-5.3's official API price is $1.40 input, $0.26 cached input and $4.40 output per million tokens.

How is GLM-5.4 different from GLM-5.3?

GLM-5.4 uses a Loop Transformer that runs 28 GLM-5 base layers twice, and it accepts video, image, text and file input; GLM-5.3 is text-only. Both have 1M context and 128K output. On weekly-quota Coding Plan tiers, GLM-5.4 gets 1.5x the GLM-5.3 quota.

Can I use GLM-5.4 in Claude Code?

Yes, through Zhipu's GLM Coding Plan. Zhipu's docs recommend setting the default model variables to glm-5.4[1m], setting CLAUDE_CODE_AUTO_COMPACT_WINDOW to 512000, and using /effort to change thinking depth.

Does QCode support GLM-5.4?

As of 2026-11-26, QCode is adding GLM-5.4 — check /models for availability and the exact model ID. glm-5.3 is available today; type /model glm-5.3 in Claude Code to switch.

Will GLM-5.4 be open-sourced?

Zhipu says it plans to release the weights responsibly after the necessary safety hardening, but gives no date. As of launch day, there was no official Hugging Face repository or model card (per DataCamp).

How many parameters does GLM-5.4 have?

Zhipu's docs only say it reuses 28 GLM-5 base layers over two iterations and reaches intelligence comparable to 2T–3T-parameter models. The reported ~750B total is unconfirmed by Zhipu, and no active parameter count has been published.

Is GLM-5.4 expensive to use?

For now it is only available within subscription quotas, with no per-token price. Independent tests show it uses more tokens and time on long tasks, so a given quota may cover fewer tasks than you expect. Watch your usage for a few days before making it your main model.

Get GLM running on QCode with a pay-as-you-go pack

If you prefer to pay as you go without tying yourself to one vendor's subscription, start with a QCode pay-as-you-go pack: no subscription, from $4, valid 7 days. One key works across Claude, GPT and Chinese models, so you can run glm-5.3 in Claude Code and switch to Claude Opus 5.5, Sonnet 5.5 or GPT-6.2 Sol for comparison at any time; Chinese models are billed at the rate shown on /models. When GLM-5.4 is available on /models, you only change one model ID.

Get GLM running on QCode with a pay-as-you-go pack

One key for both the Anthropic Messages API and OpenAI-compatible APIs. Claude and GPT are billed at the official price ×1.0; live rates are on /models.

Not sure where to start?

Try it for a week

Small Pack: $4 for $30 of quota, valid 7 days

Use it every day

Starter: $9.00/month with $5 of quota every day — just $0.060 per $1 of quota, vs about $0.113 for the Medium Pack