Last updated: · Applies to: GLM-5.4 and the GLM Coding Plan

GLM-5.4 Coding Plan: Claude Code, Cline and pricing

Short answer: GLM-5.4 is Z.ai’s Loop Transformer flagship. It is available now in GLM Coding Plan Lite, Pro and Max, ZCode and Z.ai Chat. Its API and open weights are not yet released.

What is GLM-5.4?

Z.ai describes GLM-5.4 as its first flagship based on Loop Transformer: it loops 28 layers of the GLM-5 base model for two iterations at 750B scale. Z.ai claims intelligence comparable to 2T–3T parameter models. Z.ai positions it for “Generalized Coding,” including video, games, 3D and mechanical/CAD work through code.

GLM-5.4 specifications
SpecificationPublished detail
InputVideo, image, text and file
OutputText
Context window1M tokens
Maximum output128K tokens
CapabilitiesThinking mode, streaming, function calling, context caching and structured output

Z.ai reports up to 200 tokens per second off-peak and 70–80 at peak. Z.ai also notes a limitation: the model can become caught in overly long “marathon thinking” loops. See the model documentation.

Where you can use GLM-5.4 today

All GLM Coding Plan tiers—Lite, Pro and Max—support GLM-5.4. It is also available in ZCode and Z.ai Chat. The Zhipu announcement also lists Trae, WorkBuddy and Qoder. Z.ai plans API access after a security assessment and open weights after safety hardening; neither is released yet.

How to use GLM-5.4 in Claude Code with the GLM Coding Plan

Follow the Claude Code setup and model-switching instructions.

  1. Get a Coding Plan API key. Create it under Personal Coding Plan > Plan Overview, or for a team under Team Coding Plan > My Plan. Coding Plan keys are managed separately from standard API keys.
  2. Install Claude Code. With Node.js 18 or later, run:
    npm install -g @anthropic-ai/claude-code
  3. Edit the environment settings. Open ~/.claude/settings.json (Windows: %USERPROFILE%\.claude\settings.json). Add or update these entries inside the existing env object; replace the placeholder with your Coding Plan key. The example shows the relevant object:
    {
      "env": {
        "ANTHROPIC_AUTH_TOKEN": "YOUR_CODING_PLAN_API_KEY",
        "ANTHROPIC_BASE_URL": "https://api.z.ai/api/anthropic",
        "API_TIMEOUT_MS": "3000000",
        "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.4[1m]",
        "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.4[1m]",
        "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.4[1m]",
        "CLAUDE_CODE_AUTO_COMPACT_WINDOW": "1000000"
      }
    }
  4. Set context and effort. The [1m] suffix and CLAUDE_CODE_AUTO_COMPACT_WINDOW setting together enable the 1M context. Use /effort to change thinking intensity. The default is max, which Z.ai recommends for coding.
  5. Verify. Run claude and enter /status. Check that the settings source is ~/.claude/settings.json and the model is glm-5.4 or glm-5.4[1m].

For mainland China users on bigmodel.cn, use https://open.bigmodel.cn/api/anthropic as the base URL, with the same model names; see the mainland model instructions.

Troubleshooting Claude Code

  • If the [1m] model is reported missing, update Claude Code with claude update.
  • If changes do not apply, open a new terminal and check that the settings file is valid JSON.
  • Use the Coding Plan endpoint: the wrong endpoint cannot use the plan quota. See endpoint guidance.

How to use GLM-5.4 in Cline

  1. In VS Code extensions, install Cline and choose Use your own API Key.
  2. Set API Provider to OpenAI Compatible.
  3. Set Base URL to https://api.z.ai/api/coding/paas/v4. For bigmodel.cn, use https://open.bigmodel.cn/api/coding/paas/v4.
  4. Enter your Z.ai Coding Plan key in API Key.
  5. Under Model, choose Use custom and enter glm-5.4. Set Context Window Size to 1000000; Support Images can be checked.

Use the Coding Plan endpoint to consume plan quota. See the Cline integration instructions.

GLM-5.4 Coding Plan quotas and pricing

