Z AI(智谱)
Z AI(原智谱 AI)提供 GLM 系列模型,具备混合推理与智能体能力,适合推理、编程和智能体类应用。
官网: z.ai/model-api(国际)| open.bigmodel.cn(中国大陆)
获取 API Key
Section titled “获取 API Key”-
访问 z.ai/model-api,注册或登录账号。
-
在控制台中打开 API Key 管理页。
-
创建新的 API Key。
-
立即复制并妥善保存 Key。
两个地区的价格不同,以各自平台公布的价格为准。
在 Dline 中配置
Section titled “在 Dline 中配置”通用步骤见模型配置。
-
点击 Dline 面板标题栏的 Settings 按钮。
-
在 Provider 中选择 Z AI。
-
在 Z AI Entrypoint 中根据所在地区选择接入点:
api.z.ai:国际open.bigmodel.cn:中国大陆
-
把 Key 粘贴到 Z AI API Key 输入框。
-
在 Model 中选择模型。
GLM Coding Plan
Section titled “GLM Coding Plan”Z AI 提供面向编程场景的订阅套餐,按提示次数而不是传统的 API 用量计费。
-
访问 z.ai/subscribe 选择套餐。
-
订阅后登录 Z AI 控制台,为套餐创建 API Key。
-
在 Dline 中选择 Z AI,把该 Key 粘贴到 Z AI API Key 输入框。
| 接入点 | API 地址 |
|---|---|
国际(api.z.ai) | https://api.z.ai/api/paas/v4 |
中国大陆(open.bigmodel.cn) | https://open.bigmodel.cn/api/paas/v4 |
接入点决定请求发往的地址,请选择与你的 Key 所属平台一致的接入点。