Prime Intellect Offers GLM-5.4 at 71% Lower Rates Than Z.ai
Z.ai's Loop Transformer flagship with 1M context and native vision lands on Prime Intellect at a fraction of first-party pricing.
Takeaways
- Prime Intellect added GLM 5.4 to its serverless inference with on-demand and dedicated endpoints.
- Pricing: $0.40/M input, $0.0744/M cached, $2.464/M output, roughly 3.5x cheaper than Z.ai direct.
- GLM 5.4 is Z.ai's first Loop Transformer flagship, running a shared 28-layer block twice per forward pass.
- 1,048,576-token context window, 131,072 max output, native vision, tool calling, OpenAI-compatible API.
- Reasoning is always on with low, high, and max effort levels; max is the default.
- Model was previously gated to GLM Coding Plan subscribers; weights remain closed for now.
Prime Intellect has added GLM-5.4 to its serverless inference catalog. Developers can call Z.ai’s latest flagship through an OpenAI-compatible API using on-demand or dedicated endpoints, without buying a Z.ai Coding Plan subscription. The model joins DeepSeek, Kimi, and other open-model families behind Prime’s existing routing layer.
Z.ai launched GLM-5.4 on November 23, initially limiting access to Coding Plan subscribers while withholding its general pay-as-you-go API and model weights. Its direct API now advertises usage-based rates, while the weights remain unavailable. Prime’s listing gives teams another hosted option before local deployment is possible.
A 28-layer block does double duty
Z.ai describes GLM-5.4 as its first flagship with native vision and its first model built around a Loop Transformer. The architecture starts from an approximately 750-billion-parameter GLM-5 base and runs a shared 28-layer middle block twice during each token-generation pass.
A conventional transformer processes each token through a fixed sequence of layers. GLM-5.4 reuses the same block, adding computational depth without duplicating those parameters. The extra pass can support harder reasoning tasks, but it also increases inference work and can produce long reasoning traces.
| Capability | Published specification |
|---|---|
| Inputs | Text and images |
| Context window | 1.05 million tokens on Prime; 1 million on Z.ai |
| Maximum output | 128,000 tokens on Z.ai’s API |
| Reasoning | Always enabled |
| Reasoning effort | low, high, and max; max is the default |
| Weights | Not publicly released |
Prime cuts the posted token rates
Prime posts substantially lower rates than Z.ai for the same model family. Its hosted endpoint charges $0.40 per million input tokens, $0.0744 per million cached input tokens, and $2.464 per million output tokens.
| Provider | Input | Cached input | Output | Context |
|---|---|---|---|---|
| Prime Intellect | $0.40 | $0.0744 | $2.464 | 1.05M |
| Z.ai API | $1.40 | $0.26 | $4.40 | 1M |
| Friendli via OpenRouter | $1.40 | Not listed | Not listed | 1M |
Prime’s posted input and cache rates are about 71% lower than Z.ai’s, while its output rate is 44% lower. Those differences compound in workloads that repeatedly send large repositories, document collections, or agent histories through prompt caching.
Prime’s catalog reports 0.67-second latency, throughput of 90 tokens per second, and 100% uptime. The listing does not specify the benchmark prompts, latency definition, load level, or uptime window, so production comparisons require tests with representative requests.
Memory optimizations support the discount
Prime’s public prime-rl repository documents one-command SLURM deployment for GLM-5 in FP8, an eight-bit floating-point format that reduces memory use. The stack separates prompt processing from token generation, routes requests with llm-d, and uses Mooncake to offload the key-value cache that stores attention data from earlier tokens.
Prime’s experimental HiSparse path moves the sparse multi-head latent attention key-value cache into pinned host memory. During generation, GPU buffers retain only the selected attention entries needed by each request. Lower GPU memory pressure allows the serving system to keep more long-context sequences active concurrently, improving hardware utilization.
Prime has not disclosed the exact production configuration behind its GLM-5.4 endpoint. The repository documents relevant serving techniques, while endpoint-level benchmarks remain necessary to measure concurrency, cache performance, and latency under sustained load.
Fast lineage, closed weights
The GLM family moved from GLM-4.6, which offered a 200,000-token input window and open weights, through GLM-5 and GLM-5.3 Flash to the Loop Transformer design in GLM-5.4. Prime’s catalog positions GLM-5.3 as the preceding reasoning model, making GLM-5.4 the current top-tier option in that lineup.
Z.ai has not released GLM-5.4’s weights, which rules out local deployment, custom weight hosting, and weight-level fine-tuning for now. Prime and Z.ai provide hosted inference access, with Prime offering the lower published token rates.
Migration details developers should verify
An OpenAI-compatible surface reduces integration work for applications already using compatible chat, streaming, image, and tool-calling schemas. Teams moving an existing workload should still validate Prime’s implementation before switching production traffic.
- Client configuration: Use the base URL, API key, and model identifier shown in Prime’s dashboard rather than assuming the Z.ai model name maps directly.
- Reasoning controls: Set the effort level explicitly when
maxis unnecessary. Reasoning cannot be disabled. - Usage accounting: Check how cached input, reasoning tokens, and visible output appear in API usage fields and billing records.
- Multimodal payloads: Test image encoding, size limits, tool schemas, and tool-call argument serialization against Prime’s endpoint.
- Streaming and retries: Confirm event formats, timeout behavior, rate-limit responses, and retry handling under long reasoning traces.
- Editor integrations: Cursor, Codex, and similar clients can connect when they accept a custom OpenAI base URL. Claude Code may require a supported adapter or an Anthropic-compatible bridge.
- Capacity planning: On-demand access suits evaluation and variable traffic. Dedicated endpoints are available for sustained workloads, subject to Prime’s capacity and service terms.
Forced reasoning changes the bill
GLM-5.4 always performs reasoning, defaults to max effort, and may generate lengthy traces on difficult prompts. Output-token consumption and total latency can therefore outweigh the lower per-token rate, especially for short requests that need deterministic answers rather than extended planning.
Short classification, extraction, and formatting calls may remain cheaper on GLM-5.3 Flash or another lightweight model. GLM-5.4 is better aligned with long-context coding, multi-step agents, planning, and multimodal debugging where additional inference compute can improve task completion.
Production evaluations should measure task success, input and cached-token counts, generated-token usage, time to first token, total latency, and failure rates at each reasoning level. Those measurements will determine whether Prime’s lower posted rates translate into a lower cost per completed task.