Step 1: Supported Tools
Any tool supporting the OpenAI Protocol can run on GLM-4.5.Simply replace the default OpenAI API URL and set your API key. Below are some common and popular tools supporting the OpenAI Protocol that can integrateGLM-4.5
using the same approach:
- Cursor
- Gemini CLI
- Cherry studio
- …
Step 2: Installation and Configuration Method
Core Steps:Using Cursor as an example, the following steps demonstrate how to integrate the
- Select an OpenAI-compatible provider.
- Add/Replace the OpenAI Base URL with
https://api.z.ai/api/coding/paas/v4
.- Enter your Z.AI API Key and select
GLM-4.5
orGLM-4.5-air
.
GLM-4.5
model via the OpenAI protocol. Similarly, other tools supporting the OpenAI protocol can adopt the same configuration approach.
1. Install Cursor
Download and install Cursor from the official website.2. Create a New Provider/Model
In Cursor, navigate to the “Models” section and click the “Add Custom Model”.
- Select the OpenAI Protocol.
- Configure the OpenAI API Key (obtained from the Z.AI).
- In Override OpenAI Base URL, replace the default URL with
https://api.z.ai/api/coding/paas/v4
. - Enter the model you wish to use, such as
GLM-4.5
orGLM-4.5-air
.

3. Save and Switch Models
After configuration, save your settings and select the newly created GLM-4.5 Provider on the homepage.4. Get Started
With this setup, you can begin using the GLM-4.5 model for code generation, debugging, task analysis, and more.
Step 3: Replacing the API URL in Other Tools
- Locate the API configuration section in your tool:
- Replace the OpenAI Base URL:
https://api.z.ai/api/coding/paas/v4
.
- Enter API Key and Select Model:
- Enter your GLM-4.5 API Key.
- Select
GLM-4.5
(standard, complex tasks) orGLM-4.5-air
(lightweight, faster response) based on your requirements.