Qwen

Alibaba

API 当前可用视频生成图像生成

Wan API

万相(Wan)是阿里巴巴的视频与图像生成模型系列。生成最长 30 秒、带原生音频的视频,让静图动起来,为人像对口型,或输出 4K 静图——所有版本共用一个 API Key,按秒或按张计费。

版本数
7
起价
$0.033/秒
免费试用
$0.20 · 200 积分

试用 Wan API

视频
图像

使用阿里巴巴万相 Wan 3.0,结合文本、首尾帧或最多 10 张参考图与 5 段参考音频生成 2–30 秒、480p 至 1080p 原生有声视频。

输入

  • 首帧first_frame_image

    在 Playground 上传你自己的文件。

    可选
  • 尾帧图片last_frame_image

    在 Playground 上传你自己的文件。

    可选
  • 参考图≤10reference_image_urls

    在 Playground 上传你自己的文件。

    可选
  • 参考音频≤5reference_audio_urls

    在 Playground 上传你自己的文件。

    可选

$0.645 · 645 积分(720p · 5s)

$15 套餐约可运行 23 次

超出 $0.20 免费额度。

登录后即可运行。这次运行超出新账户赠送的 $0.20 免费积分,需要购买积分包。

输出

Wan 3.0 生成示例

resolution: 720pduration: 5aspect_ratio: 16:9generate_audio: true
使用的提示词Night in a narrow Tokyo alley after rain. A street musician in a long coat plays a slow jazz phrase on a saxophone under a flickering neon sign, puddles reflect pink and blue light. The camera slowly dollies in from a wide shot to a medium shot. Sound: the saxophone melody, rain dripping from awnings, distant traffic.

Night in a narrow Tokyo alley after rain. A street musician in a long coat plays a slow jazz phrase on a saxophone under a flickering neon sign, puddles reflect pink and blue light. The camera slowly dollies in from a wide shot to a medium shot. Sound: the saxophone melody, rain dripping from awnings, distant traffic.

Wan API 生成示例

以下视频和图片均通过 Wizzx API 生成,附完整提示词、参数和输入文件。鼠标悬停即可播放视频,也可以一键在 Playground 中打开。

  • 生成模型: Wan 3.0

    含音频
    resolution: 720pduration: 5aspect_ratio: 16:9generate_audio: true
    提示词Night in a narrow Tokyo alley after rain. A street musician in a long coat plays a slow jazz phrase on a saxophone under a flickering neon sign, puddles reflect pink and blue light. The camera slowly dollies in from a wide shot to a medium shot. Sound: the saxophone melody, rain dripping from awnings, distant traffic.

    Night in a narrow Tokyo alley after rain. A street musician in a long coat plays a slow jazz phrase on a saxophone under a flickering neon sign, puddles reflect pink and blue light. The camera slowly dollies in from a wide shot to a medium shot. Sound: the saxophone melody, rain dripping from awnings, distant traffic.

  • 生成模型: Wan 3.0 Prime

    含音频
    resolution: 720pduration: 5aspect_ratio: 16:9generate_audio: true
    提示词Close-up in a dark glassblowing workshop: an artisan turns a blowpipe while shaping a glowing orange glass vase, heat shimmer and tiny sparks in the air. The camera slowly orbits around the hands and the molten glass. Sound: the low roar of the furnace and soft crackling.

    Close-up in a dark glassblowing workshop: an artisan turns a blowpipe while shaping a glowing orange glass vase, heat shimmer and tiny sparks in the air. The camera slowly orbits around the hands and the molten glass. Sound: the low roar of the furnace and soft crackling.

  • 生成模型: WAN 2.6 Flash

    resolution: 720pduration: 5shot_type: single
    • image_urls · 首帧,由 Wan 2.7 Image 生成

    提示词The tram rolls slowly across the bridge from left to right, fog drifts over the river and birds take off from the water. Gentle camera push-in.

    The tram rolls slowly across the bridge from left to right, fog drifts over the river and birds take off from the water. Gentle camera push-in.

  • 生成模型: Wan 2.7

    resolution: 720pduration: 5aspect_ratio: 16:9
    提示词Aerial drone shot following a lone cyclist on a winding coastal road high above a turquoise sea at golden hour. Waves break on the cliffs below, then the camera slowly rises to reveal the whole coastline.

    Aerial drone shot following a lone cyclist on a winding coastal road high above a turquoise sea at golden hour. Waves break on the cliffs below, then the camera slowly rises to reveal the whole coastline.

  • Wan 2.7 Image 生成:日出时分驶过薄雾石桥的红色电车

    生成模型: Wan 2.7 Image

    aspect_ratio: 16:9resolution: 2K
    提示词Cinematic still: a red vintage tram crossing an old stone bridge over a misty river at sunrise in a European city. Warm low sun breaks through the fog, a few small figures walk on the bridge, birds lift off the water. Photorealistic, 35mm film look, soft volumetric light, natural color.

    Cinematic still: a red vintage tram crossing an old stone bridge over a misty river at sunrise in a European city. Warm low sun breaks through the fog, a few small figures walk on the bridge, birds lift off the water. Photorealistic, 35mm film look, soft volumetric light, natural color.

  • Wan 2.7 Image Pro 生成:青瓷茶壶的 4K 产品照

    生成模型: Wan 2.7 Image Pro

    aspect_ratio: 4:3resolution: 4K
    提示词Editorial product photograph of a handmade ceramic teapot with a pale celadon crackle glaze on a walnut table. Steam curls from the spout, two small cups and a sprig of jasmine sit beside it, morning window light from the side, shallow depth of field, ultra-detailed glaze texture.

    Editorial product photograph of a handmade ceramic teapot with a pale celadon crackle glaze on a walnut table. Steam curls from the spout, two small cups and a sprig of jasmine sit beside it, morning window light from the side, shallow depth of field, ultra-detailed glaze texture.

