Editorial

GLM-5.4 Coding Plan Cost: 34.8% Fewer Credits

GLM-5.4 has no API price yet. On the Coding Plan a 60-turn agent session costs 1,060.8 credits at peak, so Lite covers 9.4 a week.

JJyoti Ranjan SwainUpdated
GLM-5.4 on the GLM Coding Plan: 1,060.8 credits per 60-turn agent session against 1,626.6 on GLM-5.3

Z.ai released GLM-5.4 on 23 November 2026, and so far you can only use it through the GLM Coding Plan. The model page says the pay-per-token API will open "upon completion of the security assessment", and the pricing page still has no GLM-5.4 row. So there's no dollar rate to compare yet. What you get instead is a credit multiplier, and the plan's credit allowance decides how much agent work a subscription buys.

We ran the same 60-turn agent session from our other cost posts through Z.ai's published credit formula. On GLM-5.4 it costs 1,060.8 credits at peak hours. On GLM-5.3 it costs 1,626.6. The new flagship burns 34.8% fewer credits per session than the model it replaces. The Lite plan's weekly allowance still covers only 9.4 of those sessions if you run them at peak.

Below: the credit maths, what each plan buys, the peak window in Indian time, the Claude Code settings Z.ai publishes, and the two catches in the docs.

Table of Contents

GLM-5.4 at a glance

SpecGLM-5.4
Released23 November 2026 (Z.ai blog)
ArchitectureLoop Transformer: 28 layers of the GLM-5 base run twice per forward pass
Scale750B, per the blog's ablation section
Context1M tokens
Max output128K tokens
InputVideo, image, text, file
SpeedUp to 200 tokens/s off-peak, 70-80 tokens/s at peak
Where to use itGLM Coding Plan (Lite, Pro, Max). No public API price yet

Z.ai claims intelligence "comparable to 2T-3T parameter models". It publishes no benchmark table for GLM-5.4 itself on the model page, only charts and a 30B ablation, so treat that line as a claim to test on your own repo.

The loop design has one detail that affects long-context cost on Z.ai's side. The second pass reuses the sparse KV picked in the first pass and keeps only a sliding window of its own new KV. An extra loop therefore costs one sliding window of cache, not a second full 1M-token cache. On the 30B test model, average output length on GPQA-Diamond and MMLU-Pro fell 10-14%, because some of the reasoning moved from written-out thinking tokens into loop depth.

How Coding Plan credits are counted

Since 30 July 2026 the Coding Plan bills in credits. Z.ai's formula:

credits = (input tokens × input multiplier + cached input tokens × cached multiplier + output tokens × output multiplier) / 10,000

The multipliers from the plan overview page:

ModelInputCached inputOutput
GLM-5.44.61.116
GLM-5.36.91.724
GLM-5.3-Flash, 24 Nov to 24 Dec1.150.284
GLM-5.3-Flash, normal2.30.568

Each line on GLM-5.4 is about two thirds of GLM-5.3's. Off-peak usage is charged at 50% of these rates. GLM-5.3-Flash is at half its normal multipliers until 24 December.

One 60-turn session in credits

The workload: 60 turns, a 120K-token prefix (system prompt, tool schemas, repo context) that stays cached after turn 1, then 3K new input tokens and 1.5K output tokens per turn. Turn 1 pays for the full 123K prefix as uncached input. That gives 300,000 uncached input tokens, 7,080,000 cached tokens and 90,000 output tokens. Cache hits are 95.9% of the input, which lines up with the 95-98% hit rates Z.ai uses in its own allowance table.

ModelUncached inputCached inputOutputSession, peakSession, off-peak
GLM-5.4138.0778.8144.01,060.8530.4
GLM-5.3207.01,203.6216.01,626.6813.3
GLM-5.3-Flash, promo34.5198.2436.0268.74134.37
GLM-5.3-Flash, normal69.0396.4872.0537.48268.74

