Alibaba · 视频

Hermes Agent x Wan

Wan 是阿里巴巴的全系视频与图像模型套件,是最完整的开源权重视频系列之一。通过 RunAPI,所有 Wan 版本共享一把 key 和统一计费。

18 variants 起价 $0.05 / 次调用 可商用

Prerequisite: npx runapi mcp install

Prompt

Prompt 模型

任务匹配时使用 wan-2.2-a14b-image-to-video-turbo:2.2 架构的图生视频。

You have access to RunAPI task tools for Wan.

Available Wan models:
- wan-2.2-a14b-image-to-video-turbo: 2.2 架构的图生视频
  endpoints: /api/v1/wan/image_to_video
  request fields: model, prompt, first_frame_image_url
- wan-2.2-a14b-speech-to-video-turbo: 音频输入驱动视频运动和唇形同步
  endpoints: /api/v1/wan/speech_to_video
  request fields: model, source_image_url, source_audio_url, prompt
- wan-2.2-a14b-text-to-video-turbo: 开源 A14B MoE 架构;基线质量
  endpoints: /api/v1/wan/text_to_video
  request fields: model, prompt
- wan-2.2-animate-move: 2.2 基座的专用运动动画
  endpoints: /api/v1/wan/animate
  request fields: model, source_image_url, reference_video_url
- wan-2.2-animate-replace: 2.2 基座的主体替换动画
  endpoints: /api/v1/wan/animate
  request fields: model, source_image_url, reference_video_url
- wan-2.5-image-to-video: 2.5 带原生音频的图生视频
  endpoints: /api/v1/wan/image_to_video
  request fields: model, prompt, first_frame_image_url, duration_seconds, output_resolution
- wan-2.5-text-to-video: 原生音频生成 + 比 2.2 更好的运动真实感
  endpoints: /api/v1/wan/text_to_video
  request fields: model, prompt, output_resolution
- wan-2.6-edit-video: 视频编辑,主体 + 镜头控制
  endpoints: /api/v1/wan/edit_video
  request fields: model, source_video_urls, prompt
- wan-2.6-flash-edit-video: 2.6 速度优化版视频编辑
  endpoints: /api/v1/wan/edit_video
  request fields: model, source_video_urls, prompt, audio
- wan-2.6-flash-image-to-video: 2.6 速度优化版;更低成本,更快推理
  endpoints: /api/v1/wan/image_to_video
  request fields: model, prompt, first_frame_image_url, audio
- wan-2.6-image-to-video: 2.6 场景连续性的图生视频
  endpoints: /api/v1/wan/image_to_video
  request fields: model, prompt, first_frame_image_url
- wan-2.6-text-to-video: 改进场景连续性 + 复杂场景支持
  endpoints: /api/v1/wan/text_to_video
  request fields: model, prompt
- wan-2.7-edit-video: wan-2.7-edit-video
  endpoints: /api/v1/wan/edit_video
  request fields: model, source_video_urls, prompt, source_video_url
- wan-2.7-image: 2.7 架构标准图像生成
  endpoints: /api/v1/wan/text_to_image
  request fields: model, prompt
- wan-2.7-image-pro: 3×3 多角度图像网格;最高质量图像输出
  endpoints: /api/v1/wan/text_to_image
  request fields: model, prompt
- wan-2.7-image-to-video: 2.7 多参考支持的图生视频
  endpoints: /api/v1/wan/image_to_video
  request fields: model, prompt, first_frame_image_url
- wan-2.7-r2v: 参考到视频:同时锚定角色外观 + 声音
  endpoints: /api/v1/wan/text_to_video
  request fields: model, prompt
- wan-2.7-text-to-video: 首尾帧控制;5 个同时视频参考
  endpoints: /api/v1/wan/text_to_video
  request fields: model, prompt

Use the model ID and endpoint that match the user's request.
Example prompt: 生成一段 5 秒的猫咪跳上书架的视频,自然室内光线,手持镜头感觉。
/api/v1/wan/image_to_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/wan/image_to_video,并保存返回的 Task ID。
GET /api/v1/wan/image_to_video/<task-id>,直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。
/api/v1/wan/speech_to_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/wan/speech_to_video,并保存返回的 Task ID。
GET /api/v1/wan/speech_to_video/<task-id>,直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。
/api/v1/wan/text_to_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/wan/text_to_video,并保存返回的 Task ID。
GET /api/v1/wan/text_to_video/<task-id>,直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。
/api/v1/wan/animate: Submit the task, poll for its status, then verify the completed output. POST /api/v1/wan/animate,并保存返回的 Task ID。
GET /api/v1/wan/animate/<task-id>,直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。
/api/v1/wan/edit_video: Submit the task, poll for its status, then verify the completed output. POST /api/v1/wan/edit_video,并保存返回的 Task ID。
GET /api/v1/wan/edit_video/<task-id>,直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。
/api/v1/wan/text_to_image: Submit the task, poll for its status, then verify the completed output. POST /api/v1/wan/text_to_image,并保存返回的 Task ID。
GET /api/v1/wan/text_to_image/<task-id>,直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。

