跳轉到主要內容

Synthetic

Synthetic exposes Anthropic-compatible endpoints. Synthetic 提供與 Anthropic 相容的端點。OpenClaw 將其註冊為 synthetic 提供者,並使用 Anthropic Messages API。

快速開始

  1. 設定 SYNTHETIC_API_KEY(或執行下方的精靈)。
  2. Run onboarding:
openclaw onboard --auth-choice synthetic-api-key
預設模型設定為:
synthetic/hf:MiniMaxAI/MiniMax-M2.1

設定範例

{
  env: { SYNTHETIC_API_KEY: "sk-..." },
  agents: {
    defaults: {
      model: { primary: "synthetic/hf:MiniMaxAI/MiniMax-M2.1" },
      models: { "synthetic/hf:MiniMaxAI/MiniMax-M2.1": { alias: "MiniMax M2.1" } },
    },
  },
  models: {
    mode: "merge",
    providers: {
      synthetic: {
        baseUrl: "https://api.synthetic.new/anthropic",
        apiKey: "${SYNTHETIC_API_KEY}",
        api: "anthropic-messages",
        models: [
          {
            id: "hf:MiniMaxAI/MiniMax-M2.1",
            name: "MiniMax M2.1",
            reasoning: false,
            input: ["text"],
            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
            contextWindow: 192000,
            maxTokens: 65536,
          },
        ],
      },
    },
  },
}
注意:OpenClaw 的 Anthropic 用戶端會將 /v1 附加至基底 URL,因此請使用 https://api.synthetic.new/anthropic(而非 /anthropic/v1)。若 Synthetic 變更其基底 URL,請覆寫 models.providers.synthetic.baseUrl。 If Synthetic changes its base URL, override models.providers.synthetic.baseUrl. If Synthetic changes its base URL, override models.providers.synthetic.baseUrl.

模型目錄

以下所有模型的成本皆使用 0(輸入/輸出/快取)。
模型 ID上下文視窗Max tokens推理Input
hf:MiniMaxAI/MiniMax-M2.119200065536falsetext
hf:moonshotai/Kimi-K2-Thinking2560008192truetext
hf:zai-org/GLM-4.7198000128000falsetext
hf:deepseek-ai/DeepSeek-R1-05281280008192falsetext
hf:deepseek-ai/DeepSeek-V3-03241280008192falsetext
hf:deepseek-ai/DeepSeek-V3.11280008192falsetext
hf:deepseek-ai/DeepSeek-V3.1-Terminus1280008192falsetext
hf:deepseek-ai/DeepSeek-V3.21590008192falsetext
hf:meta-llama/Llama-3.3-70B-Instruct1280008192falsetext
hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP85240008192falsetext
hf:moonshotai/Kimi-K2-Instruct-09052560008192falsetext
hf:openai/gpt-oss-120b1280008192falsetext
hf:Qwen/Qwen3-235B-A22B-Instruct-25072560008192falsetext
hf:Qwen/Qwen3-Coder-480B-A35B-Instruct2560008192falsetext
hf:Qwen/Qwen3-VL-235B-A22B-Instruct2500008192falsetext + image
hf:zai-org/GLM-4.5128000128000falsetext
hf:zai-org/GLM-4.6198000128000falsetext
hf:deepseek-ai/DeepSeek-V31280008192falsetext
hf:Qwen/Qwen3-235B-A22B-Thinking-25072560008192truetext

注意事項

  • 模型參照使用 synthetic/<modelId>
  • 若您啟用模型允許清單(agents.defaults.models),請新增您計畫使用的每一個模型。
  • 請參閱[Model providers](/concepts/model-providers) 以了解提供者規則。