GLM 5.2
Zhipu's flagship general model with strong tool use and bilingual (EN/ZH) performance.
Starting at
$0.135
input price per 1M tokens
Playground
Input
openaiInput
$0.135 / 1M
Output
$0.474 / 1M
Output
Start a conversation
Ask GLM 5.2 anything. Messages are sent directly to the API and charged by token usage.
Sign in to chatPricing
| Option | Price per 1M tokens |
|---|---|
| input | $0.135 |
| output | $0.474 |
| cacheRead | $0.034 |
| cacheWrite | $0.034 |
Quick start
Full API reference →1curl -X POST https://api.api-stock.com/api/v1/chat/completions \2 -H "Authorization: Bearer $API_STOCK_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "glm-5.2",6 "messages": [7 {8 "role": "user",9 "content": "A cinematic shot of a city at dusk"10 }11 ]12 }'
Frequently asked questions
How much does GLM 5.2 cost?
GLM 5.2 starts at $0.135 per 1M input tokens through the API Stock API. You pay per use from a single prepaid balance — there is no subscription — and the final price scales with parameters such as resolution or duration.
How do I call the GLM 5.2 API?
Send a POST request to https://api.api-stock.com/api/v1/chat/completions with your API key and the model "glm-5.2", using the openai-compatible request format shown in the quick start above.
What happens if a GLM 5.2 request fails?
API Stock automatically retries the request on a reserve provider. If every provider fails, the charge is refunded to your balance.
Can I use GLM 5.2 with the same API key as other models?
Yes. Every model on API Stock — video, image, music and chat — shares one API key and one prepaid balance, so you can switch to GLM 5.2 without new credentials.