Alibaba · 视频

OpenClaw 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 进入终态。

使用 OpenClaw + Wan 可以构建什么

  • 从分镜到视频

    用首帧和尾帧锚定每个片段,把分镜画面转成镜头之间视觉连贯的视频序列。

  • 虚拟主持人与品牌吉祥物

    用一张人脸图片和一段音频生成口播视频,口型同步和头部动作由模型完成。

  • 角色一致的多镜头序列

    制作同一角色出现在多个片段中的叙事内容,镜头之间面部和服装保持稳定。

为什么通过 RunAPI + OpenClaw 使用 Wan

  • 18 个变体,一个 API 密钥

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

  • 清晰的用量价格

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

  • 自动化任务流程

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

OpenClaw + Wan 常见问题

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

本页列出的所有 Wan 端点,包括视频生成、图生视频、语音生视频、视频编辑和图片生成。每个端点使用各自的模型版本。

Wan 的语音生视频如何使用?

提供一段音频和一张人脸图片,Wan 会生成人物说出这段音频、口型同步的视频。

Wan 是开源的吗?

Wan 以开放权重发布。通过 RunAPI 使用时无需自己配置 GPU,一个 API 密钥即可调用;如果需要自托管流水线,同样的权重也可以在你自己的基础设施上运行。

应该使用哪个模型 ID?

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

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

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

开始在 OpenClaw 中使用 Wan

需要团队接入支持?

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

联系我们