OpenClawSkills
GitHub
プロバイダー • 5分で読める

Synthetic

OpenClaw で Synthetic の Anthropic 互換 API を使用

Synthetic は Anthropic 互換のエンドポイントを提供します。OpenClaw はそれを

'<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'synthetic'</code>' プロバイダーとして登録し、Anthropic Messages API を使用します。

Tutorial.step

クイック設定

1. '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'SYNTHETIC_API_KEY'</code>' を設定する(または以下のウィザードを実行する)。

2. オンボーディングを実行する:

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

デフォルトモデルは次のように設定されます:

Terminal
synthetic/hf:MiniMaxAI/MiniMax-M2.1
Tutorial.step

Config example

Json5
{
  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 クライアントはベース URL に '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'/v1'</code>' を追加するため、

'<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'https://api.synthetic.new/anthropic'</code>' を使用してください('<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'/anthropic/v1'</code>' ではありません)。Synthetic が

ベース URL を変更した場合、'<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'models.providers.synthetic.baseUrl'</code>' を上書きしてください。

Tutorial.step

モデルカタログ

以下のすべてのモデルはコスト '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'0'</code>'(入力/出力/キャッシュ)を使用します。

| モデル ID | コンテキストウィンドウ | 最大トークン | 推論 | 入力 |

| | -- | | |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:MiniMaxAI/MiniMax-M2.1'</code>' | 192000 | 65536 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:moonshotai/Kimi-K2-Thinking'</code>' | 256000 | 8192 | true | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:zai-org/GLM-4.7'</code>' | 198000 | 128000 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:deepseek-ai/DeepSeek-R1-0528'</code>' | 128000 | 8192 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:deepseek-ai/DeepSeek-V3-0324'</code>' | 128000 | 8192 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:deepseek-ai/DeepSeek-V3.1'</code>' | 128000 | 8192 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:deepseek-ai/DeepSeek-V3.1-Terminus'</code>' | 128000 | 8192 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:deepseek-ai/DeepSeek-V3.2'</code>' | 159000 | 8192 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:meta-llama/Llama-3.3-70B-Instruct'</code>' | 128000 | 8192 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8'</code>' | 524000 | 8192 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:moonshotai/Kimi-K2-Instruct-0905'</code>' | 256000 | 8192 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:openai/gpt-oss-120b'</code>' | 128000 | 8192 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:Qwen/Qwen3-235B-A22B-Instruct-2507'</code>' | 256000 | 8192 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:Qwen/Qwen3-Coder-480B-A35B-Instruct'</code>' | 256000 | 8192 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:Qwen/Qwen3-VL-235B-A22B-Instruct'</code>' | 250000 | 8192 | false | テキスト + 画像 |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:zai-org/GLM-4.5'</code>' | 128000 | 128000 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:zai-org/GLM-4.6'</code>' | 198000 | 128000 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:deepseek-ai/DeepSeek-V3'</code>' | 128000 | 8192 | false | テキスト |

| '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'hf:Qwen/Qwen3-235B-A22B-Thinking-2507'</code>' | 256000 | 8192 | true | テキスト |

Tutorial.step

Notes

- Model refs use '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'synthetic/&lt;modelId&gt;'</code>'.

- モデル許可リスト('<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'agents.defaults.models'</code>')を有効にする場合、使用するすべての

モデルを追加してください。

- プロバイダー規則については、'<a href="/concepts/model-providers" className="text-emerald-400 hover:text-emerald-300 transition-colors">'モデルプロバイダー'</a>' を参照してください。