公开版本与端点

模型 ID 端点 起步价格 模型目录
wan-2.2-a14b-image-to-video-turbo
/api/v1/wan/image_to_video
$0.40 / 次调用 模型详情
wan-2.2-a14b-speech-to-video-turbo
/api/v1/wan/speech_to_video
$0.24 / 秒 模型详情
wan-2.2-a14b-text-to-video-turbo
/api/v1/wan/text_to_video
$0.40 / 次调用 模型详情
wan-2.2-animate-move
/api/v1/wan/animate
$0.13 / 秒 模型详情
wan-2.2-animate-replace
/api/v1/wan/animate
$0.13 / 秒 模型详情
wan-2.5-image-to-video
/api/v1/wan/image_to_video
$0.12 / 秒 模型详情
wan-2.5-text-to-video
/api/v1/wan/text_to_video
$0.12 / 秒 模型详情
wan-2.6-edit-video
/api/v1/wan/edit_video
$0.14 / 秒 模型详情
wan-2.6-flash-edit-video
/api/v1/wan/edit_video
$0.30 / 次调用 模型详情
wan-2.6-flash-image-to-video
/api/v1/wan/image_to_video
$9.44 / 次调用 模型详情
wan-2.6-image-to-video
/api/v1/wan/image_to_video
$0.58 / 秒 模型详情
wan-2.6-text-to-video
/api/v1/wan/text_to_video
$0.58 / 秒 模型详情
wan-2.7-edit-video
/api/v1/wan/edit_video
$0.16 / 秒 模型详情
wan-2.7-image
/api/v1/wan/text_to_image
$0.05 / 次调用 模型详情
wan-2.7-image-pro
/api/v1/wan/text_to_image
$0.12 / 次调用 模型详情
wan-2.7-image-to-video
/api/v1/wan/image_to_video
$0.16 / 秒 模型详情
wan-2.7-r2v
/api/v1/wan/text_to_video
$0.16 / 秒 模型详情
wan-2.7-text-to-video
/api/v1/wan/text_to_video
$0.16 / 秒 模型详情

验证

轮询,直到 Task 进入终态

选择 <model-id> 后生成验证命令。

配置

指南端点: <endpoint>

选择 <model-id> 后,按端点的公开输入契约生成请求。
使用流程

三步开始使用

  1. 选择模型 ID

    选择公开模型 ID,并查看其端点与当前起步价格。

  2. 配置 RunAPI

    调用端点前设置 RUNAPI_API_KEY。

  3. 验证结果

    对于异步端点,轮询同一端点,直到 Task 进入终态。

使用 Hermes Agent + Wan 可以构建什么

  • 批量品牌内容

    借助 Wan 的角色一致性大规模制作品牌视频,由 Hermes Agent 为不同产品线并行分发任务。

  • 口型同步的对白内容

    在一个 Hermes Agent 工作流中把语音合成模型与 Wan 的语音生视频端点串联,从脚本直接得到说话的视频。

  • 影视与代理机构的预演

    生成锚定关键帧的预演片段,通过设置首帧和尾帧控制场景转换,便于客户审阅。

为什么通过 RunAPI + Hermes Agent 使用 Wan

  • 18 个变体,一个 API 密钥

    通过一个 RunAPI 连接选择可用的模型变体,无需更改现有集成。

  • 清晰的用量价格

    发送请求前查看目录中的当前价格,无需订阅或最低消费。

  • 自动化任务流程

    通过一致的任务流程提交任务、查询状态并收集异步结果,无需编写手动轮询代码。

Hermes Agent + Wan 常见问题

在 Hermes Agent 中可以调用哪些 Wan 端点?

本页列出的所有 Wan 端点。只需把 RunAPI 配置为提供方一次,之后每个请求都可以切换端点和模型版本。

在 Hermes Agent 中使用 Wan 需要额外配置吗?

不需要。你已用于聊天的 RunAPI 提供方可以直接访问所有 Wan 端点以及其他 RunAPI 模型,无需额外插件。

Hermes Agent 能把 Wan 的语音生视频和 TTS 模型一起用吗?

可以。Hermes Agent 可以先用语音合成模型生成语音,再在同一工作流中把音频 URL 交给 Wan 的语音生视频端点。

应该使用哪个模型 ID?

从版本表选择公开模型 ID。每个 ID 可使用的端点均显示在对应行。

本指南会配置聊天模型吗?

不会。该 Model Line 使用页面所示的端点流程,不会被描述为 Agent 聊天模型。

开始在 Hermes Agent 中使用 Wan

需要团队接入支持?

我们可以协助团队接入、完成系统集成并解答技术问题。

联系我们