比较 Wan API 各版本

Wizzx 实时目录中的全部 7 个版本。价格为各版本最低档位,最终单价由分辨率和时长决定。

版本模式输入输出价格链接
视频
Wan 3.0最新
wan-3.0
文/图生视频
  • 首帧
  • 尾帧图片
  • 参考图≤10
  • 参考音频≤5
480p720p1080p

2–30 秒含音频

$0.065/秒

720p · 5s 约 $0.645

wan-3.0-prime
文/图生视频
  • 首帧
  • 尾帧图片
  • 参考图≤10
  • 参考音频≤5
480p720p1080p

2–30 秒含音频

$0.097/秒

720p · 5s 约 $0.97

wan-2.7
文/图生视频
  • 首帧
  • 尾帧图片
  • 参考图≤5
  • 音频链接
720p1080p

2–15 秒含音频

$0.124/秒

720p · 5s 约 $0.62

wan-2.6-flash
图生视频
  • 首帧
720p1080p

2–15 秒无声

$0.033/秒

720p · 5s 约 $0.165

wan-2.2-speech-to-video
图像 + 语音生视频
  • 人像图片
  • 语音音频
480p580p720p

3–7 秒你的语音

$0.093/秒

480p · 5s 约 $0.465

图像
wan-2.7-image
文生图 · 图像编辑
  • 参考图≤9
1K2K

$0.034/张

wan-2.7-image-pro
文生图 · 图像编辑
  • 参考图≤9
1K2K4K

$0.084/张

Wizzx 价格为各版本最低档位,实时读取自价格目录。官方价格为模型厂商公开的可比档位标价(如有)。分辨率、时长和音频会影响档位,完整档位请看各版本页。

Wan API 费用示例

按各版本最低档位的实时价格计算;分辨率更高、时长更长或参考素材更多时费用会增加。

  • Wan 3.0:10 段 5 秒视频 × $0.645 = $6.45
  • Wan 3.0 Prime:10 段 5 秒视频 × $0.97 = $9.700
  • Wan 2.7:10 段 5 秒视频 × $0.62 = $6.20
  • WAN 2.6 Flash:10 段 5 秒视频 × $0.165 = $1.65
  • Wan 2.2 Speech-to-Video:10 段 5 秒视频 × $0.465 = $4.650
  • Wan 2.7 Image:100 张 × $0.034 = $3.40
  • Wan 2.7 Image Pro:100 张 × $0.084 = $8.40

Wan 系列模型由 Alibaba 开发。Wizzx 提供 API 访问,不拥有这些模型。所有商标归各自所有者所有。

该选哪个 Wan 版本?

按你要完成的任务来选。每张卡片都链接到该版本的完整参数和价格。

用 Wan API 能做什么

