Back to model catalog
Z.AI GLM-5.2
Z.AI GLM
FeaturedReleased 2026-05-01
ChatJSON modePrompt cachingReasoningStreamingTool calling
1M
Context window
Text
Modalities
$1.40 / $4.40
Input / output per M tokens
Providers & pricing (1)
| Provider | Input $/M | Output $/M | Cached input $/M | Context |
|---|---|---|---|---|
Z.AI glm-5.2 | $1.40 | $4.40 | $0.26 | 1M |
Cloptima's known static list pricing per million tokens; live/negotiated rates may differ.
Example: 1,000 requests of 2,000 input and 500 output tokens costs about $5.00 on Z.AI.
Use it through Cloptima
curl https://api.cloptima.ai/v1/ai/chat/completions \
-H "Authorization: Bearer $CLOPTIMA_PAT" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.2",
"messages": [{"role": "user", "content": "Hello"}]
}'Use the bare model name and Cloptima picks the provider for each request: the lowest estimated cost among the providers your credentials or managed credits can use, filtered by your policy and provider health.
An OpenAI-compatible endpoint with per-team cost attribution, budgets and policy controls.
How the AI gateway works