· reAPI Team
GLM 5.4 Loop Transformer Pricing, Coding Plan Locks, and API
Verified Dec 1, 2026 audit of GLM 5.4: 28-layer Loop Transformer specs, $18-$168 Coding Plan locks, missing API and benchmarks, and Flash status.

Z.ai launched GLM 5.4 on November 23, 2026 by running 28 middle layers of its 750 billion parameter GLM-5 base twice per token, promising reasoning depth comparable to 2 trillion to 3 trillion parameter models inside a 1 million token context window.[1][2] Eight days later, on December 1, 2026, a direct audit of Z.ai's billing portal, LiteLLM's 7,214-model registry, OpenRouter, Artificial Analysis, and Hugging Face shows a sharply narrower operational picture than the headline implies.[3][7][8][9][10]
There is still no pay-as-you-go public API, no per-token price card, no downloadable model weights, no GLM 5.4 Flash variant, and not a single published benchmark table for the 750 billion parameter flagship itself.[1][2][3][9] Access remains gated behind the GLM Coding Plan (starting at $18 per month on Lite, up to $168 per month on Max), ZCode, and signed-in Z.ai Chat, under strict tool-only usage rules that prohibit custom backend apps and allow account bans after three violations.[4][5][6]
How GLM 5.4 Loops 28 Layers Without Exploding 1M Context
A conventional Transformer passes each token through every decoder block once. GLM 5.4 keeps a 78-layer layout built on the 750 billion scale GLM-5 base, sending representations through 26 entry layers, looping layers 27 through 54 for two weight-shared iterations, and finishing with 24 exit layers.[1][11] That produces 106 effective layer applications per token without expanding the physical parameter footprint on GPU memory.[1]
Crucially, Z.ai did not train this looped model from scratch. Its research note states that looped models trained from scratch still trail standard unshared Transformers at equal pre-training compute budgets.[1] Instead, Z.ai adapted an existing pre-trained base via continued training, validating the recipe progressively across 1 billion, 4 billion, 30 billion, and 750 billion scales.[1] Making two-pass looping viable at a 1 million token context window required three concrete engineering modifications documented in the launch post:[1][2]
- Gated progressive updates: Overwriting hidden states directly across loop passes caused activation norms to blow up before reaching downstream layers. Z.ai added independent per-token gates for each pass; the first pass builds global context conservatively with small gate values, and the second pass opens the gates for full refinement, writing harder tokens more aggressively on pass one.[1]
- Hybrid KV cache (global sharing plus local sliding window): Keeping two full 1 million token KV caches would double serving memory.[1] In GLM 5.4, the second iteration reuses the sparse KV selected on pass one and stores newly computed KV only inside a bounded local sliding window, keeping incremental memory overhead manageable at long context.[1]
- Sparse attention index reuse: Rather than running the sparse attention indexer twice, pass two reuses pass one's attention indices at zero extra indexing cost, which Z.ai reports performs nearly identically to recomputing indices.[1]
On paper, those three changes pair with two visible product upgrades over GLM 5.3. First, official developer docs list input modalities of Video, Image, Text, and File (with Text output and a 128K output ceiling), whereas GLM 5.3 is text-only and audio input remains unlisted.[2] Second, fused systems kernels let Z.ai advertise up to 200 tokens per second off-peak and 70 to 80 tokens per second under peak load.[1][2]
One architectural catch matters for anyone wiring GLM 5.4 into a latency-sensitive workflow. The internal 28-layer loop is fixed at two passes per token (dynamic adaptive loop counts remain an open research item under Z.ai's "Looking Ahead" section), yet the external chain-of-thought token count is unbounded.[1] Z.ai candidly warns that GLM 5.4 tends to fall into overly long "marathon thinking" loops on difficult prompts.[1] That explains why a model whose 30 billion ablation cut output length by 10% to 14% can still stall an interactive terminal session for minutes when reasoning effort stays at its default max setting.[1][12]
Z.ai frames its demos as "Generalized Coding": writing code to assemble a self-narrated music video ("Hello World"), modeling a 6-axis robotic arm in FreeCAD, generating a playable game, and rendering an interactive 3D macro bird-watching scene in custom GLSL shaders.[1] Because output modality is strictly text, these showcases prove multi-step tool and code synthesis rather than a native video-rendering endpoint.[2]
Coding Plan Pricing, Credit Multipliers, and Account Locks
Because Z.ai has published no pay-as-you-go token pricing for GLM 5.4, subscription billing on the GLM Coding Plan is the only published rate card as of December 1, 2026.[3][4] All individual tiers (Lite, Pro, Max) and both Team Plan seats unlock GLM 5.4, GLM 5.3, and GLM 5.3-Flash under dual rolling limits: a dynamic 5-hour credit bucket and a 7-day weekly credit cap.[4][5][6]
| GLM Coding Plan Tier | Monthly Price | Yearly Rate (per month) | 5-Hour Credits | Weekly Credits | Weekly GLM 5.4 Token Estimate (95% Cache) |
|---|---|---|---|---|---|
| Individual Lite[4] | $18[4] | $12.60 (30% off)[4] | 2,000[5] | 10,000[5] | 72 to 146 million[5] |
| Individual Pro[4] | $80[4] | $56.00 (30% off)[4] | 12,000[5] | 60,000[5] | 440 to 870 million[5] |
| Individual Max[4] | $168[4] | $117.60 (30% off)[4] | 28,000[5] | 140,000[5] | 1,014 to 2,028 million[5] |
| Team Standard Seat (min 2 seats)[6] | Per-seat console quote | Per-seat console quote | 15,000[6] | 66,000[6] | 479 to 957 million[6] |
| Team Premium Seat (min 2 seats)[6] | Per-seat console quote | Per-seat console quote | 35,000[6] | 155,000[6] | 1,124 to 2,246 million[6] |
Source: Z.ai Subscription Portal (z.ai/subscribe)[4], Coding Plan Overview (docs.z.ai/devpack/overview)[5], and Team Plan Benefits (docs.z.ai/devpack/teamplan)[6], checked December 1, 2026. Quarterly billing takes 20% off monthly rates.[4]
The headline selling point for existing subscribers is lower credit burn than GLM 5.3. Z.ai calculates model credits with one published formula: Credits = (Input tokens × Input multiplier + Cached Input tokens × Cached multiplier + Output tokens × Output multiplier) / 10,000.[5] (Several third-party launch summaries dropped the / 10,000 divisor and misreported credits per single token.) Under that formula, GLM 5.4 charges 4.6 credits per 10,000 fresh input tokens, 1.1 per 10,000 cached input tokens, and 16 per 10,000 output tokens, compared with 6.9 / 1.7 / 24 on GLM 5.3.[5] Cutting multipliers by 33.3% to 35.3% gives weekly subscribers 1.5x the usable token allowance of GLM 5.3 at the same subscription price.[2][5]
Two billing mechanics hidden in the footnotes determine whether those weekly numbers hold up in real work:
First, off-peak pricing cuts credit burn by 50% for 20 hours every weekday and all weekend.[5] Z.ai defines peak hours narrowly as Monday through Friday, 14:00 to 18:00 Singapore Standard Time (UTC+8), which maps to 06:00 to 10:00 UTC or 01:00 to 05:00 US Eastern Standard Time.[5] Developers working normal North American or Latin American daytime hours run completely off-peak and effectively land near the upper bound of each token range, while East Asian afternoon sessions pay full 1x rates.[5]
Second, those 72 million to 2,028 million weekly estimates rely heavily on 95% to 98% prompt cache hit rates.[5] Output tokens (16 credits per 10,000) cost 14.5x more credits than cached input (1.1).[5] Run an uncached refactoring burst consuming 1 million fresh input tokens plus 1 million generated reasoning and patch tokens during peak hours, and the formula deducts (1,000,000 × 4.6 + 1,000,000 × 16) / 10,000 = 2,060 credits, blowing past Lite's entire 2,000-credit 5-hour ceiling in one burst.[5] That mismatch explains why developers on X complained within the first week that marathon thinking eats through Coding Plan quota rapidly despite the 1.5x multiplier cut.
Beyond token math, Z.ai's Usage Policy and FAQ enforce six contractual locks that disqualify the Coding Plan for application backends or CI pipelines:[6][13][14]
- Officially supported tools only: Usage Policy explicitly restricts Coding Plan credentials to approved coding agents (ZCode, Claude Code, Codex, Cline, OpenCode, Goose, Cursor, AutoClaw, OpenClaw); custom scripts, SaaS backends, or shared team accounts violate terms, and accounts accumulating more than three risk-control violations can be permanently banned.[13][14]
- Hard stop on Individual exhaustion: When a Lite, Pro, or Max subscriber hits the 5-hour or 7-day cap, requests halt until reset. Z.ai's FAQ confirms the platform will not fall back to prepaid API balance on Individual plans; only Team Plan administrators can toggle pay-as-you-go overage (currently discounted
10%from model API list price).[6][14] - Dynamic concurrency caps: Z.ai recommends
1concurrent project on Lite,1to2on Pro or Team Standard, and2or more on Max or Team Premium, tightening concurrency dynamically during peak hours.[6][13] - Zero refunds and conflicting cancellation windows: Every subscription is non-refundable once charged, and Z.ai's own pages contradict each other on renewal cutoff (
docs.z.ai/devpack/usage-policyinstructs canceling at least3days before renewal, whereasdocs.z.ai/devpack/faqspecifies24hours).[13][14] - Key-to-endpoint separation (
Error 1113): Sending a Coding Plan key to a standard API URL triggers"1113 Insufficient Balance"or drains cash balance instead of plan credits.[14]
Public API, Free Access, and Open Weights Audit on Dec 1
Nearly every launch-day summary noted that the standard API and weights were missing on November 23. Checking six live primary surfaces on December 1, 2026 confirms that none of those blockers has cleared after eight days.
| Verification Surface | Live Result Checked Dec 1, 2026 | Operational Implication |
|---|---|---|
Z.ai Model API Landing (z.ai/model-api)[3] | Page still titled "Start building with GLM-5.3" ($1.40 in / $0.26 cached / $4.40 out per million tokens)[3] | No public pay-as-you-go GLM 5.4 endpoint exists yet[2][3] |
Z.ai Official API Pricing (docs.z.ai/guides/overview/pricing)[3] | Zero GLM 5.4 or GLM 5.4 Flash rows; Latest Models stops at GLM-5.3, GLM-5.3-Flash ($0.15/$0.50), and FlashX ($0.37/$1.25)[3] | Even Team Plan docs claim "up to 92%" savings vs a "GLM-5.4 Standard API" that has no public rate card[3][6] |
Z.ai Release Notes (docs.z.ai/release-notes/new-released)[2] | Latest dated entry remains 2026-08-26 (GLM-5.3-Flash)[2] | Official API changelog has not recorded a GLM 5.4 GA launch |
LiteLLM Global Registry (BerriAI/litellm)[7] | 0 matches for glm-5.4 across 7,214 model keys (179 glm-5* routes end at glm-5.3 / glm-5.3-flash)[7] | Zero cloud partner staging on Bedrock, Vertex AI, Azure, Together, Baseten, or Nebius[7] |
OpenRouter Live Catalog (openrouter.ai/api/v1/models)[8] | 0 matches across 472 live models (12 z-ai/glm-5* routes top out at z-ai/glm-5.3-prime)[8] | No third-party pay-per-token marketplace carries GLM 5.4 yet[8] |
Hugging Face Organization (huggingface.co/zai-org)[9] | 0 GLM 5.4 repos; newest repos are GLM-5.3-Flash-BF16 and GLM-5.3-BF16 (October 15, 2026)[9] | Self-hosting and air-gapped deployment remain blocked until weights and a license drop[1][9] |
Source: Live December 1, 2026 inspections of Z.ai developer docs[2][3][6], LiteLLM[7], OpenRouter[8], and Hugging Face[9].
What about free access? Search interest for "glm 5.4 free" jumped after launch, yet the answer depends on whether you mean casual chat or developer tooling. On chat.z.ai without signing in, only GLM-5.3-Flash is selectable while GLM 5.4 and GLM 5.3 appear greyed out behind a "Sign up for free" banner; Z.ai publishes no free daily message quota for signed-in chat accounts, and zero free API tier or downloadable weights exist for developers.[1][11] Note also that Simon Willison demonstrated on launch night that a paid Coding Plan key does authenticate against Z.ai's OpenAI-compatible Responses endpoint (https://api.z.ai/api/v1) for personal CLI scripting, though Usage Policy still binds Coding Plan keys to supported developer tools rather than commercial server apps.[13][15]
Missing 750B Benchmark Data and Early Field Reports
The sharpest gap in the GLM 5.4 rollout is evaluation transparency. Eight days after release, Z.ai still has not published a model card or a single standardized benchmark score for the 750 billion parameter flagship.[1][2] Because there is no public pay-as-you-go API or open checkpoint, independent evaluators have not been able to score it either: artificialanalysis.ai/models/glm-5-4 returns HTTP 404 on December 1, 2026, and Artificial Analysis's Z.ai provider page still tracks only four older endpoints led by GLM-5.3 (max) (Intelligence Index 32, $5.01 per task, 25.1 minutes per task, 69.40s time to first answer token).[10]
The only quantitative benchmark table Z.ai released comes from a controlled iso-parameter ablation on a 30 billion parameter test model (identical parameters, roughly 10% more total training compute, evaluated after 200K long-context SFT with thinking enabled):[1][11]
| Evaluation Suite (30B Ablation Only, Not 750B) | Baseline 30B | Looped 30B | Output Length Change |
|---|---|---|---|
| AIME25[11] | 19.17 | 30.42 (+11.25) | 2.0% shorter[11] |
| GPQA-Diamond[11] | 47.58 | 56.26 (+8.68) | 11.7% shorter[11] |
| AA-LCR (Long Context Reasoning)[11] | 40.33 | 47.67 (+7.34) | 9.7% shorter[11] |
| MMLU-Pro[11] | 71.65 | 75.05 (+3.40) | 14.9% shorter[11] |
| IFBench[11] | 50.20 | 53.47 (+3.27) | 13.0% shorter[11] |
Source: Z.ai 30B iso-parameter ablation figures reported from Z.ai's launch chart (z.ai/blog/glm-5.4[1] and Proje Defteri transcription[11]).
Treat those numbers strictly as proof that continued-training looping helps at 30 billion scale.[1] They do not verify Z.ai's claim that 750 billion GLM 5.4 matches 2 trillion to 3 trillion parameter rivals.[1] Be equally cautious of AI-generated aggregator blog posts currently ranking in Google search that fabricate "official Z.ai" 750 billion scores (such as bogus 53.8% SWE-bench Verified or 78.4% GPQA-Diamond figures) or advertise non-existent reasoning_depth: "deep_loop" router endpoints.[1][7]
In place of formal leaderboards, early developer field reports from week one highlight a clear split by reasoning effort and task type. On November 30, a multi-role developer benchmark posted to r/ZaiGLM (builder, reviewer, engineer, planner) found that GLM 5.4 at low effort matched or beat GLM 5.3 and GLM 5.3-Flash at max effort using a fraction of the time and tokens, yet raising GLM 5.4 to high inflated completion time and cost roughly 5x while introducing overthinking regressions (catching obscure edge cases while missing obvious surface bugs), and the tester skipped max entirely as too slow for interactive loops.[16] Separate r/LocalLLaMA threads similarly praised code synthesis while faulting non-coding prose as stiff and literal. Meanwhile, Z.ai's own closing line on the launch blog ("our next, significantly larger model will carry forward everything we learned here. It will be ready soon") has already led analysts to treat GLM 5.4 as a transitional architecture validation ahead of a larger native successor.[1]
Sorting GLM 5.4 Flash Rumors From Real Agent Setup
Search queries for "glm 5.4 flash" kept climbing into December 1, driven largely by stealth-model speculation around an anonymous test endpoint nicknamed HungerG that testers later identified as Step 5 rather than a Z.ai release. Checked against Z.ai's developer docs, subscription tables, Hugging Face, OpenRouter, and LiteLLM on December 1, 2026, there is no GLM 5.4 Flash model.[3][5][7][8][9]
Z.ai's active lightweight tier remains GLM 5.3-Flash, a 320 billion total / 18 billion active hybrid linear-and-sparse attention model under an MIT open-weight license, priced at $0.15 input / $0.03 cached / $0.50 output per million tokens on Z.ai's Standard API.[2][3] On the Coding Plan, Z.ai is running a limited-time 50% quota discount on GLM 5.3-Flash from November 24 through December 24, 2026, slashing its credit multipliers from 2.3 / 0.56 / 8 down to 1.15 / 0.28 / 4 (one-quarter of GLM 5.4's rate).[5] Because GLM 5.3-Flash already supports video, image, text, and file inputs, Coding Plan subscribers do not need to move routine visual or high-volume edits onto GLM 5.4 just to parse screenshots.[2][5]
If you already hold an active GLM Coding Plan and want to wire GLM 5.4 into Claude Code with its full 1 million token window, Z.ai's official model-switching guide uses https://api.z.ai/api/anthropic as ANTHROPIC_BASE_URL and adds these keys to ~/.claude/settings.json:[12]
{
"env": {
"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]"
}
}For Cline and other OpenAI-compatible agents, configure base URL https://api.z.ai/api/coding/paas/v4 with model string glm-5.4, set the context window to 1000000, and enable image support; Codex uses https://api.z.ai/api/v1.[12] Before starting a long refactoring session, pay close attention to Z.ai's silent reasoning-effort mapping table, because thinking cannot be turned off on GLM 5.4 and defaults to max:[12]
| Parameter Sent by Client | Effective GLM 5.4 Effort | Runtime Behavior |
|---|---|---|
thinking.type omitted, true, enabled, adaptive | max (default) | Highest marathon-thinking and credit burn risk[1][12] |
thinking.type set to false, disabled, none, off | low | Request succeeds; silently runs lightweight thinking[12] |
reasoning_effort: minimal, light, low | low | Recommended starting point for interactive coding[12][16] |
reasoning_effort: medium, high | high | Auto-converted to high; watch for overthinking[12][16] |
reasoning_effort: xhigh, max, ultra, or unknown string | max | Falls back to max and logs a hint[12] |
Source: Z.ai How to Switch Models (docs.z.ai/devpack/latest-model)[12] and r/ZaiGLM developer testing[16].
Running /status in Claude Code verifies that glm-5.4[1m] is active, and typing /effort low before routine file edits keeps marathon thinking from draining a 5-hour quota window prematurely.[12][16]
Pay-As-You-Go APIs Beyond Z.ai Subscription Boundaries
To be completely transparent about what we host: reAPI does not serve GLM 5.4 or GLM 5.3 inference today. Our GLM 5.3 overview and GLM 5.3 setup guide direct readers to external SeedRouter routing for GLM 5.3, and no third-party gateway anywhere can legally proxy pay-as-you-go GLM 5.4 until Z.ai completes its security assessment and opens the Standard Model API.[2][7][8]
If you already pay for a Z.ai Coding Plan seat for interactive IDE work, switching from GLM 5.3 to GLM 5.4 at low effort is a straightforward win for vision input and lower credit multipliers.[5][12] If you instead need a production REST API right now for automated CI code review, backend agents, or multi-developer services without tool-only locks, 5-hour quota stalls, or missing independent benchmarks, four 1 million token context models are live pay-as-you-go on reAPI today:
| Live Pay-As-You-Go Model on reAPI | Context / Max Output | Verified reAPI Input / Output (per MTok) | Independent Benchmark & Positioning |
|---|---|---|---|
Claude Opus 5.5 (claude-opus-5-5) | 1M / 128K | $2.80 / $14.00 default ($2.00 / $10.00 on :claude-0.5; direct $4.00 / $20.00)[17] | Artificial Analysis Index 58; proven flagship for multi-file systems engineering[17][18] |
Claude Sonnet 5.5 (claude-sonnet-5-5) | 1M / 128K | $1.40 / $7.00 default ($1.00 / $5.00 on :claude-0.5; direct $2.00 / $10.00)[17] | Fast everyday coding, tool calls, and vision with native Anthropic Messages support[17] |
Kimi K3.1 Pro (kimi-k3.1-pro) | 1,048,576 / 128K+ | $2.00 / $10.00 ($0.10 cache read)[18] | Artificial Analysis Index 55; forced tool choice (required/named) and strong coding[18] |
DeepSeek V4.1 Flash (deepseek-v4.1-flash) | 1M / 384K | $0.40 / $1.30 ($0.015 cache read)[19] | MIT open weights, 384K single-pass output ceiling, high-volume Flash alternative[19] |
Source: Live December 1, 2026 reAPI model documentation and rate disclosures[17][18][19].
Teams building automated workflows can ship on Claude Opus 5.5, Claude Sonnet 5.5, or Kimi K3.1 Pro now while holding a frozen 20-task repository benchmark suite ready to score GLM 5.4 the day Z.ai finally publishes its pay-as-you-go API, per-token rate card, and open weights. Until those three items land, treat GLM 5.4 as a compelling Loop Transformer preview strictly scoped to interactive Coding Plan seats, not a drop-in production API dependency.
- Z.ai Blog: GLM-5.4 (Nov 23).
- Z.ai GLM-5.4 Docs (Dec 1).
- Z.ai API Pricing (Dec 1).
- Z.ai Coding Plan (Dec 1).
- Z.ai Credit Formula (Dec 1).
- Z.ai Team Plan (Dec 1).
- LiteLLM Registry (Dec 1).
- OpenRouter Catalog (Dec 1).
- HF zai-org (Dec 1).
- Artificial Analysis Z.ai (Dec 1).
- Proje Defteri Ablation (Nov 23).
- Z.ai Switching Models (Dec 1).
- Z.ai Usage Policy (Dec 1).
- Z.ai Devpack FAQ (Dec 1).
- Simon Willison Note (Nov 23).
- r/ZaiGLM Field Test (Nov 30).
- reAPI Claude Rates (Dec 1).
- reAPI Kimi K3.1 Pro (Dec 1).
- reAPI DeepSeek V4.1 Flash (Dec 1).