GLM-5.2 API: pricing, base URL and quick setup
Use GLM-5.2 on A2Agent with model ID glm-5.2. The catalog lists a 1M context window. Check token rates below and verify the features your app needs.
Specifications and pricing
| Model ID | glm-5.2 |
|---|---|
| Platform | Z.ai |
| Context window | 1M |
| Tagged for | chat, coding |
| Discount | — |
| Input / 1M tokens | $1.40 |
| Output / 1M tokens | $4.40 |
USD per 1M tokens. Final billing depends on your API key group and metered usage.
What GLM-5.2 costs on A2Agent
Prices on this page come from the live catalog. Compare the official price with the A2Agent price in the table above, then multiply by your monthly token volume.
Quick setup
curl https://a2agent.me/v1/chat/completions \
-H "content-type: application/json" \
-H "authorization: Bearer sk-your-a2agent-key" \
-d '{
"model": "glm-5.2",
"messages": [{"role": "user", "content": "Reply with OK"}]
}'Using it from a coding client
For large prompts in Claude Code or Cursor, check the total token count against the 1M limit. Set the exact model ID in your config, because glm-5 and glm-5.2 are different models with different windows.
How it compares within its family
These comparisons use catalog context limits, tags and reference rates, not independent quality benchmarks. Rates can change. Check current pricing above and test your workload; a higher price or a larger context window does not establish better results.
GLM-5.2 was the first Z.ai model sold here to reach a 1M context, up from the 200K of GLM-5 and GLM-5.1. It lists at $1.40 per million input tokens and $4.40 output. GLM-5.3 lists at exactly those two numbers, with the same window and the same coding tag, so the catalog draws no line between them beyond the version number. Treat 5.2 as the pinned, older release: choose it when you have already tested against it and want to keep that setup. Evaluate 5.3 on the same tasks before switching. Against GLM-5.1, the context window is five times larger. The listed input rate is about twenty percent higher, and output costs ten percent more per token.
Other models on this platform
- GLM-5200K
- GLM-5.1200K
- GLM-5.31M
- GLM-5.3 Flash1M
Questions
How does GLM-5.2 differ from GLM-5.3?
Same list price, same 1M window, same coding tag. GLM-5.3 is the later release; 5.2 is the one to pin if you have already validated against it.
What is the context window?
1M tokens, five times the 200K of GLM-5 and GLM-5.1.
Is it cheaper than GLM-5.1?
No. GLM-5.1 lists at $1.15 and $4.00 with a 200K window; GLM-5.2 lists at $1.40 and $4.40 with 1M.
Which protocol should I call it with?
Whichever your client already speaks. The same key serves the Anthropic, OpenAI and Gemini faces, and billing per token does not change between them.
Billed per token. Top up from $5, no top-up fee.
