GLM 5.4 API Pricing: BeatAPI Pay-As-You-Go vs Z.ai Coding Plan Costs
Compare GLM 5.4 API pricing on BeatAPI ($0.56 input / $1.76 output) against Z.ai Coding Plan subscriptions ($18 to $168/mo), credit math, and workload budgets.
GLM 5.4 is Z.ai’s first Loop Transformer flagship reasoning model, released on November 22, 2026 PT. GLM 5.4 starts from the 750B-parameter GLM-5 base and loops 28 shared middle layers twice per forward pass to handle cross-file software engineering, generalized coding scripts (3D scenes, CAD geometry, and game logic), and multi-step agent loops inside a 1,000,000-token context window. As of November 26, 2026, Z.ai offers GLM 5.4 only inside its monthly GLM Coding Plan ($18 to $168/month for supported coding tools), ZCode, and Z.ai Chat, with no official pay-as-you-go API price published. Developers who need pay-as-you-go API access for backends or automated pipelines can call glm-5.4 on BeatAPI at $0.56 per million input tokens, $0.104 for cached input reads, and $1.76 for output tokens (including thinking), with one flat rate across the full 1M context window and no peak-hour multiplier.
Quick answer
BeatAPI provides direct pay-as-you-go glm-5.4 API billing today: BeatAPI charges $0.56 per million uncached input tokens, $0.104 for cached input reads, and $1.76 for output tokens (including thinking), matching BeatAPI’s GLM 5.3 rate and sitting 60% below Z.ai’s official GLM 5.3 list rate ($1.40 / $0.26 / $4.40). BeatAPI supports a 1,000,000-token context window, 128,000 max output tokens, and OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages protocols.
Z.ai’s official GLM 5.4 access is subscription-only and restricted to supported coding tools: Z.ai’s GLM Coding Plan sells Lite ($18/month), Pro ($80/month), and Max ($168/month) tiers with weekly credit caps and five-hour windows. Usage consumes full credits from 10:00 PM to 2:00 AM PT (Sunday through Thursday, 2:00 to 6:00 PM UTC+8 on weekdays) and half credits off-peak, and Coding Plan keys do not apply to custom backend services outside supported tools such as Claude Code, Codex, Cline, OpenCode, and ZCode.
Major third-party routers do not yet host standard GLM 5.4 endpoints: As of November 26, 2026, OpenRouter, Together, Fireworks, DeepInfra, Vercel AI Gateway, and Requesty still cap their catalogs at the GLM 5.3 family. AIHubMix lists a coding-glm-5.4 endpoint ($0.06 input / $0.22 output), which recorded 0% uptime periods during launch and requires live stability checks before production use.
Choose between BeatAPI and Z.ai Coding Plan by execution environment and image input needs: Use Z.ai Coding Plan for heavy personal IDE work inside Claude Code or ZCode that relies on native screenshot inspection and off-peak volume. Use BeatAPI for custom backend APIs, CI pipelines, headless batch runs, or low-volume usage where five-hour caps and monthly commitments get in the way (BeatAPI serves glm-5.4 on text endpoints for text messages and tool calls; direct image and video input on BeatAPI’s glm-5.4 route is not yet verified).
How much does GLM 5.4 cost across available channels?
As of November 26, 2026, GLM 5.4 has two primary access paths: pay-as-you-go token billing on BeatAPI and subscription credit billing on Z.ai’s GLM Coding Plan. Z.ai has not opened a standard metered API or released open weights for GLM 5.4, so most multi-model inference platforms still list GLM 5.3 as their newest Z.ai flagship. The table below summarizes live status, pricing, and technical boundaries across each channel.
GLM 5.4 pricing and channel status checked November 26, 2026
Catalogs currently top out at GLM 5.3 models until Z.ai opens metered APIs or open weights
Two common pricing traps circulated during GLM 5.4 launch week. First, screenshots showing "$75 input / $75 output" came from a self-hosted gateway’s default placeholder for unpriced models, not from Z.ai. Second, any team integrating GLM 5.4 into backend code, CI pipelines, or scheduled jobs cannot legally or technically route that traffic through Z.ai’s Coding Plan keys, which leaves BeatAPI as the direct pay-as-you-go API option.
How do Z.ai Coding Plan credits convert to real task spend?
Z.ai sets GLM 5.4’s Coding Plan credit multipliers to two-thirds of GLM 5.3’s multipliers, so the same monthly subscription buys 50% more tokens on GLM 5.4 than on GLM 5.3. According to the Z.ai Coding Plan documentation, credit burn follows credits = (input x 4.6 + cached_input x 1.1 + output x 16) / 10,000. Requests consume full credits during peak hours (10:00 PM to 2:00 AM PT, Sunday through Thursday; 2:00 to 6:00 PM UTC+8 on weekdays) and half credits at all other times.
Z.ai GLM Coding Plan V2/V3 tiers and weekly GLM 5.4 allowances
Plan tier
Monthly price
Weekly credit cap
5-hour window cap
Published weekly tokens (at 98% cache hit)
Lite
$18 / month
10,000 credits
2,000 credits
78M (all peak) to 156M (all off-peak)
Pro
$80 / month
60,000 credits
12,000 credits
470M (all peak) to 941M (all off-peak)
Max
$168 / month
140,000 credits
28,000 credits
1,097M (all peak) to 2,195M (all off-peak)
Z.ai Coding Plan’s effective per-token cost stays low only when three conditions hold together: your team uses most of the weekly allowance every week, schedules heavy runs outside peak hours, and keeps prompt cache hit rates near 95% to 98%. Light monthly usage or peak-hour bursts that hit the five-hour window ceiling raise the real cost per completed task. Legacy V1 plans without weekly caps retain GLM 5.4 access but do not receive the 1.5x multiplier reduction.
BeatAPI bills GLM 5.4 per token for custom backends with no peak multiplier; Z.ai Coding Plan meters credits inside supported coding tools.
What drives GLM 5.4 API cost beyond token rates?
Three model behaviors swing GLM 5.4 task spend more than small differences in per-million-token rates: default deep-thinking loops, the 14x to 17x gap between output and cached-input pricing, and connection timeouts during long reasoning turns.
Default deep thinking and repeated self-checks multiply total tokens: GLM 5.4 runs deep reasoning by default and bills all internal thinking tokens at the output rate. In day-one ZCode tests at max effort, single-file SVG animation builds took 19 to 35 minutes and consumed roughly 4.58 million tokens because GLM 5.4 repeatedly inspected and revised its own output. In KingBench 4, short tasks with a 180-second limit flipped the effort order: low solved 25 of 25 in 66.5 seconds while high and max timed out. Reserve high reasoning depth for multi-file refactors and route quick edits to lower effort or GLM 5.3 Flash.
Output tokens dominate the bill on both BeatAPI and Z.ai Coding Plan: On BeatAPI, GLM 5.4 output ($1.76/1M) costs 16.9x more than cached input ($0.104/1M). On Z.ai Coding Plan, the output credit multiplier (16) is 14.5x higher than the cached-input multiplier (1.1). Set an explicit max_tokens ceiling that covers thinking plus visible output, and cap automated retries in your agent runner.
BeatAPI’s flat 1M rate removes context jumps, but long runs need the direct endpoint: BeatAPI charges one flat rate for glm-5.4 across all 1,000,000 context tokens with no 200K surcharge and no peak-hour doubling. Because hard GLM 5.4 prompts can think for over 100 seconds before completing, send BeatAPI requests to https://direct.beatapi.io/v1 with streaming enabled so Cloudflare’s 100-second idle timeout does not drop the connection mid-turn.
What do three real GLM 5.4 workloads cost on BeatAPI vs Z.ai Coding Plan?
Across three illustrative workloads calculated from November 26, 2026 public rates, BeatAPI bills $0.691 for a heavy 4.58M-token build, $0.342 for a cross-file debugging agent run, and $8.00 for 1,000 uncached code reviews. Every BeatAPI GLM 5.4 figure matches BeatAPI’s GLM 5.3 cost, sits 60% below Z.ai’s official GLM 5.3 list price, and undercuts BeatAPI’s Gemini 4 Neon and Claude Opus 5.5 on the same token counts. These figures are budget calculations from assumed token volumes, not measured invoices:
Task A (Heavy 4.58M-token build modeled on day-one community runs): 137.4K uncached input (3%), 4.351M cached input (95%), and 91.6K output including thinking (2%).
Task B (Cross-file debugging and refactor agent run): 200K uncached input, 1.2M cached input reads, and 60K output including thinking.
Task C (1,000 uncached code-review or script-generation calls): 8,000 input tokens and 2,000 output tokens (including thinking) per call with no shared prefix, totaling 8M input and 2M output tokens.
Estimated spend in USD across three illustrative workloads (same token counts)
Plan / model
Task A: 4.58M-token heavy build
Task B: Cross-file agent run
Task C: 1,000 uncached calls
BeatAPI · GLM 5.4 (pay-as-you-go)
$0.691
$0.342
$8.00
Z.ai Coding Plan Lite ($18/mo, supported tools only)
688 credits peak / 344 off-peak (34% / 17% of 5-hr cap; ~$0.31 / $0.16 if fully utilized)
320 credits peak / 160 off-peak in supported IDEs; not allowed for custom backends
Not applicable to headless batch APIs
Z.ai official GLM 5.3 ($1.40 / $0.26 / $4.40)
$1.727
$0.856
$20.00
BeatAPI · GLM 5.3 ($0.56 / $0.104 / $1.76)
$0.691
$0.342
$8.00
BeatAPI · Gemini 4 Neon ($0.90 / $0.09 / $4.50)
$0.927
$0.558
$16.20
BeatAPI · Claude Opus 5.5 ($2.00 / $0.10 / $10.00)
$1.626
$1.120
$36.00
At monthly engineering volume, 100 Task B cross-file agent runs on BeatAPI cost $34.24 with GLM 5.4. Scaling to 500 monthly runs totals $171.20 on BeatAPI GLM 5.4, which is 39% below BeatAPI’s Gemini 4 Neon ($279.00) and 69% below BeatAPI’s Claude Opus 5.5 ($560.00) at identical token counts. Teams already running GLM 5.3 on BeatAPI can switch the model ID to glm-5.4 with zero change in per-token pricing.
When should you pick BeatAPI pay-as-you-go vs Z.ai Coding Plan?
Pick BeatAPI when GLM 5.4 runs inside custom backend services, CI pipelines, or bursty multi-model workflows, and pick Z.ai Coding Plan when an individual developer spends daily hours inside Claude Code or ZCode and needs native image input.
Split GLM traffic by workload: Flash for routine edits, BeatAPI GLM 5.4 for backend agents, and Z.ai Coding Plan for IDE visual self-checks.
Recommended GLM 5.4 access path by engineering scenario
Z.ai Coding Plan prohibits use outside supported coding tools. BeatAPI offers metered USD billing, no 5-hour or peak-hour caps, and OpenAI Chat Completions, Responses, and Anthropic Messages endpoints.
Occasional testing or irregular monthly spend under $18
BeatAPI (glm-5.4)
No fixed monthly subscription and no expiring balance; one API key also routes to GLM 5.3 Flash, DeepSeek V4.1 Flash, Gemini 4 Neon, or Claude Opus 5.5.
Daily personal front-end or game coding inside Claude Code, ZCode, or Cline with screenshot inspection
Z.ai GLM Coding Plan
Native image input is confirmed in Z.ai’s supported clients, and high off-peak utilization lowers effective token cost below metered rates.
High-volume text extraction, simple edits, or fast agent steps
BeatAPI · GLM 5.3 Flash
GLM 5.3 Flash bills $0.06/1M input on BeatAPI (with a rate-limited free tier), keeping simple steps off GLM 5.4’s deeper loop passes.
Two BeatAPI boundaries matter before migrating production code. First, BeatAPI exposes glm-5.4 on text endpoints for text messages and tool calling; direct image and video input on BeatAPI’s glm-5.4 route is not yet verified, so send code, logs, and text specs to glm-5.4 and keep screenshot-driven loops on Z.ai’s native clients or a verified multimodal model. Second, GLM 5.4 runs longer self-checking turns on hard prompts, so server clients must use https://direct.beatapi.io/v1 with streaming enabled.
How to verify GLM 5.4 on BeatAPI in ten minutes
Run three concrete checks on GLM 5.4 on BeatAPI before moving full traffic:
Send 3 to 5 historical coding tasks through the direct endpoint: Create a BeatAPI key, set your OpenAI SDK baseURL to https://direct.beatapi.io/v1 (or Anthropic SDK to https://direct.beatapi.io), set model to glm-5.4, and turn on stream: true so long reasoning turns bypass the 100-second CDN idle limit.
Inspect usage and reasoning_tokens in every response: Confirm repeated repository prefixes bill at $0.104/1M cached input, check what share of completion tokens goes to internal reasoning, and verify finish_reason is not hitting max_tokens.
Compare cost per accepted patch across your stack: Include retries and rework in total spend, compare against GLM 5.3, Gemini 4 Neon, or Claude Opus 5.5 on the same test suite, and split routine steps onto GLM 5.3 Flash.
Has Z.ai opened an official pay-as-you-go API for GLM 5.4?
As of November 26, 2026, Z.ai has not opened a standard pay-as-you-go API or published per-token API pricing for GLM 5.4; Z.ai’s official pricing page still tops out at GLM 5.3 ($1.40 input, $0.26 cached input, $4.40 output per million tokens). Z.ai currently restricts official GLM 5.4 access to its monthly GLM Coding Plan ($18 to $168/month), ZCode, and Z.ai Chat. Teams needing metered API calls today can use BeatAPI at $0.56 input, $0.104 cached input, and $1.76 output per million tokens.
Does GLM 5.4 cost more than GLM 5.3 on BeatAPI?
No. BeatAPI prices glm-5.4 and glm-5.3 identically at $0.56 per million input tokens, $0.104 for cached input reads, and $1.76 for output tokens (including thinking). Both models use one flat rate across the entire 1,000,000-token context window with no long-context surcharge and no peak-hour multiplier.
Can I use a Z.ai Coding Plan API key inside my own backend service?
No. Z.ai restricts GLM Coding Plan quota to supported coding tools such as Claude Code, Codex, Cline, OpenCode, and ZCode, and separates Coding Plan keys from standard API keys (effective October 16, 2026). Custom backend applications, CI jobs, and headless automation pipelines require a metered API such as BeatAPI’s glm-5.4 endpoint.
Does BeatAPI support image or video input on glm-5.4?
Direct image and video input on BeatAPI’s glm-5.4 route is not yet verified. BeatAPI serves glm-5.4 over text endpoints for text messages, tool calls, and structured outputs across OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages. For visual screenshot debugging with GLM 5.4, use Z.ai’s supported native clients or route multimodal inputs to a verified vision model.
Why do long GLM 5.4 API calls time out, and how do I prevent wasted spend?
GLM 5.4 enables deep thinking by default and can run multiple self-checking passes that exceed standard 100-second CDN idle timeouts. On BeatAPI, point requests to https://direct.beatapi.io/v1, enable streaming (stream: true), and set an explicit max_tokens limit that leaves room for thinking plus the final answer. Route routine single-file edits to lower effort or GLM 5.3 Flash so short tasks do not trigger long reasoning loops.
Is GLM 5.4 available on OpenRouter or AIHubMix?
As of November 26, 2026, OpenRouter, Together, Fireworks, DeepInfra, Vercel AI Gateway, and Requesty do not list GLM 5.4. AIHubMix lists a coding-glm-5.4 endpoint at $0.06 input and $0.22 output (plus a capped free tier), but launch monitoring recorded 0% uptime periods; run sustained availability checks before routing production traffic there.