glm-5.1
glm-5.1
StreamingTool callingReasoning
Overview
glm-5.1 is available on MAX through the OpenAI-compatible API.
Pricing
Official list prices: token prices are per 1M tokens.Input ≤ 31,999 tokens
- Input
- ¥6
- Output
- ¥24
- Cache read
- ¥1.3
Input > 31,999 tokens
- Input
- ¥8
- Output
- ¥28
- Cache read
- ¥2
| Tier | Input | Output | Cache read |
|---|---|---|---|
| Input ≤ 31,999 tokens | ¥6 | ¥24 | ¥1.3 |
| Input > 31,999 tokens | ¥8 | ¥28 | ¥2 |
This model uses tiered pricing: the tier is chosen by the total input length of each request.
Cache read applies to prompt tokens served from the prompt cache; cache write applies to tokens written into it.
Example request
curl https://api.link-io.cloud/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.1",
"messages": [{"role": "user", "content": "Hello!"}]
}'