It looks like you may prefer a different language. Switch anytime.

Alibaba · Video

Hermes Agent x Wan

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

18 variants 起价 $0.050 可商用

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
- wan-2.5-text-to-video: 原生音频生成 + 比 2.2 更好的运动真实感
  endpoints: /api/v1/wan/text_to_video
  request fields: model, prompt
- 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
- 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.400 模型详情
wan-2.2-a14b-speech-to-video-turbo
/api/v1/wan/speech_to_video
$0.240 模型详情
wan-2.2-a14b-text-to-video-turbo
/api/v1/wan/text_to_video
$0.400 模型详情
wan-2.2-animate-move
/api/v1/wan/animate
$0.130 模型详情
wan-2.2-animate-replace
/api/v1/wan/animate
$0.130 模型详情
wan-2.5-image-to-video
/api/v1/wan/image_to_video
$0.120 模型详情
wan-2.5-text-to-video
/api/v1/wan/text_to_video
$0.120 模型详情
wan-2.6-edit-video
/api/v1/wan/edit_video
$0.140 模型详情
wan-2.6-flash-edit-video
/api/v1/wan/edit_video
$0.300 模型详情
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.580 模型详情
wan-2.6-text-to-video
/api/v1/wan/text_to_video
$0.580 模型详情
wan-2.7-edit-video
/api/v1/wan/edit_video
$0.160 模型详情
wan-2.7-image
/api/v1/wan/text_to_image
$0.050 模型详情
wan-2.7-image-pro
/api/v1/wan/text_to_image
$0.120 模型详情
wan-2.7-image-to-video
/api/v1/wan/image_to_video
$0.160 模型详情
wan-2.7-r2v
/api/v1/wan/text_to_video
$0.160 模型详情
wan-2.7-text-to-video
/api/v1/wan/text_to_video
$0.160 模型详情

验证

轮询,直到 Task 进入终态

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

配置

指南端点: <endpoint>

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

三步开始使用

  1. 选择模型 ID

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

  2. 配置 RunAPI

    调用端点前设置 RUNAPI_API_KEY。

  3. 验证结果

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

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

  • 产品演示视频

    根据文字描述生成 5 至 10 秒的产品动画,适合电商展示和社交广告。

  • AI 数字人内容

    创建带口型同步的数字人视频,用于培训材料、客户支持和营销内容。

  • 批量视频制作

    排队生成数百个视频,并通过 webhook 接收结果。

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

  • 18 个变体,一个 API 密钥

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

  • 清晰的用量价格

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

  • 自动化任务流程

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

Hermes Agent + Wan 常见问题

应该使用哪个模型 ID?

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

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

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

开始在 Hermes Agent 中使用 Wan

需要团队接入支持?

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

联系我们