Skip to content

GLM (Zhipu AI / Z.AI) Setup

Get API Key

  1. Visit Zhipu AI Platform (rebranded as Z.AI)
  2. Sign up and log in
  3. Go to "API Keys" page
  4. Create a new API Key

Add Channel in CCX

Option 1: Chat Endpoint (OpenAI Compatible)

FieldValue
NameGLM
Service Typeopenai
Base URLhttps://open.bigmodel.cn/api/paas/v4
API KeysYour Zhipu API Key

Option 2: Messages Endpoint (Anthropic Compatible)

For Claude Code CLI and other tools using Claude Messages protocol.

FieldValue
NameGLM Claude
Service Typeclaude
Base URLhttps://open.bigmodel.cn/api/anthropic
API KeysYour Zhipu API Key
Request ModelRedirects To
opusglm-5.1
sonnetglm-5
haikuglm-5-turbo

Available Models

ModelDescription
glm-5.1Latest flagship, Agentic engineering, 744B params
glm-5Previous flagship
glm-5-turboFast version
glm-4.7MoE architecture
glm-4.6Multimodal (vision support)
glm-4.5MoE, 106B total / 12B active

Notes

  • Zhipu API supports both OpenAI Chat and Anthropic Messages protocols
  • OpenAI-compatible Base URL uses /v4 path — do not append /chat/completions
  • Anthropic-compatible Base URL: https://open.bigmodel.cn/api/anthropic
  • API Key format is xxxxxxxx.yyyyyyyy (the entire string is the key)
  • Zhipu has rebranded to Z.AI, but open.bigmodel.cn endpoints remain active