Providers

合成

Synthetic 提供與 Anthropic 相容的端點。 OpenClaw 將其內建為 synthetic 提供者,並使用 Anthropic Messages API。

屬性
提供者 synthetic
驗證 SYNTHETIC_API_KEY
API Anthropic Messages
基礎 URL https://api.synthetic.new/anthropic

開始使用

  • 取得 API 金鑰

    從您的 Synthetic 帳號取得 SYNTHETIC_API_KEY,或讓初始設定流程 提示您輸入金鑰。

  • 執行初始設定

    bash
    openclaw onboard --auth-choice synthetic-api-key
  • 確認預設模型

    初始設定流程會將預設模型設為:

    text
    synthetic/hf:MiniMaxAI/MiniMax-M2.5
  • 設定範例

    json5
    {  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.5 192,000 65,536 文字
    hf:moonshotai/Kimi-K2-Thinking 256,000 8,192 文字
    hf:zai-org/GLM-4.7 198,000 128,000 文字
    hf:deepseek-ai/DeepSeek-R1-0528 128,000 8,192 文字
    hf:deepseek-ai/DeepSeek-V3-0324 128,000 8,192 文字
    hf:deepseek-ai/DeepSeek-V3.1 128,000 8,192 文字
    hf:deepseek-ai/DeepSeek-V3.1-Terminus 128,000 8,192 文字
    hf:deepseek-ai/DeepSeek-V3.2 159,000 8,192 文字
    hf:meta-llama/Llama-3.3-70B-Instruct 128,000 8,192 文字
    hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8 524,000 8,192 文字
    hf:moonshotai/Kimi-K2-Instruct-0905 256,000 8,192 文字
    hf:moonshotai/Kimi-K2.5 256,000 8,192 文字 + 圖片
    hf:openai/gpt-oss-120b 128,000 8,192 文字
    hf:Qwen/Qwen3-235B-A22B-Instruct-2507 256,000 8,192 文字
    hf:Qwen/Qwen3-Coder-480B-A35B-Instruct 256,000 8,192 文字
    hf:Qwen/Qwen3-VL-235B-A22B-Instruct 250,000 8,192 文字 + 圖片
    hf:zai-org/GLM-4.5 128,000 128,000 文字
    hf:zai-org/GLM-4.6 198,000 128,000 文字
    hf:zai-org/GLM-5 256,000 128,000 文字 + 圖片
    hf:deepseek-ai/DeepSeek-V3 128,000 8,192 文字
    hf:Qwen/Qwen3-235B-A22B-Thinking-2507 256,000 8,192 文字
    模型允許清單

    如果您啟用模型允許清單(agents.defaults.models),請加入您計畫使用的每個 Synthetic 模型。未列入允許清單的模型會對代理程式隱藏。

    覆寫基礎 URL

    如果 Synthetic 變更其 API 端點,請覆寫基礎 URL:

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

    OpenClaw 仍會自動附加 /v1

    相關內容

    Was this useful?
    On this page

    On this page