跳转到内容
Alpha
  • 模型
  • 排行榜
  • Ori
联系销售

页脚

OpenRouterOpenRouter
© 2026 OpenRouter, Inc

产品

  • 聊天
  • 排行榜
  • 基准测试
  • 应用
  • 发现
  • 模型
  • Ori
  • 合集
  • 提供商
  • 工具
  • 定价
  • Business
  • Enterprise
  • 实验室

公司

  • 关于
  • 博客
  • 客户
  • 招聘
    招聘
  • 隐私
  • 服务条款
  • 信任中心
  • 支持
  • 兼容 OR
  • 数据
  • 品牌

开发者

  • 文档
  • API 参考
  • 开发者平台
  • 状态
  • AI 站点地图

连接

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
所有服务器工具

Subagent

openrouter:subagent

文档试用此工具

让大型模型将工作拆分为专注的子任务,并交给更小、更便宜的工作模型处理。每个子智能体都可以是任意 OpenRouter 模型,可选择配备自己的工具,其用量会计入父请求。

文档试用此工具
工作原理提供商和定价使用此工具相关工具

工作原理

适用于无需主模型全部能力的专项任务,例如摘要、信息提取或样板代码生成。

  1. 1

    您的模型 交接一个独立完整的任务,附带名称和完整描述。

  2. 2

    工作模型 仅凭该描述,使用您提供的任何工具完成任务。

  3. 3

    您的模型 取回结果并继续执行。工作进程的用量会在请求中报告。

提供商与定价

  • https://openrouter.ai 的网站图标

    OpenRouter

    模型 token 用量

    按每个工作模型的正常 token 用量计费,并在父请求中报告。

每个请求均按标准模型 token 费用计费。

使用此工具

OpenRouter 在请求期间运行工具并将结果返回给模型,因此无需客户端工具循环。

支持的 API:Chat Completions and Responses。

shell
curl https://openrouter.ai/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."
    }
  ]
}'

文档中提供了设置、参数和示例。

阅读集成指南

相关工具

编排

  • Advisor

    Consult a stronger model mid-generation

    编排
  • Fusion

    测试版

    Call multiple models and then use another model to synthesize a final answer

    编排