All models ReasoningTool callsStructured output
GLM-5.2
Zhipu AI
ChatReleased Jun 17, 2026glm-5.2
GLM-5.2 is Zhipu’s flagship model for the era of long-horizon tasks. It supports a solid 1M context window that can hold project-scale engineering context, with more stable long-horizon execution and more reliable adherence to engineering conventions. A single task can complete the full development path from requirements to multi-platform deployable artifacts.
- Input
- $1.40
- Output
- $4.40
- Cache read
- $0.26
- Context window
- 1M
- Max output
- 131.1K
per 1M tokens
per 1M tokens
per 1M tokens
tokens
tokens
Pricing
USD per 1M tokens
| Fee item | Price |
|---|---|
| Input | $1.40 |
| Input, cache read | $0.26 |
| Output | $4.40 |
| Image input | $1.40 |
| Image input, cache read | $0.26 |
| Video input | $1.40 |
| Video input, cache read | $0.26 |
| Audio input | $1.40 |
| Audio input, cache read | $0.26 |
Prices are in USD. A request is billed at the prices in force when it is made.
Call it from your code
Keep the official SDK you already use: give it the LobeBase base URL and a LobeBase API key.
OpenAI API
Base URL
https://api.lobebase.com/v1
curl https://api.lobebase.com/v1/chat/completions \
-H "Authorization: Bearer $LOBEBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.2",
"messages": [{ "role": "user", "content": "Hello" }]
}'Set LOBEBASE_API_KEY to your API key, then run the example.