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.
| Specification | Published detail |
|---|---|
| Input | Video, image, text and file |
| Output | Text |
| Context window | 1M tokens |
| Maximum output | 128K tokens |
| Capabilities | Thinking 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.
- 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.
- Install Claude Code. With Node.js 18 or later, run:
npm install -g @anthropic-ai/claude-code - Edit the environment settings. Open
~/.claude/settings.json(Windows:%USERPROFILE%\.claude\settings.json). Add or update these entries inside the existingenvobject; 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" } } - Set context and effort. The
[1m]suffix andCLAUDE_CODE_AUTO_COMPACT_WINDOWsetting together enable the 1M context. Use/effortto change thinking intensity. The default is max, which Z.ai recommends for coding. - Verify. Run
claudeand enter/status. Check that the settings source is~/.claude/settings.jsonand the model isglm-5.4orglm-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 withclaude 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
- In VS Code extensions, install Cline and choose Use your own API Key.
- Set API Provider to OpenAI Compatible.
- Set Base URL to
https://api.z.ai/api/coding/paas/v4. For bigmodel.cn, usehttps://open.bigmodel.cn/api/coding/paas/v4. - Enter your Z.ai Coding Plan key in API Key.
- Under Model, choose Use custom and enter
glm-5.4. Set Context Window Size to1000000; 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.
| Plan | 5-hour credits | Weekly credits |
|---|---|---|
| Lite | 2,000 | 10,000 |
| Pro | 12,000 | 60,000 |
| Max | 28,000 | 140,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
| Model | Input | Cached input | Output |
|---|---|---|---|
| GLM-5.4 | 4.6 | 1.1 | 16 |
| GLM-5.3 | 6.9 | 1.7 | 24 |
| GLM-5.3-Flash | 2.3 | 0.56 | 8 |
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:
| Plan | Estimated weekly tokens |
|---|---|
| Lite | 72–146M |
| Pro | 440–870M |
| Max | 1,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.
| Feature | GLM-5.4 | Kimi K3.1 Pro | Gemini 4 Neon |
|---|---|---|---|
| Developer | Z.ai / Zhipu | Moonshot AI | |
| Access | GLM Coding Plan, ZCode, Z.ai Chat; API pending | Kimi.ai, Kimi Work, Kimi Code, Kimi API | AI Studio, Gemini API, Antigravity; paid API tier |
| Model ID | glm-5.4 | kimi-k3.1-pro | gemini-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) |
| Context | 1M | 1,048,576 tokens | 1,048,576 tokens, unified |
| Max output | 128K | 131,072 default; up to 1,048,576 | 65,536 synchronous; up to 1,048,576 long decode |
| Open weights | Planned, not released | Published on Hugging Face | None announced |
| Coding-agent route | Claude Code or Cline via Coding Plan | Kimi Code | Antigravity |
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
- Z.ai GLM-5.4 announcement
- Zhipu GLM-5.4 announcement
- Z.ai GLM-5.4 documentation
- GLM Coding Plan overview
- Coding Plan model configuration
- Claude Code setup
- Coding Plan supported tools
- Z.ai API pricing
- BigModel GLM-5.4 documentation
- BigModel Coding Plan configuration
- Coding Plan FAQ
- ZCode
- Z.ai Chat
- Z.ai model API
- Z.ai subscription plans
- Kimi K3.1 Pro announcement
- Kimi K3.1 Pro quickstart
- Kimi API pricing
- Kimi K3.1 Pro weights
- Gemini 4 Neon model documentation
- Google AI Studio pricing
- Antigravity models