每项能力在 Wizzx 上需要哪些输入,以及哪些版本支持。

  • 文生视频

    在一个提示词里描述主体、动作、镜头和声音。Wan 3.0 与 3.0 Prime 单次可生成 2–30 秒,Wan 2.7 为 2–15 秒。

  • 图生视频

    用 first_frame_image 指定开场画面,用 last_frame_image 锁定结尾。Wan 2.6 Flash 通过 image_urls 传入必填的首帧,并可拆分为多个镜头。

  • 参考图与参考音频

    Wan 3.0 最多可传 10 张 reference_image_urls(Wan 2.7 为 5 张)保持角色或商品一致,并用最多 5 段 reference_audio_urls 引导人声或环境音。参考素材不额外收费。

  • 原生音频

    Wan 3.0 与 3.0 Prime 随画面同步生成音轨(generate_audio,默认开启),不额外收费。Wan 2.7 会自动配上匹配的音乐或音效,也可按你传入的 audio_url 生成。Wan 2.6 Flash 输出无声。

  • 语音驱动人像

    在 image_url 传入人像、在 audio_url 传入语音,Wan 2.2 Speech-to-Video 返回 3–7 秒、口型同步且头部动作自然的视频。

  • 图像与多参考编辑

    Wan 2.7 Image 与 Image Pro 支持文生图或融合最多 9 张参考图,复杂构图可开启 thinking_mode。1K、2K 以及 Pro 的 4K 价格相同。

关于万相模型

万相(Wan,通义万相)是阿里巴巴的视频与图像生成模型系列。新版本带来更长的视频、原生音频和更丰富的参考输入,Wan 2.1 与 Wan 2.2 还开放了模型权重。在 Wizzx 上,所有万相版本共用同一套任务 API 和同一个积分余额,切换版本只需改一个模型 ID。

提示词技巧

  1. 1

    按节拍写:主体、动作、镜头运动、光线,最后是声音。镜头运动要写明,例如“缓慢推近”或“环绕双手旋转”。

  2. 2

    在 Wan 3.0 和 3.0 Prime 上,把想要的声音(对白、音乐、环境音)写进同一个提示词,音频会和画面一起生成。

  3. 3

    同一个 Wan 3.0 请求里,首尾帧和参考图二选一:API 将两者视为互斥。

  4. 4

    先用 480p 或 720p 加固定 seed 迭代,再用 1080p 或 Wan 3.0 Prime 渲染最终版本。按秒计费,5 秒的测试只需 30 秒成片的六分之一。

  5. 5

    提示词扩写(prompt_extend)会为简短提示词补充细节。需要模型严格按你的措辞生成时请关闭;Wan 2.6 Flash 的多镜头模式需要开启。

接入 Wan API

创建服务端 API Key,按照所选模型的参数提交任务,保留返回的任务 ID 并查询结果。每个模型页都提供对应的请求协议文档。

  1. 1

    创建 API Key

    登录后在控制台创建密钥,在服务端环境中设置 WIZZX_API_KEY,不要将密钥暴露在浏览器代码中。

  2. 2

    提交任务

    向模型接口发送 POST 请求。提交成功后返回 data.task_id,请保留该 ID 用于查询。提交成功不代表内容已经生成完成。

  3. 3

    获取生成结果

    将 YOUR_TASK_ID 替换为返回的任务 ID,查询 GET /api/v1/task/{task_id}。等待 SUCCEEDED 后读取输出 URL。遇到 FAILED 或 REVIEW_REQUIRED 时停止,不要自动重提状态不明的任务。

版本

POSThttps://api.wizzx.ai/api/v1/task/submit/wan-3.0
提交任务
submit.sh
curl -X POST \
  https://api.wizzx.ai/api/v1/task/submit/wan-3.0 \
  -H "Authorization: Bearer $WIZZX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "resolution": "720p",
  "duration": 5,
  "generate_audio": true,
  "aspect_ratio": "adaptive",
  "prompt": "Night in a narrow Tokyo alley after rain. A street musician in a long coat plays a slow jazz phrase on a saxophone under a flickering neon sign, puddles reflect pink and blue light. The camera slowly dollies in from a wide shot to a medium shot. Sound: the saxophone melody, rain dripping from awnings, distant traffic."
}'
获取生成结果
status.sh
curl https://api.wizzx.ai/api/v1/task/YOUR_TASK_ID \
  -H "Authorization: Bearer $WIZZX_API_KEY"

Wan 3.0 请求参数

完整参数

Wizzx 上该接口接受的字段,与 Playground 表单使用同一份 schema。

