GLM 5.2 vs GLM 5.3 Prime
API price, context window, capabilities and live speed, side by side.
GLM 5.2 is about 1.4× cheaper than GLM 5.3 Prime at a typical 3:1 input-to-output token mix. Both run on the same UltraGPT API key, so you can switch between them by changing the model field - or list both in models: [...] for automatic fallback.
| Lab | Z.ai (GLM) | Z.ai (GLM) |
|---|---|---|
| Model id | glm-5.2 | glm-5.3-prime |
| Input / 1M tokens | $0.144 | $1.68 |
| Cached input / 1M | $0.144 | $0.336 |
| Output / 1M tokens | $7 | $5.28 |
| Context window | — | 1M |
| Input | text | text |
| Output | text | text |
| Tool calling | ✓ | ✓ |
| Vision (image input) | — | — |
| Reasoning | — | — |
Cost of 1,000 requests
Estimated from the list prices above; your real cost is reported per request in usage.cost.
| Chatbot1.5K tokens in, 400 out | GLM 5.2 $3.02 | GLM 5.3 Prime $4.63 |
|---|---|---|
| RAG over documents20K in, 800 out | GLM 5.2 $8.48 | GLM 5.3 Prime $37.82 |
| Coding agent step40K in (80% cached), 1.5K out | GLM 5.2 $16.26 | GLM 5.3 Prime $32.11 |
Use both, with automatic fallback
Same key, same endpoint: change the model id between "glm-5.2" and "glm-5.3-prime".
curl https://api.ultragpt.pro/v1/chat/completions \
-H "Authorization: Bearer $ULTRAGPT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.2",
"models": ["glm-5.3-prime"],
"messages": [{ "role": "user", "content": "Hello!" }]
}'FAQ
Which is cheaper, GLM 5.2 or GLM 5.3 Prime?
GLM 5.2: $0.144 in / $7 out per 1M. GLM 5.3 Prime: $1.68 in / $5.28 out per 1M. Prices are in USD and billed per use from your UltraGPT balance.
Can I use GLM 5.2 and GLM 5.3 Prime with the same API key?
Yes. Both are available through the OpenAI-compatible UltraGPT API at https://api.ultragpt.pro/v1: set model to "glm-5.2" or "glm-5.3-prime".