Z
GLM 5.2
z-ai/glm-5.2
About
GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...
Context
1,048,576
Max output
101,376
Tokenizer
Other
Knowledge cutoff
—
Input
text
Output
text
Pricing
per 1M tokens- Input
- $1.39
- Output
- $4.40
Use this model
curl https://api.n4n.ai/v1/chat/completions \
-H "Authorization: Bearer $N4N_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-5.2",
"messages": [{"role": "user", "content": "Hello!"}]
}'Authenticate with an API key from your console; prices above are per 1M tokens.
Providers
max context 1,048,576| Provider | Input $/1M | Output $/1M |
|---|---|---|
| Wandb wandb | $1.39 | $4.40 |
Supported parameters
frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokensmin_pparallel_tool_callspresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p