GLM-5.4 API
Call GLM-5.4 through Wokey and review published catalog pricing, upstream-native API forms, context, and model capabilities.
- Model ID
glm-5.4- Vendors
- zhipu
- Supply status
- Currently callable
Catalog pricing snapshot
Prices are per 1M tokens; request-time pricing controls settlement.
| Meter | Wokey | Official reference | Savings |
|---|---|---|---|
| Input | $0.42 | $1.4 | 70% |
| Output | $1.32 | $4.4 | 70% |
| Cache read | $0.078 | $0.26 | 70% |
| Cache write | — | — | — |
Official price source: https://docs.z.ai/devpack/overview
Model capabilities
- Context
- 1,000,000 tokens
- Max output
- 131,072 tokens
- Streaming
- Supported
- Tools
- Supported
- Vision
- Supported
- Supported API forms
/v1/chat/completions·/v1/messages
Send a request
/v1/chat/completions
curl https://api.wokey.ai/v1/chat/completions \
-H "Authorization: Bearer $WOKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"glm-5.4","messages":[{"role":"user","content":"Hello"}]}'/v1/messages
curl https://api.wokey.ai/v1/messages \
-H "x-api-key: $WOKEY_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model":"glm-5.4","max_tokens":1024,"messages":[{"role":"user","content":"Hello"}]}'Use GLM-5.4 in your tools
The gateway is https://api.wokey.ai (OpenAI-compatible clients usually take https://api.wokey.ai/v1), and the model ID is glm-5.4. Open the guide for the client you use.
- Use GLM-5.4 in Claude Code: Anthropic Messages · base URL and API key setup
- Use GLM-5.4 in Claude Desktop: Anthropic Messages · base URL and API key setup
- Use GLM-5.4 in opencode: OpenAI Chat Completions · base URL and API key setup
- Use GLM-5.4 in pi: Anthropic Messages · base URL and API key setup
- Use GLM-5.4 in DeepSeek Harness: OpenAI Chat Completions · base URL and API key setup
- Use GLM-5.4 in Z Code: Anthropic Messages · base URL and API key setup
- Use GLM-5.4 in Cherry Studio: OpenAI Chat Completions · base URL and API key setup
- Use GLM-5.4 in WorkBuddy: OpenAI Chat Completions · base URL and API key setup
- Use GLM-5.4 in OpenClaw: OpenAI Chat Completions · base URL and API key setup
- Use GLM-5.4 in Hermes Agent: OpenAI Chat Completions · base URL and API key setup
- Use GLM-5.4 in Magpie: OpenAI Chat Completions · base URL and API key setup
- OpenRouter alternative: Wokey vs OpenRouter: Compare token prices, payment fees, API forms, and upstream sources.
- Verifiable AI API: which models and API forms carry response proofs: Response proofs currently cover only raw passthrough Claude Messages and GPT Responses on official routes.
Frequently asked questions
How much does the GLM-5.4 API cost, and how much does it save versus the official API?
Wokey lists input at $0.42 per 1M tokens and output at $1.32 per 1M tokens; the official references are $1.4 and $4.4. That is 70% lower for input and 70% lower for output. Request-time pricing controls settlement, and the vendor pricing source is linked on this page.
What is the GLM-5.4 API model ID?
The model ID for GLM-5.4 on Wokey is glm-5.4. Use it exactly as written in the request body's model field or in your client's model setting (for example ANTHROPIC_MODEL in Claude Code, or model in the Codex CLI config.toml); GET https://api.wokey.ai/v1/models also lists it.
Which API forms does GLM-5.4 support, and how do I call it through Wokey?
GLM-5.4 supports /v1/chat/completions (Chat Completions requests) and /v1/messages (Messages requests). Set the API base URL to https://api.wokey.ai, authenticate with a Wokey API key, and use the canonical model ID glm-5.4; you can start with /v1/chat/completions. The Send a request section includes a curl example for every supported API form.
How do I use GLM-5.4 in Claude Code?
Claude Code calls GLM-5.4 over /v1/messages. Set ANTHROPIC_BASE_URL="https://api.wokey.ai", ANTHROPIC_AUTH_TOKEN to your Wokey API key, and ANTHROPIC_MODEL="glm-5.4", then start claude. Claude Desktop also uses /v1/messages; the setup guides cover both step by step.
What are the context window and maximum output for GLM-5.4?
The catalog context window is 1,000,000 tokens and the maximum output is 131,072 tokens. These are separate limits, and a request must also satisfy the upstream constraints in effect when it is processed.
How are cache reads and cache writes priced for GLM-5.4?
Cache read: Wokey lists $0.078 per 1M tokens and the official reference is $0.26 per 1M tokens. Cache write: the vendor does not publish a separate meter, so Wokey also shows — as the public price.
How does calling GLM-5.4 through Wokey differ from OpenRouter?
Wokey lists GLM-5.4 at $0.42 input / $1.32 output per 1M tokens, against an official reference of $1.4 / $4.4. OpenRouter states it adds no markup on inference and charges its fee when you buy credits (5.5% by card). Wokey carries a curated set of models and has no per-provider routing parameters, so OpenRouter fits better if you need a wider catalog. The OpenRouter alternative page has the full comparison.
How do GLM-5.4 and GLM-5.3 differ in price and context?
In the published price comparison, GLM-5.4 lists input/output at $0.42 / $1.32 with a 1,000,000-token context window; GLM-5.3 lists $0.21 / $0.66 with a 1,000,000-token context window. This is a factual price-and-capacity comparison, not a quality ranking; also compare their supported API forms and capabilities.
Related models and documentation
Get API key · glm-5.4