dashscope/glm-5.2
GLM-5.2 (Z.ai): 1M-token context at one rate, text in and out, tools.
THINKING IS ON BY DEFAULT and thinking tokens bill as OUTPUT; send `enable_thinking: false` to turn it off.
While thinking is on, `tool_choice` cannot force a tool: use `auto` or `none`.
| Slug | dashscope/glm-5.2 |
| Kind | chat |
| Vendor | zai |
| Endpoint | POST /v1/chat/completions |
Charged per job from what the generator reports it rendered — your Logs show the exact figure for each one; see balance and billing.
Calling it
curl https://api.sociaro.com/v1/chat/completions \
-H "Authorization: Bearer $SOCIARO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dashscope/glm-5.2",
"messages": [{"role": "user", "content": "hello"}]
}'Parameters
messagestemperaturetop_pmax_tokensmax_completion_tokensstreamstream_optionstoolstool_choiceparallel_tool_callsenable_thinkingthinking_budgetseedstoppresence_penaltytop_krepetition_penalty