🔷
智譜 AI / GLM
🇨🇳 國內直連 💰 按量付費 / Coding Plan 📡 open.bigmodel.cn(國內)/ z.ai(海外)

概述

智譜 AI 是國內知名的 AI 廠商,推出了 GLM 系列大模型。智譜同時提供國內版海外版,還有專門面向程式設計工具的 Coding Plan

📌 兩個平台的區別:
🇨🇳 國內版:open.bigmodel.cn(開放平台,API 地址 https://open.bigmodel.cn/api/anthropic
🌐 海外版:z.ai(Z.AI 平台,API 地址 https://api.z.ai/api/anthropic
兩者的 API Key 不互通,模型列表也略有不同。

取得 API Key(國內版)

1

註冊智譜開放平台

造訪 open.bigmodel.cn,用手機號註冊。

2

取得 API Key

登入後進入 API Keys 管理頁面,建立新金鑰。

3

儲值或開通 Coding Plan

標準 API 按量付費,支援支付寶、微信。如果想要更高速率和專屬程式設計功能,可以考慮 Coding Plan。

智譜 Coding Plan

智譜的 Coding Plan 是專門面向程式設計工具(如 Cursor、OpenClaw、Windsurf 等)的月付方案。使用 Coding Plan 時,API 地址和普通 API 不同。

⚠️ 重要:Coding Plan 使用 Anthropic 相容格式的 API,地址是 https://open.bigmodel.cn/api/anthropic,和標準 API 地址不一樣。設定時注意區分。

設定到 OpenClaw

國內版(標準 API):

openclaw configure --provider zhipu-cn
{ "providers": { "zhipu-cn": { "baseUrl": "https://open.bigmodel.cn/api/anthropic", "apiKey": "你的金鑰", "models": ["glm-4.7"] } } }

海外版(Z.AI):

openclaw configure --provider zhipu-global
{ "providers": { "zhipu-global": { "baseUrl": "https://api.z.ai/api/anthropic", "apiKey": "你的金鑰", "models": ["glm-5", "glm-4.7"] } } }
openclaw gateway restart

可用模型

模型平台特點
glm-4.7國內 + 海外主力模型,綜合能力強
glm-5海外版最新旗艦模型
📊 查看智譜 GLM 模型詳細評測 — 與其他模型的對比分析