Last refreshed 2026-12-02. Next refresh: weekly.
Why use GLM-5.4 on Prime Inference?
Prime Inference offers GLM-5.4 with pay-as-you-go pricing at $1.20/1M input tokens. Prime Inference provides an OpenAI-compatible API for shared models and dedicated endpoints.
Compare GLM-5.4 across 9 providers to find the best fit for your use caseInput / 1M
$1.20
Output / 1M
$4.00
Cache
read $0.10
Batch
Not sourced
Setup recipe
Docs fallbackInstall
Use the provider REST API or SDKAuth
Create a provider API keyCall
model: z-ai/glm-5.4Model ID
z-ai/glm-5.4Request example
Curated snippets for this provider are not sourced yet. Use Prime Inference documentation with model ID
z-ai/glm-5.4.Gotchas
- Use provider model ID "z-ai/glm-5.4", not the LLMReference slug "glm-5.4".
Compare GLM-5.4 Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| Z.ai | $1.40 | $4.40 |
| OpenRouter | $1.40 | $4.40 |
| Vercel AI Gateway | $1.40 | $4.40 |
| Baseten API | $1.40 | $4.40 |
| FriendliAI Serverless Endpoints | $1.40 | $4.40 |
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $1.20 |
| Output tokens | $4.00 |
Capabilities
VisionMultimodalReasoningJSON / Tool useStructured OutputsPrompt Caching
About GLM-5.4
GLM-5.4 is a multimodal coding and reasoning model using a Loop Transformer that reuses layers. It accepts text, images, video and files, supports a 1M-token context and 128K output, and is available through the Z.ai API and GLM Coding Plan.
Get Started
Model Specs
Released2026-11-23
Context1M
ArchitectureMixture of Experts