跳轉到主要內容

Documentation Index

Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt

Use this file to discover all available pages before exploring further.

Synthetic 提供與 Anthropic 相容的端點。 OpenClaw 將其註冊為 synthetic 提供者,並使用 Anthropic Messages API。
屬性
提供者synthetic
驗證SYNTHETIC_API_KEY
APIAnthropic Messages
基礎 URLhttps://api.synthetic.new/anthropic

開始使用

1

取得 API 金鑰

從你的 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,536text
hf:moonshotai/Kimi-K2-Thinking256,0008,192text
hf:zai-org/GLM-4.7198,000128,000text
hf:deepseek-ai/DeepSeek-R1-0528128,0008,192text
hf:deepseek-ai/DeepSeek-V3-0324128,0008,192text
hf:deepseek-ai/DeepSeek-V3.1128,0008,192text
hf:deepseek-ai/DeepSeek-V3.1-Terminus128,0008,192text
hf:deepseek-ai/DeepSeek-V3.2159,0008,192text
hf:meta-llama/Llama-3.3-70B-Instruct128,0008,192text
hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8524,0008,192text
hf:moonshotai/Kimi-K2-Instruct-0905256,0008,192text
hf:moonshotai/Kimi-K2.5256,0008,192text + image
hf:openai/gpt-oss-120b128,0008,192text
hf:Qwen/Qwen3-235B-A22B-Instruct-2507256,0008,192text
hf:Qwen/Qwen3-Coder-480B-A35B-Instruct256,0008,192text
hf:Qwen/Qwen3-VL-235B-A22B-Instruct250,0008,192text + image
hf:zai-org/GLM-4.5128,000128,000text
hf:zai-org/GLM-4.6198,000128,000text
hf:zai-org/GLM-5256,000128,000text + image
hf:deepseek-ai/DeepSeek-V3128,0008,192text
hf:Qwen/Qwen3-235B-A22B-Thinking-2507256,0008,192text
模型參照使用 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

相關

模型選擇

提供者規則、模型參照,以及故障轉移行為。

設定參考

完整設定結構描述,包含提供者設定。

Synthetic

Synthetic 儀表板與 API 文件。