| title | Z.ai |
|---|---|
| description | Configure Z.ai's GLM models with Continue, including GLM-5, GLM-4.7, and GLM-4.5 |
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
```yaml title="config.yaml" name: My Config version: 0.0.1 schema: v1models: - name: GLM-5 provider: zAI model: glm-5 apiKey: <YOUR_ZAI_API_KEY>
</Tab>
<Tab title="JSON (Deprecated)">
```json title="config.json"
{
"models": [
{
"title": "GLM-5",
"provider": "zAI",
"model": "glm-5",
"apiKey": "<YOUR_ZAI_API_KEY>"
}
]
}
glm-5: Flagship model with 128K context windowglm-4.7: Latest generation model with 128K context windowglm-4-plus: Enhanced GLM-4 model with 128K context windowglm-4.5: GLM-4.5 model with 128K context window
| Option | Description | Default |
|---|---|---|
apiKey |
Z.ai API key | Required |
apiBase |
API base URL | https://api.z.ai/api/paas/v4/ |
model |
Model name to use | glm-5 |