BeatAPI logoBeatAPI
Model
GeneratorAgent
Open Source
Pricing
Sign In
Model
AI Video APIAI Image APILLM APIAI Workflow APIExplore all APIs
Social Data
X / Twitter
Instagram
TikTok
YouTube
Reddit
Threads
LinkedIn
SEO Data
Web Search
GeneratorAgent
Open Source
BeatDesign
BeatGEO
BeatBrowser
All open-source projects
Pricing
Product
Docs
Content
Blog
Gallery
Changelog
Explore
Use Cases
Tools
Alternatives
Grow with us
Invite friends
Affiliate program
Sign In
Back to blog

Article

BeatAPI TeamBeatAPI Team
Published: Nov 26, 2026
10 min read

On this page

Quick answerHow much does GLM 5.4 cost across available channels?How do Z.ai Coding Plan credits convert to real task spend?What drives GLM 5.4 API cost beyond token rates?What do three real GLM 5.4 workloads cost on BeatAPI vs Z.ai Coding Plan?When should you pick BeatAPI pay-as-you-go vs Z.ai Coding Plan?How to verify GLM 5.4 on BeatAPI in ten minutesFrequently asked questions

Share to

Back to blog

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.

Published: Nov 26, 2026
·10 min read·BeatAPI Team

Share to

GLM 5.4 above a folded-paper balance scale weighing a double-looped forest-green paper ribbon against layered paper sheets

See also

  • What Is GLM-5.4? Z.ai's Loop Transformer, Early Tests, and API Access
  • Claude Opus 5.5 vs DeepSeek V4.1 Flash 1017: Coding, Agents, and API Costs
  • Where Can I Get a Free DeepSeek API for Small Automations?
  • What Is GPT-6.1 Sol? Capabilities, API Access, Pricing, and Limitations
  • GPT-6.1 Sol vs GPT-6 Sol vs Astra: Which Should You Use for a Coding Agent?
  • How to Use Space Bunny Alpha for Coding: Setup, Free Limits, and Troubleshooting

Explore model APIs

LLM API

GLM 5.4

LLM API

GLM 5.3

LLM API

GLM 5.3 Flash

LLM API

GLM 5.3 FlashX

BeatAPI logoBeatAPIBeatAPI is an AI Agent Gateway: unified API and MCP tool router for models, live data, and agent workflows.
AI Summary
  • Open in ChatGPT
  • Copy the prompt and open in Copilot
  • Copy the prompt and open in Gemini
  • Copy the prompt and open in Claude
  • Open in Perplexity
  • Copy the prompt and open in Muse
  • Open in Grok
  • Open in Doubao
  • Open in Qwen
  • Copy the prompt and open in DeepSeek

LLM API

Qwen 4.0Qwen3.8 MaxQwen3.8 Flash
Claude
  • Claude Fable 5.2
  • Claude Sonnet 5.5
  • Claude Fable 5.1
  • Claude Opus 5.5
  • Claude Haiku 5.5
  • Claude Opus 5
  • Claude Sonnet 5
  • Claude Haiku 4.5
GPT
  • GPT-6.2 Sol
  • GPT-6.2 Astra
  • GPT-6.1 Terra
  • GPT-6.1 Sol
  • GPT-6 Astra
  • GPT-6 Sol
  • GPT-6 Luna
  • GPT-5.6 Sol
Gemini
  • Gemini 4 Neon
  • Gemini 4 Carbon
  • Gemini 4 Hydrogen
  • Gemini 4 Argon
  • Gemini 3.1 Pro
  • Gemini 3.8 Flash
  • Gemini 3.7 Flash
  • Gemini 3.6 Flash
Grok 4.7Grok 4.6Grok 4.5DeepSeek V4 ProDeepSeek V4.1 FlashDeepSeek V4 FlashKimi K3.1 ProKimi K3
Z.ai (GLM)
  • GLM 5.4
  • GLM 5.3
  • GLM 5.3 Flash
  • GLM 5.3 FlashX
  • Ox Alpha
MiniMax M3.1 FlashMiniMax M3Muse WonderMiMo V2.6 FlashMiMo V2.5Hunyuan HY4Hunyuan HY3

AI Image API

Kling Image 4.0MiniMax H3 ImageSeedream 5.5Seedream 5.0 ProSeedream 5.0 LiteGPT Image 2.6GPT Image 2.5GPT Image 2Qwen Image 2.1
Nano Banana
  • Nano Banana
  • Nano Banana 2
  • Nano Banana 2.1
  • Nano Banana 2 Lite
  • Nano Banana Pro
Grok Imagine Image 2.0

AI Workflow API

Jev APIAI Music VideoAI Ecommerce VideoVideo AnalysisAI Content Moderation API

AI Video API

Seedance
  • Seedance 2.5 Flash
  • Seedance 2.0
  • Seedance 2.0 Mini
  • Seedance 2.5
MiniMax H3MiniMax H3 MaxGrok Imagine Video 1.5Wan 3.0Wan 3.0 PrimeHappyHorse 1.0HappyHorse 1.1Gemini Omni 1.2 FlashGemini Omni 1.1 FlashVeo 3.1
Kling
  • Kling 4.0
  • Kling 3.0
  • Kling 2.6 Motion Control
  • Kling 3.0 Motion Control
Real Time Video

Data

Social Data API
  • Instagram Data API
  • TikTok Data API
  • YouTube Data API
  • X / Twitter Data API
  • Reddit Data API
  • Threads Data API
  • LinkedIn Data API
SEO Data APIWeb Search API

For AI agents

llms.txtllms-full.txtpricing.mdabout.mdblog/llms.txtskill.mdGuidesFAQ

Resources

support@beatapi.io
Integrations
  • Claude Code MCP
  • Codex MCP
  • Cursor MCP
  • OpenCode MCP
  • Muse
Use CasesPricingAPI DocsBlogGalleryGPT-6 Astra 3D PromptsMiniMax H3 PromptsSeedance 2.5 PromptsChangelogAlternativesOpen SourceAwesome JEVToolsGeneratorJEV SignalsInvite friendsAffiliate programAboutPrivacy PolicyTerms of Service
2026 BeatAPI - All Rights Reserved
Verified on DANG!BeatAPI - Featured on AI Agents Directory

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
Platform / planCurrent statusBilling model & rateProtocols, modalities & limits
BeatAPILive 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 PlanLive official subscriptionLite $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 APIGLM 5.4 not open yetNo 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 / RequestyGLM 5.4 not listedNo public pricingCatalogs 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 tierMonthly priceWeekly credit cap5-hour window capPublished weekly tokens (at 98% cache hit)
Lite$18 / month10,000 credits2,000 credits78M (all peak) to 156M (all off-peak)
Pro$80 / month60,000 credits12,000 credits470M (all peak) to 941M (all off-peak)
Max$168 / month140,000 credits28,000 credits1,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:

  • 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 / modelTask A: 4.58M-token heavy buildTask B: Cross-file agent runTask 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 backendsNot 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 workloadRecommended optionWhy it fits & key boundary
Backend services, automated PR reviews, CI/CD, headless batch pipelines, or custom agentsBeatAPI (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 $18BeatAPI (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 inspectionZ.ai GLM Coding PlanNative 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 stepsBeatAPI · GLM 5.3 FlashGLM 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.