Skip to main content
Z.ai (formerly Zhipu AI) provides the GLM family of large language models with strong multilingual capabilities.
Get an API key from the Z.ai Platform

Configuration

config.yaml

Available Models

  • glm-5: Flagship model with 128K context window
  • glm-4.7: Latest generation model with 128K context window
  • glm-4-plus: Enhanced GLM-4 model with 128K context window
  • glm-4.5: GLM-4.5 model with 128K context window

Configuration Options

Z.ai offers a dedicated Coding Plan with a subscription-based endpoint optimized for coding tasks. To use it, set apiBase to https://api.z.ai/api/coding/paas/v4/. This endpoint uses prompt-based pricing rather than token-based pricing and may be more cost-effective for coding workflows.