Credits per 60-turn agent session at peak: GLM-5.3 1,626.6, GLM-5.4 1,060.8, GLM-5.3-Flash 268.74 during the promo

The cached line is 73.4% of the GLM-5.4 bill. As with per-token APIs, the cache rate decides what a long agent loop costs, so keep the prefix stable: put tool schemas and instructions first and don't reorder them between turns.

For scale: the same session on GLM-5.3 through the pay-per-token API ($1.4 in, $0.26 cached, $4.4 out per million) costs $2.6568. You can check that, or try your own token mix, in the API Cost Calculator. GLM-5.4 isn't listed there because Z.ai hasn't published an API price.

Sessions per week on Lite, Pro and Max

Each plan has two caps: credits per rolling 5-hour window and credits per week.

PlanMonthly price5-hour creditsWeekly creditsGLM-5.4 sessions/week, peakOff-peakPer 5-hour window, peak
Lite$182,00010,0009.418.91.89
Pro$8012,00060,00056.6113.111.31
Max$16828,000140,000132.0264.026.40

GLM-5.4 agent sessions per week: Lite 9.4 at peak and 18.9 off-peak, Pro 56.6 and 113.1, Max 132.0 and 264.0

Pro has 6x Lite's credits and Max has 14x, matching the subscribe page. Yearly billing is 30% off ($12.6, $56 and $117.6 a month) and quarterly is 20% off.

Turned into money, on monthly billing and a full month of weekly caps, a GLM-5.4 session costs about $0.441 on Lite at peak and $0.220 off-peak. On Max it drops to $0.294 and $0.147. That's well under the $2.6568 the session costs on GLM-5.3's API, but only if you actually use the allowance. Subscription credits you don't spend are worth nothing.

The cheaper option for routine turns is GLM-5.3-Flash. During its promo it burns 3.95x fewer credits per session than GLM-5.4, so Lite covers 37.2 Flash sessions a week at peak. A sensible split is Flash for edits, test runs and file search, and GLM-5.4 for planning and hard bugs.

Peak hours in IST

Z.ai's peak window is Monday to Friday, 14:00-18:00 Singapore time (UTC+8). In India that's 11:30 to 15:30 IST on weekdays. Outside it, every model costs half the credits, and weekends are entirely off-peak.

Weekday credit rates in IST: full rate 11:30 to 15:30, half rate the rest of the day and all weekend

If you're on a legacy prompt-based plan, the rule differs. GLM-5.4 uses quota at 0.67x off-peak and 2x at peak, against 1x and 3x for GLM-5.3.

Long unattended runs are the easiest thing to move. Start a refactor or a test-fixing loop before 11:30 or after 15:30 and it costs half the credits. During the peak window, Lite's 2,000 credits per 5 hours cover fewer than two GLM-5.4 sessions.

Claude Code settings for GLM-5.4

Z.ai's Claude Code guide points ANTHROPIC_BASE_URL at its Anthropic-compatible endpoint and maps all three Claude model slots to GLM. By default those slots map to GLM-5.3-Flash. To switch to GLM-5.4 with the 1M context, add these keys to ~/.claude/settings.json and leave the rest of the file alone:

json
{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "YOUR_ZAI_API_KEY",
    "ANTHROPIC_BASE_URL": "https://api.z.ai/api/anthropic",
    "API_TIMEOUT_MS": "3000000",
    "CLAUDE_CODE_AUTO_COMPACT_WINDOW": "1000000",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.4[1m]",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.4[1m]",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.4[1m]"
  }
}

Claude Code settings.json sends requests to api.z.ai/api/anthropic, which runs glm-5.4[1m] and bills Coding Plan credits

Run claude, type /status, and check that the model reads glm-5.4 or glm-5.4[1m]. If Claude Code says the [1m] model doesn't exist, update Claude Code.

The config above puts GLM-5.4 on the Haiku slot too. That's Z.ai's example, but it sends Claude Code's background calls to the most expensive model on the plan. To save credits, set ANTHROPIC_DEFAULT_HAIKU_MODEL to glm-5.3-flash and keep GLM-5.4 on Sonnet and Opus.

