




















目录
5. 阿里云百炼(Model Studio / 通义千问系列为主)
三、真正 “无限量”/ 准无限(适合重度 OpenClaw)
六 、开箱即用的 OpenClaw 多平台 API 配置模板
以下是适合 OpenClaw 使用的免费 / 高额度 / 准无限量 Token 平台汇总,均兼容 OpenAI API 格式,可直接接入无需改代码。
API key获取方
访问地址 https://cloud.siliconflow.cn/i/kQTQzfuz
Base URL: https://api.siliconflow.cn/v1
Model: deepseek-r1-0528 / qwen3-8b-chat / glm-4-9b-chat
API key获取方式
访问https://www.bigmodel.cn/
Base URL: https://open.bigmodel.cn/api/paas/v4
Model: glm-4-flash / glm-5
API key获取方式
百度智能云注册并完成实名认证,进入千帆大模型平台(qianfan.cloud.baidu.com)创建AK/SK,无需额外审核
Base URL:qianfan.cloud.baidu.com
或兼容endpoint
https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions
Base URL: spark-api.xf-yun.com
API key获取方式:
阿里云官网注册并完成实名认证,进入百炼平台https://bailian.console.aliyun.com创建AccessKey,需绑定阿里云账号。
Base URL:https://bailian.console.aliyun.com
或
dashscope.aliyuncs.com/compatible-mode/v1(兼容OpenAI调用格式)
API key获取方式https://platform.moonshot.cn
Base URL:https://api.moonshot.cn/v1
API key获取方式https://www.volcengine.com → 创建AK/SK
Base URL:ark.cn-beijing.volces.com/api/v3
或
OpenAI的endpoint
https://ark.cn-beijing.volces.com/api/v1/chat/completions
GrokxAI 地址https://ytm.app/openclaw-free-api-token/
Gemini API 地址https://ytm.app/openclaw-free-api-token/
plaintext
Base URL: https://api.groq.com/openai/v1
Model: llama-3.3-70b-versatile / deepseek-r1-distill-llama-70b
plaintext
Base URL: https://integrate.api.nvidia.com/v1
Model: 选择对应模型 ID
plaintext
Base URL: https://openrouter.ai/api/v1
Model: 选择对应模型(如 openai/gpt-4o、anthropic/claude-3.5-sonnet)
config.yaml 或 .env)在使用时只需替换自己的 API Key 即可直接使用。
配置模板(config.yaml)
# OpenClaw 多平台 API 配置模板(2026 免费/无限量版)
# 使用说明:替换各平台的 api_key 为自己的密钥,其余参数无需修改
# 全局配置
global:
timeout: 30 # 请求超时时间(秒)
max_retries: 3 # 失败重试次数
default_model: "glm-4-flash" # 默认使用的模型(智谱免费无限量)
# 多平台 API 配置(按优先级排序,自动切换)
apis:
# 1. 智谱 AI(GLM-4-Flash 永久免费无限量)
zhipu:
api_type: "openai"
api_key: "你的智谱API Key" # 替换为自己的 Key
base_url: "https://open.bigmodel.cn/api/paas/v4"
models:
- model_name: "glm-4-flash"
max_tokens: 8192
rpm: 60 # 每分钟请求数限制
tpm: 0 # 0 = 无 Token 总量限制
priority: 1 # 最高优先级
# 2. 硅基流动(2000万永久 Token + 部分模型无限量)
siliconflow:
api_type: "openai"
api_key: "你的硅基流动API Key" # 替换为自己的 Key
base_url: "https://api.siliconflow.cn/v1"
models:
- model_name: "deepseek-r1-0528"
max_tokens: 16384
rpm: 30
tpm: 20000000 # 2000万 Token 额度
priority: 2
# 3. Groq(极速推理,每日1000次请求无总量限制)
groq:
api_type: "openai"
api_key: "你的Groq API Key" # 替换为自己的 Key
base_url: "https://api.groq.com/openai/v1"
models:
- model_name: "llama-3.3-70b-versatile"
max_tokens: 8192
rpm: 60 # 每分钟请求数限制
tpm: 0 # 无 Token 总量限制
priority: 3
# 4. NVIDIA NIM(无 Token 总量限制)
nvidia:
api_type: "openai"
api_key: "你的NVIDIA API Key" # 替换为自己的 Key
base_url: "https://integrate.api.nvidia.com/v1"
models:
- model_name: "mistralai/mistral-large-2"
max_tokens: 32768
rpm: 40 # 每分钟请求数限制
tpm: 0 # 无 Token 总量限制
priority: 4
# 5. 百度千帆(ERNIE-Speed 永久免费)
baidu:
api_type: "openai"
api_key: "你的百度千帆API Key" # 替换为自己的 Key
base_url: "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions"
models:
- model_name: "ERNIE-Speed-8K"
max_tokens: 8192
rpm: 20
tpm: 0 # 无 Token 总量限制
priority: 5
# 自动切换策略(核心!实现"准无限")
switch_strategy:
enable: true # 开启自动切换
switch_on: # 触发切换的条件
- token_exhausted # Token 用尽时切换
- rate_limit_exceeded # 速率限制时切换
- request_failed # 请求失败时切换
fallback_order: ["zhipu", "siliconflow", "groq", "nvidia", "baidu"] # 降级顺序
# 用量监控(防止意外超量)
usage_monitor:
enable: true
daily_limit: 0 # 0 = 无每日总量限制
alert_threshold: 0.9 # 用量达90%时提醒
获取 API Key:
替换 Key:
你的XX API Key 替换为实际获取的密钥核心优势:
ollama:
api_type: "openai"
api_key: "ollama" # 固定值,无需修改
base_url: "http://localhost:11434/v1"
models:
model_name: "qwen3:8b" # 本地部署的模型名
max_tokens: 8192
rpm: 0
tpm: 0
priority: 6
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。