zai-glm-5-2
Auto-routermistral/zai-glm-5-2
Context
1M
Max output
128K
Input / 1M
$1.40
Output / 1M
$4.40
Modality
Chat
Cutoff
unknown
About this model
Z.ai GLM 5.2 is a third-party open-weight text model hosted by Mistral (served without Mistral modifications), built for long-context coding and agentic workflows.
Best suited for
- Long-context coding (1M token context, 128k max output)
- Agentic workflows
- Function calling / tool use
- Structured outputs
Capabilities
Tools
Native function calling, so agents can invoke your endpoints.
System prompt
Honours a dedicated system role, separate from the user turn.
Supported parameters
max_tokensMax Tokens LimitSpecifies the maximum number of text units (tokens) allowed in a response, limiting its length.
toolsLists tool definitions or capabilities available to the model.
tool_choiceDecides whether to use tools or just the model for generating responses.
response_typeDefines the format or type of the generated response.
parallel_tool_callsEnables parallel execution of tools, allowing multiple tools to run simultaneously.
streamSends the response in real-time as it's being generated.