Model ID
glm-5-1
Model ID
glm-5-1
GLM 5.1 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.
| Specification | Value |
|---|---|
| API ID | glm-5-1 |
| Capability | Supported |
|---|---|
Chat completions (/v1/chat/completions) | Yes |
| Tool / function calling | Yes |
Structured output (response_format) | Yes |
Use glm-5-1 as the model field in chat completion requests. For tool usage patterns and examples, see Tool Calling and Structured Output.