参数类型默认值可选值说明
prompt
提示词必填
string—≤ 20,000描述你想生成的视频
first_frame_image
首帧
url——可选首帧图片链接(与参考图互斥)。
last_frame_image
尾帧图片
url——可选尾帧图片链接(需同时提供首帧)。
reference_image_urls
参考图
url[] ≤ 10——可选。最多 10 张参考图(与首帧互斥);参考图不另收费。
reference_audio_urls
参考音频
url[] ≤ 5——可选。最多 5 段参考音频;参考音频不另收费。
duration
时长
integer52 – 30视频时长(秒),时长决定总价。
resolution
分辨率
string720p480p · 720p · 1080p分辨率决定每秒费率。
generate_audio
生成音频
booleantrue—默认生成音频,且不影响价格。
aspect_ratio
宽高比
stringadaptiveadaptive · 16:9 · 9:16 · 1:1 · 4:3 · 3:4—
seed
随机种子
integer—0 – 2147483647用于复现结果的随机种子
查看 API 文档

API 接入常见问题

应该选哪个万相版本?
大多数视频任务从 Wan 3.0 开始:最长 30 秒、原生音频、输入最丰富。最终成片用 Wan 3.0 Prime;低成本让静图动起来用 Wan 2.6 Flash;数字人口播用 Wan 2.2 Speech-to-Video;静图和首帧用 Wan 2.7 Image。
万相 API 能生成音频吗?
可以。Wan 3.0 与 Wan 3.0 Prime 默认随视频生成音频(generate_audio: true),不额外收费,还可加入最多 5 段参考音频。Wan 2.7 会自动生成匹配的背景音乐或音效,也可把你传入的 audio_url 作为驱动音频。Wan 2.2 Speech-to-Video 输出带有你上传的语音并对口型。Wan 2.6 Flash 输出始终无声。
万相视频最长多久?
Wan 3.0 与 3.0 Prime:2–30 秒。Wan 2.7 与 Wan 2.6 Flash:2–15 秒(Wan 2.7 传参考图时最长 10 秒)。Wan 2.2 Speech-to-Video:3–7 秒。视频按秒计费,时长决定价格。
可以用自己的图片作为起点吗?
可以。在 Wan 3.0、3.0 Prime 和 2.7 上以 first_frame_image 传入公开图片 URL(加 last_frame_image 可锁定结尾);Wan 2.6 Flash 通过 image_urls 传入,且首帧必填。Wan 2.2 Speech-to-Video 通过 image_url 传入人像。
万相是开源的吗?
部分开源。阿里巴巴在 Wan-Video GitHub 上发布了 Wan 2.1 和 Wan 2.2 的开放权重,其中包括 Wan2.2-S2V-14B 语音驱动视频模型(Wan 2.2 采用 Apache 2.0 协议)。Wan 2.6、2.7 和 3.0 没有在那里发布权重,以托管模型形式提供,Wizzx 也以这种方式提供所有版本。
这是官方的 Wan API 吗?
不是。Wan 模型由 Alibaba 开发。Wizzx 是独立的 API 平台,通过一个 API Key、异步任务接口和按量计费的积分提供调用。
Wan API 怎么收费?
按量付费,无需订阅。起价:Wan 3.0 $0.065/秒、Wan 3.0 Prime $0.097/秒、Wan 2.7 $0.124/秒、WAN 2.6 Flash $0.033/秒、Wan 2.2 Speech-to-Video $0.093/秒、Wan 2.7 Image $0.034/张和Wan 2.7 Image Pro $0.084/张。计费单位和费率因模型及设置而异。部分模型会对参考输入额外收费;生成前请查看所选模型的价格说明和本次费用估算。
Wan API 的模型 ID 是什么?
向 POST /api/v1/task/submit/{model_id} 提交任务,可用的模型 ID:wan-3.0, wan-3.0-prime, wan-2.7, wan-2.6-flash, wan-2.2-speech-to-video, wan-2.7-image, wan-2.7-image-pro。
任务失败会扣费吗?
不会。提交任务时预留积分,任务失败会退还,只有成功的任务才计费。
可以免费试用 Wan API 吗?
可以。新账户赠送 $0.20 免费积分,用最便宜的 WAN 2.6 Flash 约可生成 6 秒视频。

探索更多 AI API

同一个 Wizzx API Key 还能调用的其他模型系列和分类。

Wizzx API

开始使用 Wan API

新账户赠送 $0.20 免费积分。按量付费,无需订阅,失败任务自动退款。

在 Playground 试用