GLM-4-Long
Language model designed for very long text and memory-style tasks, supporting 1M-token input.
Specs
- Context
- 1.05M
- Max output
- 4.1K
- Input price
- ¥1/ 1M tokens
- Output price
- ¥1/ 1M tokens
- Released
- —
Context
- Context window
- 1.05M
- Max input
- —
- Max output
- 4.1K
Pricing · CNY / 1M tokens
- Input
- ¥1
- Output
- ¥1
- Cache read
- ¥0.5
- Cache write
- —
Modalities
- Input
- Text
- Output
- Text
API
- API types
Reasoning
- Not published
Info
- Status
- Active
- Released
- —
- Knowledge cutoff
- —
Features
- Not published
How to call
1 provider
zhipumodel = glm-4-long
chat
POSThttps://open.bigmodel.cn/api/paas/v4/chat/completions
JSON
Standard format
{
"id": "glm-4-long",
"object": "model",
"created": null,
"owned_by": "zhipu",
"name": "GLM-4-Long",
"api": {
"types": [
"chat"
]
},
"limits": {
"context": 1048576,
"input": null,
"output": 4096
},
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
},
"reasoning": {
"supported": null,
"efforts": []
},
"pricing": {
"currency": "CNY",
"unit": "1M_tokens",
"input": 1,
"output": 1,
"cache_read": 0.5,
"cache_write": null
},
"features": [],
"info": {
"status": "active",
"release_date": null,
"knowledge_cutoff": null,
"description": "Language model designed for very long text and memory-style tasks, supporting 1M-token input.",
"docs": "https://docs.bigmodel.cn/cn/guide/models/text/glm-4-long",
"verified_at": "2026-10-11"
}
}Official sources
4