跳转到主要内容
Synthetic 暴露 Anthropic 兼容端点。 OpenClaw 将其内置为 synthetic 提供商,并使用 Anthropic Messages API。
属性
提供商synthetic
凭证SYNTHETIC_API_KEY
APIAnthropic Messages
基础 URLhttps://api.synthetic.new/anthropic

入门指南

1

获取 API key

从你的 Synthetic 账户获取 SYNTHETIC_API_KEY,或让新手引导 提示你输入一个。
2

运行新手引导

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

验证默认模型

新手引导会将默认模型设置为:
synthetic/hf:MiniMaxAI/MiniMax-M2.5
OpenClaw 的 Anthropic 客户端会自动将 /v1 追加到基础 URL,因此请使用 https://api.synthetic.new/anthropic(不要使用 /anthropic/v1)。如果 Synthetic 更改其基础 URL,请覆盖 models.providers.synthetic.baseUrl

配置示例

{
  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上下文窗口最大 token推理输入
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文本
模型引用使用 synthetic/<modelId> 形式。使用 openclaw models list --provider synthetic 查看你的账户可用的所有模型。
如果启用模型允许列表(agents.defaults.models),请添加你计划使用的每个 Synthetic 模型。不在允许列表中的模型会对智能体隐藏。
如果 Synthetic 更改其 API 端点,请覆盖基础 URL:
{
  models: {
    providers: {
      synthetic: {
        baseUrl: "https://new-api.synthetic.new/anthropic",
      },
    },
  },
}
OpenClaw 仍会自动追加 /v1

相关内容

模型提供商

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

配置参考

完整配置 schema,包括提供商设置。

Synthetic

Synthetic 仪表板和 API 文档。