Skip to content

GLM 5.2

Model ID

glm-5-2

GLM 5.2 is exposed through POST /v1/chat/completions using the standard OpenAI-compatible chat payload. It supports function / tool calling (tools, tool_choice, assistant tool_calls) and works with structured outputs via response_format where applicable.

SpecificationValue
API IDglm-5-2
CapabilitySupported
Chat completions (/v1/chat/completions)Yes
Tool / function callingYes
Structured output (response_format)Yes

Use glm-5-2 as the model field in chat completion requests. For tool usage patterns and examples, see Tool Calling and Structured Output.