# 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.
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.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.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).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.
| 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.
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.
| 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.
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.
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.max_tokens ceiling that covers thinking plus visible output, and cap automated retries in your agent runner.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.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:
| 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.
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.
| 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.
Run three concrete checks on GLM 5.4 on BeatAPI before moving full traffic:
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.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.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.
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.
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.
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.
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.
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.
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.