# 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. - Canonical HTML: https://beatapi.io/blog/glm-5-4-api-pricing - Markdown: https://beatapi.io/blog/glm-5-4-api-pricing.md - Entity: BeatAPI (https://beatapi.io) — AI Agent Gateway (unified API and MCP tool router for AI agents) - Published: 2026-11-26 - Author: BeatAPI Team (https://beatapi.io/about) - Language: en - Category: Comparison - Topic cluster: Unified Model APIs, Comparisons & Cost Control (Pillar Hub: https://beatapi.io/model) - Reading time: 10 min read - All blog posts for agents: https://beatapi.io/blog/llms.txt ---

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

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
Platform / plan Current status Billing model & rate Protocols, modalities & limits
BeatAPI Live pay-as-you-go API (glm-5.4) $0.56 input / $0.104 cache read / $1.76 output (per 1M tokens) Flat 1M context, 128K max output; OpenAI Chat Completions, Responses, Anthropic Messages; text and tool calls verified; image/video input unverified
Z.ai GLM Coding Plan Live official subscription Lite $18/mo, Pro $80/mo, Max $168/mo (credits & 5-hour caps) Supported coding tools only (Claude Code, Codex, Cline, OpenCode, ZCode); native image input; peak-hour 1x vs off-peak 0.5x credits; not for custom backends
Z.ai Official Metered API GLM 5.4 not open yet No published price (official GLM 5.3 list rate is $1.40 / $0.26 / $4.40) Z.ai states metered API access follows safety evaluation, with no release date
AIHubMix (coding-glm-5.4) Third-party coding-plan route $0.06 input / $0.015 cache / $0.22 output (plus capped free tier) Recorded 0% uptime periods at launch; test live availability before relying on it in production
OpenRouter / Together / Fireworks / DeepInfra / Vercel / Requesty GLM 5.4 not listed No public pricing 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.

Two paper-craft groups comparing BeatAPI pay-as-you-go flat rate for backends against Z.ai Coding Plan credits for supported IDEs
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.

  1. 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.
  2. 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.
  3. 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:

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.

Three paper-craft groups showing GLM 5.3 Flash for routine edits, GLM 5.4 on BeatAPI for backends and agents, and Z.ai Coding Plan for IDE visual checks
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
Primary workload Recommended option Why it fits & key boundary
Backend services, automated PR reviews, CI/CD, headless batch pipelines, or custom agents BeatAPI (glm-5.4) 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:

  1. 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.
  2. 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.
  3. 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.

For the full Loop Transformer architecture breakdown, 30B ablation table, KingBench 4 scores, and day-one community tests, read What Is GLM-5.4? Z.ai’s Loop Transformer, Early Tests, and API Access. To compare against Google’s mid-tier reasoning model at a similar speed and price band, see Gemini 4 Neon API Pricing.

Frequently asked questions

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.