AI 模型配置指南¶
为 OpenClaw 配置多个大语言模型接入点
已配置模型¶
| 模型 | 提供商 | 状态 |
|---|---|---|
| qwen3.5-plus | 阿里云 DashScope | ✅ 已配置 |
待配置模型¶
1. 通义千问 Qwen-Max (阿里云)¶
模型 ID: qwen-max-2026-01-23 或 qwen-plus
获取 API Key: 1. 访问 https://dashscope.console.aliyun.com/ 2. 登录阿里云账号 3. 进入 API-KEY 管理 4. 创建新 API Key
配置示例:
{
"providers": {
"dashscope-qwen-max": {
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"apiKey": "sk-your-api-key-here",
"api": "openai-compat",
"models": [
{
"id": "qwen-max-2026-01-23",
"name": "Qwen-Max (通义千问)",
"reasoning": true,
"input": ["text"],
"cost": {
"input": 0.04,
"output": 0.12,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 256000,
"maxTokens": 16384
}
]
}
}
}
2. 智谱 GLM-⅘ (智谱 AI)¶
模型 ID: glm-4 或 glm-edge
获取 API Key: 1. 访问 https://open.bigmodel.cn/ 2. 注册/登录智谱 AI 账号 3. 进入 API Key 管理 4. 创建 API Key
配置示例:
{
"providers": {
"zhipu-glm": {
"baseUrl": "https://open.bigmodel.cn/api/paas/v4",
"apiKey": "your-zhipu-api-key.zxxxx",
"api": "openai-compat",
"models": [
{
"id": "glm-4",
"name": "GLM-4 (智谱)",
"reasoning": false,
"input": ["text"],
"cost": {
"input": 0.1,
"output": 0.1,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 128000,
"maxTokens": 8192
}
]
}
}
}
3. Kimi (月之暗面)¶
模型 ID: moonshot-v1-8k, moonshot-v1-32k, moonshot-v1-128k
获取 API Key: 1. 访问 https://platform.moonshot.cn/ 2. 注册/登录月之暗面账号 3. 进入 API Key 管理 4. 创建 API Key
配置示例:
{
"providers": {
"moonshot-kimi": {
"baseUrl": "https://api.moonshot.cn/v1",
"apiKey": "sk-your-moonshot-key",
"api": "openai-compat",
"models": [
{
"id": "moonshot-v1-128k",
"name": "Kimi (月之暗面)",
"reasoning": false,
"input": ["text"],
"cost": {
"input": 0.06,
"output": 0.06,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 128000,
"maxTokens": 8192
}
]
}
}
}
4. MiniMax (MiniMax AI)¶
模型 ID: abab6.5, abab6.5s, abab5.5
获取 API Key: 1. 访问 https://platform.minimaxi.com/ 2. 注册/登录 MiniMax 账号 3. 进入 API Key 管理 4. 创建 API Key
配置示例:
{
"providers": {
"minimax-abab": {
"baseUrl": "https://api.minimax.chat/v1",
"apiKey": "your-minimax-key",
"api": "openai-compat",
"models": [
{
"id": "abab6.5",
"name": "MiniMax abab6.5",
"reasoning": false,
"input": ["text"],
"cost": {
"input": 0.03,
"output": 0.03,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 245760,
"maxTokens": 8192
}
]
}
}
}
快速配置¶
请提供以下 API Key:
- 阿里云 DashScope:
sk-xxxxxxxxx - 智谱 AI:
xxxxxxxx.xxxxx - 月之暗面 Kimi:
sk-xxxxxxxxx - MiniMax:
xxxxxxxxx
然后执行配置命令:
或者手动编辑配置文件 /root/.openclaw/openclaw.json,在 models.providers 中添加上述配置。
价格参考 (人民币)¶
| 模型 | 输入价格 (元/千 tokens) | 输出价格 (元/千 tokens) |
|---|---|---|
| Qwen-Max | ¥0.04 | ¥0.12 |
| GLM-4 | ¥0.1 | ¥0.1 |
| Kimi 128K | ¥0.06 | ¥0.06 |
| MiniMax abab6.5 | ¥0.03 | ¥0.03 |
价格可能变动,请以官方为准
使用方式¶
配置完成后,在对话中指定模型:
或者在配置文件中设置默认模型:
更新时间:2026-03-10