跳转到内容

Synthetic

Synthetic 提供与 Anthropic 兼容的端点。 OpenClaw 将其注册为 synthetic 提供商,并使用 Anthropic Messages API。

属性
提供商synthetic
认证SYNTHETIC_API_KEY
APIAnthropic Messages
Base URLhttps://api.synthetic.new/anthropic
  1. 获取 API 密钥

    从您的 Synthetic 账户获取 SYNTHETIC_API_KEY,或者让新手向导 提示您输入一个。

  2. 运行新手引导

    bash openclaw onboard --auth-choice synthetic-api-key

  3. 验证默认模型

    完成新手引导后,默认模型设置为: synthetic/hf:MiniMaxAI/MiniMax-M2.5

{
env: { SYNTHETIC_API_KEY: "sk-..." },
agents: {
defaults: {
model: { primary: "synthetic/hf:MiniMaxAI/MiniMax-M2.5" },
models: { "synthetic/hf:MiniMaxAI/MiniMax-M2.5": { alias: "MiniMax M2.5" } },
},
},
models: {
mode: "merge",
providers: {
synthetic: {
baseUrl: "https://api.synthetic.new/anthropic",
apiKey: "${SYNTHETIC_API_KEY}",
api: "anthropic-messages",
models: [
{
id: "hf:MiniMaxAI/MiniMax-M2.5",
name: "MiniMax M2.5",
reasoning: false,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 192000,
maxTokens: 65536,
},
],
},
},
},
}

所有 Synthetic 模型都使用成本 0(输入/输出/缓存)。

模型 ID上下文窗口最大令牌数推理输入
hf:MiniMaxAI/MiniMax-M2.5192,00065,536文本
hf:moonshotai/Kimi-K2-Thinking256,0008,192文本
hf:zai-org/GLM-4.7198,000128,000文本
hf:deepseek-ai/DeepSeek-R1-0528128,0008,192文本
hf:deepseek-ai/DeepSeek-V3-0324128,0008,192文本
hf:deepseek-ai/DeepSeek-V3.1128,0008,192文本
hf:deepseek-ai/DeepSeek-V3.1-Terminus128,0008,192文本
hf:deepseek-ai/DeepSeek-V3.2159,0008,192文本
hf:meta-llama/Llama-3.3-70B-Instruct128,0008,192文本
hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8524,0008,192文本
hf:moonshotai/Kimi-K2-Instruct-0905256,0008,192文本
hf:moonshotai/Kimi-K2.5256,0008,192文本 + 图像
hf:openai/gpt-oss-120b128,0008,192文本
hf:Qwen/Qwen3-235B-A22B-Instruct-2507256,0008,192文本
hf:Qwen/Qwen3-Coder-480B-A35B-Instruct256,0008,192文本
hf:Qwen/Qwen3-VL-235B-A22B-Instruct250,0008,192文本 + 图像
hf:zai-org/GLM-4.5128,000128,000文本
hf:zai-org/GLM-4.6198,000128,000文本
hf:zai-org/GLM-5256,000128,000文本 + 图像
hf:deepseek-ai/DeepSeek-V3128,0008,192文本
hf:Qwen/Qwen3-235B-A22B-Thinking-2507256,0008,192文本
模型允许列表

如果您启用模型允许列表 (agents.defaults.models),请添加您计划使用的 每个 Synthetic 模型。不在允许列表中的模型将对 代理隐藏。

基础 URL 覆盖

如果 Synthetic 更改了其 API 端点,请在您的配置中覆盖基础 URL:

{
models: {
providers: {
synthetic: {
baseUrl: "https://new-api.synthetic.new/anthropic",
},
},
},
}

请记住,OpenClaw 会自动附加 /v1

模型选择

提供商规则、模型引用和故障转移行为。

配置参考

包含提供商设置的完整配置架构。

Synthetic

Synthetic 仪表板和 API 文档。