Z AI (Zhipu)
Z AI (formerly Zhipu AI) offers the GLM model series, with hybrid reasoning and agentic capabilities for reasoning, coding, and agent applications.
Website: z.ai/model-api (international) | open.bigmodel.cn (mainland China)
Get an API key
Section titled “Get an API key”-
Go to z.ai/model-api and sign up or sign in.
-
Open the API key management page in the console.
-
Create a new API key.
-
Copy the key immediately and store it securely.
-
Go to the Zhipu Open Platform and sign up or sign in.
-
Find API key management in the console.
-
Create a new API key.
-
Copy the key immediately and store it securely.
Pricing differs between the two regions. Check the prices published on each platform.
Configure Dline
Section titled “Configure Dline”See Model configuration for the general flow.
-
Click the Settings button in the Dline panel title bar.
-
Set Provider to Z AI.
-
Under Z AI Entrypoint, choose the entrypoint for your region:
api.z.ai: internationalopen.bigmodel.cn: mainland China
-
Paste the key into the Z AI API Key field.
-
Select a model under Model.
GLM Coding Plan
Section titled “GLM Coding Plan”Z AI offers subscription plans for coding, billed by prompts rather than traditional API usage.
-
Go to z.ai/subscribe and choose a plan.
-
After subscribing, sign in to the Z AI console and create an API key for the plan.
-
In Dline, select Z AI and paste the key into the Z AI API Key field.
Entrypoints
Section titled “Entrypoints”| Entrypoint | API address |
|---|---|
International (api.z.ai) | https://api.z.ai/api/paas/v4 |
Mainland China (open.bigmodel.cn) | https://open.bigmodel.cn/api/paas/v4 |
The entrypoint determines where requests are sent. Choose the entrypoint that matches the platform your key belongs to.