The GLM Coding Plan starts at 18 USD per month, according to Z.ai's Coding Plan overview. Individual Lite, Pro and Max prices are not listed in Z.ai's docs; check the official subscription page. The plan is limited to officially supported tools, including Claude Code and Cline.

Coding Plan credit limits
Plan5-hour creditsWeekly credits
Lite2,00010,000
Pro12,00060,000
Max28,000140,000

The 5-hour credits reset five hours after consumption; weekly credits reset every seven days from subscription. Credits are calculated as (input × input multiplier + cached input × cached multiplier + output × output multiplier) / 10,000.

Credit multipliers and off-peak usage

Credit multipliers by model
ModelInputCached inputOutput
GLM-5.44.61.116
GLM-5.36.91.724
GLM-5.3-Flash2.30.568

Off-peak usage is charged at 50%; peak is Monday–Friday, 14:00–18:00 Singapore time (UTC+8). Weekly-quota users get 1.5 times the GLM-5.3 quota when using GLM-5.4.

Estimated weekly GLM-5.4 tokens

At a 95% cache hit rate, the Coding Plan overview estimates these ranges, from all peak to all off-peak usage:

Estimated weekly tokens at 95% cache hit
PlanEstimated weekly tokens
Lite72–146M
Pro440–870M
Max1,014–2,028M

GLM-5.4 API pricing

Not published. Z.ai says API availability will follow completion of a security assessment; GLM-5.4 is absent from its API pricing table. The model API page says coming soon. Coding Plan credits are separate from API prices.

GLM-5.4 vs Kimi K3.1 vs Gemini 4 Neon

The precise Kimi model name is Kimi K3.1 Pro. API rates below are USD per 1M tokens; context and output limits are model figures. An official head-to-head benchmark among these three models is Not officially published.

GLM-5.4, Kimi K3.1 Pro and Gemini 4 Neon
FeatureGLM-5.4Kimi K3.1 ProGemini 4 Neon
DeveloperZ.ai / ZhipuMoonshot AIGoogle
AccessGLM Coding Plan, ZCode, Z.ai Chat; API pendingKimi.ai, Kimi Work, Kimi Code, Kimi APIAI Studio, Gemini API, Antigravity; paid API tier
Model IDglm-5.4kimi-k3.1-progemini-4-neon
API price per 1M tokens (input / output / cached input)Not published$2 / $10 / $0.20$3 / $15 / $0.15 (Standard; output includes thinking)
Context1M1,048,576 tokens1,048,576 tokens, unified
Max output128K131,072 default; up to 1,048,57665,536 synchronous; up to 1,048,576 long decode
Open weightsPlanned, not releasedPublished on Hugging FaceNone announced
Coding-agent routeClaude Code or Cline via Coding PlanKimi CodeAntigravity

See the Kimi quickstart, Kimi pricing and the Gemini 4 Neon guide.

FAQ

What is GLM-5.4 and where can I use it?

GLM-5.4 is a Z.ai flagship model built on Loop Transformer. It is available through GLM Coding Plan Lite, Pro and Max, ZCode and Z.ai Chat. The API and open weights are not yet released.

How do I use GLM-5.4 in Claude Code?

Get a GLM Coding Plan API key, install Claude Code, and set the Coding Plan endpoint, key and model names in the env block of ~/.claude/settings.json. Start Claude Code and use /status to check the settings and model.

How much does the GLM Coding Plan cost?

The GLM Coding Plan starts at 18 USD per month, according to Z.ai's Coding Plan overview. Individual Lite, Pro and Max prices are not listed in Z.ai's docs; check the official subscription page.

What is GLM-5.4 API pricing?

Not published. Z.ai says API access will be made available after its security assessment, and GLM-5.4 is absent from the API pricing table.

Are GLM-5.4 open weights available?

No. Z.ai plans to release the weights after necessary safety hardening; they have not been released.

GLM-5.4 vs Kimi K3.1 Pro: is there an official benchmark?

An official head-to-head benchmark for GLM-5.4, Kimi K3.1 Pro and Gemini 4 Neon is Not officially published.

Sources