Since 16 October 2026, Coding Plan keys and standard API keys are managed separately. Create the key under Personal Coding Plan, Plan Overview. A pay-per-token key won't work here. For OpenAI-compatible tools such as Cline the base URL is https://api.z.ai/api/coding/paas/v4, and Codex uses https://api.z.ai/api/v1.

Thinking effort and the marathon-thinking warning

Output tokens carry the highest multiplier (16 on GLM-5.4), and Z.ai's own launch post names the model's main weakness: it "tends to get caught in overly long 'marathon thinking' loops". Two details in the switch guide make that worse for your credit balance.

First, the default effort is max. Any unknown reasoning_effort string also falls back to max. Second, you can't turn thinking off. Setting thinking.type to disabled, none or off maps to low, which still does some thinking. The mapping is minimal, light and low to low, medium and high to high, and xhigh, max and ultra to max. In Claude Code, /effort switches it per session.

There's a fair amount of headroom. Holding input fixed, GLM-5.4 stays cheaper than GLM-5.3's 1,626.6 credits until output reaches 443,625 tokens per session, 4.9x the 90,000 in our workload. If you double output to 180,000 tokens, the session costs 1,204.8 credits. Watch the per-type token counts on Z.ai's billing page for your first few days, and drop routine steps to low if output climbs.

FAQ

Can I call GLM-5.4 through the normal Z.ai API?

Not yet. The model page says the Model API opens after a security assessment, with no date given. Until then it's only on the Coding Plan, and the Coding Plan FAQ lists GLM-5.4, GLM-5.3 and GLM-5.3-Flash as the only callable models.

Are GLM-5.4 weights open?

Z.ai hasn't published GLM-5.4 weights or a model card on Hugging Face as of 30 November 2026, so there's nothing to size for local VRAM yet. For the earlier open release, see our GLM-5.3-Flash VRAM and pricing post or run the numbers in the AI VRAM Calculator.

Does the 1M context cost extra credits?

The overview page lists one set of multipliers per model with no long-context tier. A 1M-token prompt still costs 1,000,000 × 4.6 / 10,000 = 460 credits uncached at peak, though, which is almost a quarter of Lite's 5-hour window.

Sources

  • Z.ai blog, "GLM-5.4: Toward Generalized Coding with Our First Loop Transformer", dated 2026-11-23 (z.ai/blog/glm-5.4, read 30 November 2026): architecture, 750B scale, KV cache design, output-length finding, speeds, marathon-thinking limitation.
  • Z.ai docs, GLM-5.4 model page (docs.z.ai/guides/llm/glm-5.4): context, max output, modalities, Coding Plan availability, API pending security assessment.
  • Z.ai docs, GLM Coding Plan overview (docs.z.ai/devpack/overview): credit formula, multipliers, 5-hour and weekly credits, off-peak 50% rate, peak hours, GLM-5.3-Flash promo dates.
  • Z.ai docs, How to Switch Models (docs.z.ai/devpack/latest-model): settings.json keys, [1m] suffix, effort mapping, endpoints for Claude Code, Codex and OpenAI-compatible tools.
  • Z.ai docs, Claude Code guide, Plan Update Announcement, FAQ and API key management notice (docs.z.ai/devpack/...): base URL, default model mapping, legacy plan rates, callable models, separate keys since 16 October 2026.
  • Z.ai subscribe page (z.ai/subscribe, read 30 November 2026): $18, $80 and $168 monthly prices, quarterly and yearly discounts, 6x and 14x usage.
  • Z.ai pricing page (docs.z.ai/guides/overview/pricing): GLM-5.3 API rates, no GLM-5.4 row.
  • Session credits, sessions per week, per-session dollar figures and the break-even output are calculated by ToolMintX from those numbers.

Tools In This Article

Browser-based, no sign-up. Try them while the topic is fresh.

More From ToolMintX

Other Blog Posts