Qwen

Wan API

视频 API

Wan API 把多种 AI 视频工作流整合到同一个生产路径里,包括文生视频、图生视频、视频转视频、视频编辑、动画和参考生视频。

可以用 Wan 2.7 生成 720p 与 1080p 视频,并根据产品或营销场景的输入方式,在文本、图片、视频和参考素材模式之间切换。

模型类型:
价格

最低成本从 $0.04/s

当前模型
Wan 3.0 Video

480P: 8 积分/秒 - 文/图生视频 - 输出秒数 × 8

720P: 16 积分/秒 - 文/图生视频 - 输出秒数 × 16

1080P: 32 积分/秒 - 文/图生视频 - 输出秒数 × 32

美元估算按最佳年付套餐 $0.005/积分 计算。最终计费会跟随所选 Wan 模型、分辨率、时长和输入类型变化。

提交后生成记录会显示在这里
API 输入

核心请求字段

按模型使用对应 payload,配置提示词、源素材、分辨率、画面比例、时长、回调和生成选项。

请求 JSON
{
  "model": "wan/3-0-video",
  "input": {
    "prompt": "Under the moonlight, a little cat is running on the roof. In the distance, the neon lights are flashing, giving a cinematic feel. The camera movement is smooth.",
    "resolution": "480P",
    "aspect_ratio": "adaptive",
    "duration": 5,
    "audio": true
  }
}

使用 Wan 3.0 Video 生成

本页的 Playground、请求示例、请求字段和价格都会跟随当前选择的模型类型变化。

查看 API 详细文档

打开完整 API 文档,查看接口、鉴权、任务轮询和 payload 细节。 /models/wan.md

promptstringText prompt, supporting both Chinese and English. Up to 20,000 characters; excess characters will be truncated automatically. Required for text-to-video generation; for other modes, it is recommended to provide it together with media. In reference mode, use Image1/Video1/Audio1 to reference the provided media.
first_frame_urlstringURL of the first-frame image. Up to 1 image, used strictly as the first frame of the video. Used for first-frame-to-video / first-and-last-frame-to-video generation. Cannot be provided together with `reference_*_urls`.
last_frame_urlstringURL of the last-frame image. Used with first_frame_url for first-and-last-frame generation; the same image limits apply.
reference_image_urlsarrayReference images for the all-purpose reference mode, with up to 10 images. Correspond to Image1, Image2, … in the prompt according to array order. Specifications are the same as `first_frame_url`. Cannot be provided together with the first-frame/last-frame parameters.
reference_video_urlsarrayReference videos for the all-purpose reference mode, with up to 5 clips. Each clip must be 1–15 seconds, with a total duration ≤ 15 seconds. Correspond to Video1, Video2, … according to array order.
reference_audio_urlsarrayReference audio for the all-purpose reference mode, with up to 5 clips. Each clip must be 1–15 seconds, with a total duration ≤ 15 seconds. Correspond to Audio1, Audio2, … according to array order. Formats: wav, mp3; ≤ 15MB. Audio should not be used alone as the only media input; pairing it with an image or video is still recommended.
reference_file_urlsarrayFile-to-video generation. Up to 1 file. Cannot be provided together with `reference_link_urls`, or with the first-frame/last-frame parameters.
reference_link_urlsarrayLink-to-video generation. Up to 1 publicly accessible webpage that does not require login. Cannot be provided together with `reference_file_urls`, or with the first-frame/last-frame parameters.
resolutionenumOutput resolution. Default: **1080P**. (480P, 720P, 1080P)
aspect_ratioenumOutput aspect ratio. `adaptive` (default) automatically selects the ratio based on the input media and intent. (adaptive, 16:9, 4:3, 1:1, 3:4, 9:16)
durationnumberOutput video duration in seconds. Default: 5. Without video input, the range is [2, 30]. With reference videos: input video duration + output duration ≤ 30. Pass `-1` to use an intelligent duration determined by the model. This studio requires a fixed duration of 2–30 seconds so the price can be calculated before submission; automatic duration (-1) is disabled.
audiobooleanWhether the output video includes an audio track. Default: true.
seednumberRandom seed used to reproduce results. If omitted, a random seed will be used.
能力

