GLM 5.4
GLM 5.4 runs a Loop Transformer on the GLM-5 base for cross-file debugging, generalized coding scripts, and long-running agents that need deep self-checking.
Chat with GLM 5.4 here. Every message is a real request, billed to your balance at the same price as the API.
BeatAPI bills GLM 5.4 API per 1,000,000 tokens with separate rates for input, cached input, and output. BeatAPI keeps one flat rate across all 1,000,000 context tokens, with no long-context surcharge and no peak-hour multiplier. Reasoning tokens count as output tokens.
| Model | Specifications and pricing | beatapi |
|---|---|---|
| GLM 5.4 | GLM 5.4Input · per 1M tokens | $0.56 / 1M tokens |
| GLM 5.4 | GLM 5.4Cached input · per 1M tokens | $0.104 / 1M tokens |
| GLM 5.4 | GLM 5.4Output · per 1M tokens | $1.76 / 1M tokens |
All four GLM models share one BeatAPI key and the same endpoints. Change the request model ID based on reasoning depth, latency budget, and token cost.
GLM 5.4 runs a Loop Transformer on the GLM-5 base for cross-file debugging, generalized coding scripts, and long-running agents that need deep self-checking.
GLM 5.3 is the standard Transformer flagship for repo edits, infrastructure triage, and security reviews when teams want predictable thinking length.
GLM 5.3GLM 5.3 Flash carries the lowest paid token rate in the GLM family for everyday coding help, batch document work, and routine agent steps.
GLM 5.3 FlashGLM 5.3 FlashX is the faster-serving tier of GLM 5.3 Flash for latency-sensitive coding and agent loops on funded BeatAPI accounts.
GLM 5.3 FlashXGLM 5.4 deepens multi-step reasoning through looped forward passes instead of bloating parameter counts, keeping long engineering chains consistent.
GLM 5.4 starts from the 750B-scale GLM-5 base and loops 28 shared layers twice per forward step, backed by per-token gated updates, a hybrid KV cache, and reused sparse attention indices. GLM 5.4 pushes part of multi-step reasoning into internal loop depth so long causal chains hold together.
GLM 5.4 tracks how a requirement touches source modules, shared interfaces, build configs, and tests. GLM 5.4 returns reviewable patches, root-cause notes, and dependency checklists instead of isolated snippets.
GLM 5.4 treats code as a general tool beyond web and backend apps. Given plain text specs, GLM 5.4 writes game logic, shaders, procedural 3D scenes, CAD geometry scripts, and automated video editing pipelines.
GLM 5.4 supports function calling on BeatAPI over OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages. GLM 5.4 plans tool calls, reads test or compiler output, and adjusts the next move inside one 1,000,000-token window.
Send repository files, failing stack traces, and API contracts to GLM 5.4 API. GLM 5.4 traces cross-module dependencies, pins down logic regressions, and outputs clean diffs with regression tests.
Give GLM 5.4 API dimensional constraints, scene hierarchies, and physics rules. GLM 5.4 outputs Python CAD scripts, Three.js scenes, or game state machines ready to compile and preview locally.
Pass request handlers, auth middleware, and permission rules from authorized repos to GLM 5.4 API. GLM 5.4 follows data across trust boundaries and returns exact file locations, trigger conditions, and fix patches.
Send shot lists, timing sheets, and FFmpeg or Remotion project layouts to GLM 5.4 API. GLM 5.4 writes deterministic timeline scripts, render configs, and asset validation checks.
Architecture parameters, token limits, reasoning behavior, and verified BeatAPI protocols for glm-5.4.
| Parameter | GLM 5.4 |
|---|---|
| BeatAPI model ID | glm-5.4 |
| Model architecture | Loop Transformer evolved from the 750B-scale GLM-5 base; GLM 5.4 loops 28 shared layers twice per forward step. |
| Loop optimizations | Per-token gated updates, hybrid KV cache, and reused sparse attention indices. |
| Context window | 1,000,000 tokens |
| Max output | Up to 128,000 tokens per request, covering internal thinking tokens, tool arguments, and visible text. |
| Reasoning behavior | GLM 5.4 returns thinking by default and can spend extra time self-checking hard prompts. Size max_tokens to cover both thinking and the final reply. |
| Input modality boundary | BeatAPI serves glm-5.4 on text endpoints for text messages and tool calls. Direct image and video input is not yet verified on BeatAPI's glm-5.4 route. |
| Supported protocols | OpenAI Chat Completions (POST /v1/chat/completions), OpenAI Responses (POST /v1/responses), and Anthropic Messages (POST /v1/messages), all with streaming. |
| Billing rule | One flat per-1M-token rate across all 1,000,000 context tokens with no long-context surcharge; thinking tokens bill as output. |
Compare request IDs, architectures, token caps, and live BeatAPI rates across all four GLM models.
| Dimension | GLM 5.4 | GLM 5.3 | GLM 5.3 Flash | GLM 5.3 FlashX |
|---|---|---|---|---|
| Model ID | glm-5.4 | glm-5.3 | glm-5.3-flash | glm-5.3-flashx |
| Architecture | Loop Transformer (28 shared layers × 2) | Standard Transformer flagship | Multimodal Flash architecture | High-speed Flash serving tier |
| Context window | 1,000,000 | 1,000,000 | 1,000,000 | 1,000,000 |
| Max output | 128,000 | 128,000 | 128,000 | 128,000 |
| BeatAPI input / output (per 1M tokens) | $0.56 / $1.76 | $0.56 / $1.76 | $0.06 / $0.20 | $0.148 / $0.50 |
| Best fit | Generalized coding, cross-file debugging, deep self-checking agents | Repo engineering, infrastructure triage, security reviews | Lowest-cost paid coding, batch extraction, routine agent steps | Fast-response coding and agent loops on funded accounts |
| API | GLM 5.4 | GLM 5.3 | GLM 5.3 Flash | GLM 5.3 FlashX |
Drop a BeatAPI key into your existing OpenAI SDK or Anthropic SDK and call glm-5.4 directly from your server.
Sign up or sign in to open the Dashboard. Check your balance and open the credits page if you need to add funds.
Open DashboardBeatAPI pairs GLM 5.4's Loop Transformer reasoning depth with flat 1M-token context pricing.
GLM 5.4 runs 28 shared layers twice on a 750B-scale base for deeper multi-step reasoning. BeatAPI prices glm-5.4 identically to glm-5.3, so teams upgrade with zero price hike.
BeatAPI charges one input rate, one cached-input rate, and one output rate across all 1,000,000 context tokens for glm-5.4. Large repo prompts trigger no long-context tier jump and no peak surcharge.
BeatAPI routes glm-5.4 over OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages. Existing OpenAI SDKs, Anthropic SDKs, and coding agents connect by changing the base URL and model ID.
GLM 5.4 can spend extra time self-checking hard bugs. BeatAPI's https://direct.beatapi.io/v1 skips Cloudflare's 100-second idle cutoff so long reasoning calls finish cleanly.
GLM 5.4 is Z.ai's first Loop Transformer flagship reasoning model for generalized coding, cross-file software engineering, and long-running agents. On BeatAPI, developers call glm-5.4 over OpenAI Chat Completions, OpenAI Responses, or Anthropic Messages with pay-as-you-go billing and a 1,000,000-token context window.
GLM 5.3 uses a standard sequential Transformer stack, while GLM 5.4 loops 28 shared layers from the 750B-scale GLM-5 base twice per forward pass. Combined with per-token gated updates, a hybrid KV cache, and reused sparse attention indices, GLM 5.4 deepens reasoning without inflating parameter count.
Pick GLM 5.4 for cross-file coding, generalized coding scripts, and deep self-checking agents. Keep GLM 5.3 when workflows prefer standard flagship thinking length. Pick GLM 5.3 Flash for lowest-cost high-volume runs, or GLM 5.3 FlashX for faster Flash throughput on funded accounts.
BeatAPI gives glm-5.4 a 1,000,000-token context window and up to 128,000 output tokens per request. Output tokens include both internal thinking tokens and visible text, so set max_tokens higher than the expected reply length.
GLM 5.4 returns thinking by default, and BeatAPI bills thinking tokens inside completion_tokens at the output rate. Hard prompts can run longer self-checking loops, so enable streaming, point base URL to https://direct.beatapi.io/v1, and avoid relying on unverified thinking-disable flags.
BeatAPI exposes glm-5.4 on text endpoints for text messages and tool calling. Z.ai's native apps add visual coding input for GLM 5.4, whereas direct image and video input on BeatAPI's glm-5.4 route is not yet verified—send code, logs, and text specs to glm-5.4.
BeatAPI bills glm-5.4 per 1,000,000 tokens across input, cached input, and output, as listed in the GLM 5.4 Pricing table above. BeatAPI charges flat rates across the entire 1,000,000-token window with no long-context surcharge, and cached-input pricing applies to gateway-reported cache hits.
Create a BeatAPI key in the dashboard, point the OpenAI SDK baseURL to https://direct.beatapi.io/v1 (or Anthropic SDK baseURL to https://direct.beatapi.io), and set model to glm-5.4. Developers can also try prompts directly in the GLM 5.4 Playground at the top of this page.
Connect GLM 5.4 with other production-ready APIs in the BeatAPI catalog.