Skip to main content
Vendor: Zhipu (智谱) Model ID: glm-5-1 Capability: 128K context · vision · tool use · streaming · structured output · CJK-native Pricing: per-token, mid tier (live rate) GLM-5.1 is the refinement step on GLM-5 — same context window with added vision support, tighter tool-call argument generation, and a measurable quality bump on Chinese-market code generation. Default starting point for new Chinese-market projects on the gateway.

Request

Body parameters

Response

Code examples

Streaming + caching

"stream": true for SSE. Automatic prompt caching.

Errors

When to use

  • New Chinese-market projects with mixed text + vision input.
  • Tool-using agents in CJK languages.
  • For longer context, see Kimi K2.6.
  • For Chinese code-heavy work, see DeepSeek V4 Pro.

Limits