Wan API 为视频工作流带来的能力

页面沿用 API 优先结构:先测试 Wan 模型,再理解字段,最后进入集成。

文生视频生成

用提示词生成电影感短片,并控制分辨率、比例、时长、负向提示词、种子和提示词扩展。

图生视频动效

把静态图片转成短视频,同时尽量保留主体、构图和视觉风格。

视频编辑工作流

使用源视频和参考图片修改服装、物体、风格或动作,同时保持场景整体连贯。

参考生视频控制

结合参考图、参考视频、首帧和语音输入,控制角色、动作、节奏和场景布局。

快速开始

从 Wan Playground 测试到生产请求

适合团队先验证 Wan 输出质量,再把生成能力接入应用或内容管线。

1. 选择 Wan 模式

根据源输入选择文生视频、图生视频、视频编辑、参考生视频,或其他旧版 Wan 工作流。

2. 提交生成

使用账户密钥、模型 ID、提示词、素材 URL、分辨率、时长、比例和回调设置调用 API。

3. 轮询并使用

跟踪任务直到成功,然后获取生成视频 URL,用于应用、营销活动或自动化流程。

使用场景

你可以用 Wan API 创作什么

当产品需要覆盖多种输入方式的可重复 AI 视频输出时,可以直接接入 API,而不只是做一次性生成。

提示词生成的社媒短片和广告
产品图片动效和主视觉视频
参考驱动的角色与场景视频
服装、道具和视觉风格的视频编辑
视频转视频风格化工作流
内容管线中的批量创意生成
生产说明

面向真实 Wan API 工作流构建

账户级执行

用户登录后提交任务,并通过现有 SdanceAI 生成流程消耗积分。

灵活源素材

Wan 工作流既支持纯提示词请求,也支持图片、视频、首帧、参考素材和部分音频输入。

按分辨率控制成本

可以先用 720p 快速迭代,再在方向确认后切换到 1080p 做更清晰的最终渲染。

常见问题

Wan API 常见问题

Wan API 最适合什么场景?

它适合需要在一个集成里覆盖多种 AI 视频工作流的团队,包括文生视频、图生视频、视频编辑、视频转视频、动画和参考驱动生成。

本页支持哪些 Wan 模型?

本页跟随已配置的 Wan family,包括 Wan 2.7 文生视频、图生视频、视频编辑、参考生视频,Wan 2.6 工作流,Wan 2.5 工作流,以及 Wan 2.2 动画模式。

文生视频和图生视频有什么区别?

文生视频只从提示词开始生成。图生视频会使用源图片,让生成视频尽量保留输入中的主体、构图或视觉风格。

什么时候应该使用 Wan 2.7 Reference to Video?

当你需要参考图片、参考视频、首帧或语音输入提供更强控制,而不是只依赖文字提示词时,适合使用 Reference to Video。

Wan API 支持 1080p 输出吗?

本页的 Wan 2.7 条目包含 720p 和 1080p 价格行。可以根据质量和成本目标选择分辨率。

可以编辑已有视频吗?

可以。需要通过提示词和参考素材修改源视频时,可以使用 Wan 2.7 Video Edit 或其他视频输入工作流。

可以使用负向提示词吗?

支持的 Wan 请求 schema 包含 negative prompt 字段,可用于减少模糊、畸变、低质量和其他不想要的细节。

接入前在哪里测试 Wan?

可以直接使用本页 Playground 测试模型、提示词、素材 URL、分辨率、时长和 API payload。

如何控制成本?

提示词探索阶段建议使用较低分辨率和较短时长,方向确认后再切换到 1080p 或更长时长。

Wan API 可以用于商业项目吗?

本页面面向生产视频工作流配置。商业使用前,请确认账户套餐、积分余额、模型可用性以及适用的内容政策要求。

开始接入

把 Wan 接入你的视频工作流

先打开生成器测试 Wan 提示词或参考素材工作流,确认效果后再通过 API 文档接入到生产流程。

API 就绪
工作流
720p-1080p
分辨率
多输入
控制方式