Synthetic
Synthetic 提供 Anthropic 相容的端點。OpenClaw 將其註冊為 synthetic 供應商,並使用 Anthropic Messages API。
快速設定
- 設定
SYNTHETIC_API_KEY(或執行下方的設定精靈)。 - 執行設定精靈:
openclaw onboard --auth-choice synthetic-api-key
預設模型為:
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,
},
],
},
},
},
}
注意:OpenClaw 的 Anthropic 用戶端會自動在 Base URL 後附加 /v1,因此請使用 https://api.synthetic.new/anthropic(而非 /anthropic/v1)。若 Synthetic 變更 Base URL,請覆寫 models.providers.synthetic.baseUrl。
模型目錄
以下所有模型的費用皆為 0(input/output/cache)。
| Model ID | Context window | Max tokens | Reasoning | Input |
|---|---|---|---|---|
hf:MiniMaxAI/MiniMax-M2.5 | 192000 | 65536 | false | text |
hf:moonshotai/Kimi-K2-Thinking | 256000 | 8192 | true | text |
hf:zai-org/GLM-4.7 | 198000 | 128000 | false | text |
hf:deepseek-ai/DeepSeek-R1-0528 | 128000 | 8192 | false | text |
hf:deepseek-ai/DeepSeek-V3-0324 | 128000 | 8192 | false | text |
hf:deepseek-ai/DeepSeek-V3.1 | 128000 | 8192 | false | text |
hf:deepseek-ai/DeepSeek-V3.1-Terminus | 128000 | 8192 | false | text |
hf:deepseek-ai/DeepSeek-V3.2 | 159000 | 8192 | false | text |
hf:meta-llama/Llama-3.3-70B-Instruct | 128000 | 8192 | false | text |
hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8 | 524000 | 8192 | false | text |
hf:moonshotai/Kimi-K2-Instruct-0905 | 256000 | 8192 | false | text |
hf:openai/gpt-oss-120b | 128000 | 8192 | false | text |
hf:Qwen/Qwen3-235B-A22B-Instruct-2507 | 256000 | 8192 | false | text |
hf:Qwen/Qwen3-Coder-480B-A35B-Instruct | 256000 | 8192 | false | text |
hf:Qwen/Qwen3-VL-235B-A22B-Instruct | 250000 | 8192 | false | text + image |
hf:zai-org/GLM-4.5 | 128000 | 128000 | false | text |
hf:zai-org/GLM-4.6 | 198000 | 128000 | false | text |
hf:deepseek-ai/DeepSeek-V3 | 128000 | 8192 | false | text |
hf:Qwen/Qwen3-235B-A22B-Thinking-2507 | 256000 | 8192 | true | text |
備註
- 模型參照格式為
synthetic/<modelId>。 - 若你啟用了模型白名單(
agents.defaults.models),需將所有要使用的模型加入清單。 - 供應商通用規則請參閱模型供應商。