GLM-5.1 API
Call GLM-5.1 through Wokey and review dated catalog pricing, upstream-native API forms, context, and model capabilities.
- Model ID
glm-5.1- 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 | — | — | — |
Price checked:
Official price source: https://docs.z.ai/guides/overview/pricing
Model capabilities
- Context
- 128,000 tokens
- Max output
- 64,000 tokens
- Streaming
- Supported
- Tools
- Supported
- Vision
- —
- 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.1","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.1","max_tokens":1024,"messages":[{"role":"user","content":"Hello"}]}'Frequently asked questions
How much does the GLM-5.1 API cost, and how much does it save versus the official API?
As of 2026-08-26, 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.
Which API forms does GLM-5.1 support, and how do I call it through Wokey?
GLM-5.1 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.1; you can start with /v1/chat/completions. The Send a request section includes a curl example for every supported API form.
What are the context window and maximum output for GLM-5.1?
The catalog context window is 128,000 tokens and the maximum output is 64,000 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.1?
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 do GLM-5.1 and GLM-5.3 differ in price and context?
In this price snapshot, GLM-5.1 lists input/output at $0.42 / $1.32 with a 128,000-token context window; GLM-5.3 lists $0.56 / $1.76 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.1