GLM 5.2 API
智谱 GLM-5.2 长上下文推理与编程模型,支持流式响应和工具调用。
Starting price $1.0000 / 1M tokens · Price snapshot
Waiting to refresh live prices…
Model pricing
Compare all public tiers and current prices for this series on one page.
Input
$1.0000 / 1M tokens
Output
$3.5000 / 1M tokens
Context
—
Max output
—
- Model ID
-
glm-5.2 - Billing model
- Per-Token billing
- Available groups
- default, svip
- Capabilities
- chat
API reference
Base URL is https://api.rokoapi.com/v1. The model in requests must use the model IDs listed above.
curl https://api.rokoapi.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.2",
"messages": [{"role":"user","content":"Introduce yourself in one sentence"}]
}' For more parameters, limits, and async task queries, read the GLM 5.2 developer guide. GLM 5.2 Developer guide · OpenAI · Authorization