Wan 2.6 API
阿里巴巴 WAN 2.6——文生视频和图生视频,720p/1080p 并带同步音频,同系列中还有参考生视频、视频延长、图像编辑和文生图。提供追求速度的 Flash 档位。
文生视频和图生视频,720p/1080p,带同步音频。图生视频 Flash 面向速度优化的生成。参考生视频可保留角色、道具或场景参考中的身份。视频延长支持保留或生成同步音频。
概览
关于 Wan 2.6 API
Wan 2.6 能做什么、它在 Alibaba 模型阵容中的定位,以及团队选择它的原因。
Wan 2.6 是 Alibaba 推出的视频生成模型,可通过 WaveSpeedAI REST API 使用。阿里巴巴 WAN 2.6——文生视频和图生视频,720p/1080p 并带同步音频,同系列中还有参考生视频、视频延长、图像编辑和文生图。提供追求速度的 Flash 档位。
文生视频和图生视频,720p/1080p,带同步音频。图生视频 Flash 面向速度优化的生成。参考生视频可保留角色、道具或场景参考中的身份。视频延长支持保留或生成同步音频。
WaveSpeedAI 上的 Wan 2.6 系列提供 9 个 REST 端点,涵盖 Text-To-Image, Image-To-Video, Video-Extend, Reference-To-Video, Image-To-Image, Text-To-Video 个工作流。每个变体都有各自的定价、参数选项和示例输出——请选择与你的输入模态和生产约束相匹配的那一个,或使用同一个 API 密钥调用多个变体,组合成多步骤流水线。
使用与 WaveSpeedAI 上其他 1,000 多个 AI 模型相同的 API 密钥、账单账户和速率限制来运行 Wan 2.6。无需单独对接供应商,无需各家 SDK,也无需应对各家不同的速率限制——一次集成即可覆盖从文生图、文生视频到音频合成、3D 生成、放大和编辑的全部能力。
端点
全部 Wan 2.6 API 端点
WaveSpeedAI 现已提供 9 个 Wan 2.6 端点——请选择适合你工作流的变体。
/filters:quality(82)/media/images/20260408104303_j8tzky7x.webp)
Wan 2.6 Text To Image
WAN 2.6 Text-to-Image generates high-quality images from natural-language prompts with strong prompt adherence and clean composition. It supports multiple aspect ratios and size control, seed-based reproducibility, and flexible styles (photorealistic to illustrative) for ads, product shots, and social visuals. Built for stable production use with a ready-to-use REST API, no cold starts, and predictable pricing.
/filters:quality(82)/media/images/20260408104248_rpfzmi3p.webp)
Wan 2.6 Image To Video Pro
WAN 2.6 Image-to-Video Pro converts images into premium-quality videos with superior motion dynamics, enhanced visual fidelity, and professional cinematic output. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/20260408104233_jng90n8q.webp)
Wan 2.6 Video Extend
WAN 2.6 Video-Extend turns short clips into longer videos with preserved or generated synchronized audio for continuity. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/20260408104243_x402fmab.webp)
Wan 2.6 Reference To Video
WAN 2.6 Reference-to-Video turns character, prop, or scene references—single or multi-view—into new video shots with preserved identity, style, and layout plus smooth, coherent motion. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.
/filters:quality(82)/media/images/20260408104326_ja5ok664.webp)
Wan 2.6 Image Edit
WAN 2.6 Image-Edit turns prompts into precise photo edits—adjusting color and lighting, restyling aesthetics, replacing backgrounds, removing objects, and refining details while preserving subject identity. Built for stable, repeatable image-to-image pipelines. Ready-to-use REST API, best performance, no cold starts, affordable pricing.
/filters:quality(82)/media/images/20260408104308_kny71fdq.webp)
Wan 2.6 Text To Video
WAN 2.6 Text-to-Video turns plain prompts into coherent, cinematic clips with crisp detail, stable motion, and strong instruction-following—great for ads, explainers, and social posts. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.
/filters:quality(82)/media/images/20260408104253_1r9s93sw.webp)
Wan 2.6 Image To Video Flash
WAN 2.6 Flash converts images into videos (720p/1080p) with optional audio, optimized for speed and cost. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/20260408104256_qerhgv9n.webp)
Wan 2.6 Reference To Video Flash
WAN 2.6 Reference-to-Video Flash turns character, prop, or scene references from images or videos into new video shots with preserved identity, style, and layout plus smooth, coherent motion. Flash version with faster generation speed. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
/filters:quality(82)/media/images/20260408104234_xtl4o7lx.webp)
Wan 2.6 Image To Video
WAN 2.6 converts text or images into videos (720p/1080p) with synced audio, faster and more affordable than Google Veo3. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.
示例
看看 Wan 2.6 的实际效果
由 Wan 2.6 API 生成的真实输出。悬停在任意视频上即可预览,点击可打开全尺寸查看器。
使用方法
如何使用 Wan 2.6 API
从注册到完成一次生成,只需四步。完整的 Python、Node.js 和 cURL 示例见下方的 API 部分。
- 01
获取 API 密钥
注册 WaveSpeedAI 账号,并从控制台复制你的 API 密钥。新账号附带免费体验额度——足够在开始计费前把 Playground 运行几十次。
- 02
提交预测
把你的输入以 JSON 形式 POST 到 https://api.wavespeed.ai/api/v3/alibaba/wan-2.6/text-to-video。端点会立即返回预测 ID——生成是异步的,因此推理期间你无需保持连接。
- 03
轮询完成状态
GET https://api.wavespeed.ai/api/v3/predictions/{request_id}/result。状态为 completed 时返回输出;状态为 failed、cancelled、timeout 或 deleted 时以错误终止;其他任何状态都继续轮询。
- 04
读取输出 URL
状态变为 "completed" 后,从 data.outputs[0] 读取 URL。该 URL 指向 WaveSpeedAI CDN 上你生成的媒体——具体是图片、视频、音频还是 3D 文件,取决于你调用的 Wan 2.6 变体。
应用场景
用 Wan 2.6 可以构建什么
开发者和创作者使用 Wan 2.6 API 的常见工作流。
带同步音频的文生视频
alibaba/wan-2.6/text-to-video 把普通提示词变成连贯的电影感片段,细节清晰、运动稳定,并带同步音频——目录定位:非常适合广告、讲解视频和社交帖子。
720p/1080p 的图生视频
alibaba/wan-2.6/image-to-video 把图像转换为 720p/1080p 的视频,带同步音频——按目录定位,比 Google Veo3 更快、更实惠。
保持身份的参考生视频
alibaba/wan-2.6/reference-to-video 把角色、道具或场景参考(单视角或多视角)转换为新的视频镜头,保留身份、风格和布局,运动流畅连贯。
音频连续的视频延长
alibaba/wan-2.6/video-extend 把短片段变成更长的视频,保留或生成同步音频以保持连贯——适合用较短的源片段构建更长的序列。
同系列内的图像编辑
alibaba/wan-2.6/image-edit 执行精确的照片编辑——调整色彩和光线、重塑美学风格、替换背景、移除物体——同时保留主体身份。
Flash 档位
image-to-video-flash 针对速度和成本优化——迭代和大批量 i2v 流水线请选择 Flash。
技巧
Wan 2.6 提示词技巧
让 Wan 2.6 输出更好结果的实用建议——总结自生产流水线中各类视频模型都适用的做法。
- 01
同步音频——在提示词中描述声音
Wan 2.6 在文生视频和图生视频上提供同步音频。请在画面提示词之外,描述环境声、对白情绪或音乐类型。
- 02
Flash 档位用于迭代,Standard 用于交付
image-to-video-flash 针对速度和成本优化;标准的图生视频和文生视频用于带同步音频的交付级输出。
- 03
参考生视频,保持身份一致
当角色、道具或场景的身份必须从参考图像延续到生成的片段时,请使用参考生视频——支持单视角或多视角参考。
- 04
音频连续的视频延长
视频延长会在延长部分保留或生成同步音频——适合用较短的源素材构建更长的片段。
- 05
跨模态:同一系列内的图像编辑 + 视频
先用文生图生成静态图,再用图像编辑精修,然后用图生视频让它动起来——全部在 alibaba/wan-2.6/* 之下,无需切换模型系列。
定价
Wan 2.6 API 定价
按输出计费。最终费用会随你在各变体 Playground 中设置的参数(分辨率、时长、输出数量、参考素材)而变化。
| 端点 | 类型 | 起步价 |
|---|---|---|
| alibaba/ | text-to-image | $0.03 |
| alibaba/ | image-to-video | $0.60 |
| alibaba/ | video-extend | $0.25 |
| alibaba/ | reference-to-video | $0.50 |
| alibaba/ | image-to-image | $0.035 |
| alibaba/ | text-to-video | $0.50 |
| alibaba/ | image-to-video | $0.125 |
| alibaba/ | reference-to-video | $0.125 |
| alibaba/ | image-to-video | $0.50 |
API
调用 Wan 2.6 API
在 wavespeed.ai/accesskey 注册并获取 API 密钥,然后通过 REST 提交预测。Playground 可以为任意输入组合生成可直接粘贴的示例代码。
POSThttps://api.wavespeed.ai/api/v3/alibaba/wan-2.6/text-to-video
# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
-X POST "https://api.wavespeed.ai/api/v3/alibaba/wan-2.6/text-to-video" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $WAVESPEED_API_KEY" \
-d '{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"size": "1280*720",
"duration": 5,
"shot_type": "single",
"enable_prompt_expansion": false
}')
TASK=$(printf '%s' "$SUBMIT_RESPONSE" | jq 'if has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "$TASK" | jq -r '.id')
if [ -z "$PREDICTION_ID" ] || [ "$PREDICTION_ID" = "null" ]; then
printf 'Submission response did not contain a prediction id
' >&2
exit 1
fi
RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/$PREDICTION_ID/result"
# 2. Poll until the prediction finishes.
while true; do
RESPONSE=$(curl --silent --show-error --fail-with-body "$RESULT_URL" \
-H "Authorization: Bearer $WAVESPEED_API_KEY")
RESULT=$(printf '%s' "$RESPONSE" | jq 'if has("data") then .data else . end')
STATUS=$(printf '%s' "$RESULT" | jq -r '.status')
case "$STATUS" in
completed) printf '%s\n' "$RESULT" | jq '.outputs'; break ;;
failed|cancelled|timeout|deleted) printf '%s\n' "$RESULT" | jq . >&2; exit 1 ;;
*) sleep 2 ;;
esac
doneconst submitUrl = "https://api.wavespeed.ai/api/v3/alibaba/wan-2.6/text-to-video";
const apiKey = process.env.WAVESPEED_API_KEY;
if (!apiKey) throw new Error('Set WAVESPEED_API_KEY');
async function requestJson(url, options = {}) {
const response = await fetch(url, options);
if (!response.ok) throw new Error(await response.text());
return response.json();
}
// 1. Submit the prediction.
const body = await requestJson(submitUrl, {
method: "POST",
headers: {
"Authorization": `Bearer ${apiKey}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"size": "1280*720",
"duration": 5,
"shot_type": "single",
"enable_prompt_expansion": false
}),
});
const task = body.data ?? body;
const resultUrl = `https://api.wavespeed.ai/api/v3/predictions/${task.id}/result`;
// 2. Poll until the prediction finishes.
while (true) {
const resultBody = await requestJson(resultUrl, {
headers: { "Authorization": `Bearer ${apiKey}` },
});
const result = resultBody.data ?? resultBody;
if (result.status === "completed") {
console.log(result.outputs);
break;
}
if (["failed", "cancelled", "timeout", "deleted"].includes(result.status)) throw new Error(JSON.stringify(result));
await new Promise(resolve => setTimeout(resolve, 2000));
}import json
import os
import time
from urllib.request import Request, urlopen
api_key = os.environ["WAVESPEED_API_KEY"]
headers = {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}
payload = {
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"size": "1280*720",
"duration": 5,
"shot_type": "single",
"enable_prompt_expansion": False
}
def request_json(url, data=None):
request = Request(url, data=data, headers=headers, method="POST" if data else "GET")
with urlopen(request) as response:
return json.load(response)
# 1. Submit the prediction.
body = request_json("https://api.wavespeed.ai/api/v3/alibaba/wan-2.6/text-to-video", json.dumps(payload).encode())
task = body.get("data", body)
result_url = f"https://api.wavespeed.ai/api/v3/predictions/{task['id']}/result"
# 2. Poll until the prediction finishes.
while True:
result_body = request_json(result_url)
result = result_body.get("data", result_body)
status = result.get("status")
if status == "completed":
print(result.get("outputs", []))
break
if status in {"failed", "cancelled", "timeout", "deleted"}:
raise RuntimeError(result)
time.sleep(2)对比
Wan 2.6 与其他方案对比
在 WaveSpeedAI 上,何时应选择 Wan 2.6 而不是同类模型。
Wan 2.6 对比 Wan 2.7
Wan 2.7 是较新的架构,提供 image-edit-pro、带思考模式的 text-to-image-pro,以及图生视频的首/尾帧控制。Wan 2.6 定位为更快、更实惠,带同步音频和 Flash 档位。
Wan 2.6 对比 Wan 2.2
Wan 2.2(WaveSpeedAI 变体)提供专用端点——Animate(120 秒)、Speech-to-Video(10 分钟)、Fun-Control(Apache 2.0)、LoRA 训练器。Wan 2.6 是阿里巴巴官方系列,同一命名空间下有同步音频以及跨模态的图像编辑/文生图。
Wan 2.6 对比 Seedance 2.0
Seedance 2.0 每个变体都带原生音频,并有 Turbo 档位。Wan 2.6 在同一系列中新增参考生视频、视频延长、图像编辑和文生图——跨模态工具集更广,价格区间不同。
常见问题
Wan 2.6 API — 常见问题
定价、许可、集成——关于在 WaveSpeedAI 上运行 Wan 2.6 的常见问题。
Wan 2.6 API 是什么?
Wan 2.6 是 Alibaba 的视频生成模型,在 WaveSpeedAI 上以 REST API 形式提供。阿里巴巴 WAN 2.6——文生视频和图生视频,720p/1080p 并带同步音频,同系列中还有参考生视频、视频延长、图像编辑和文生图。提供追求速度的 Flash 档位。你可以通过编程方式调用它,也可以在上方链接的 Playground 中试用。
如何调用 Wan 2.6 API?
注册 WaveSpeedAI 账号,从 /accesskey 复制你的 API 密钥,然后把输入以 JSON 形式 POST 到 https://api.wavespeed.ai/api/v3/alibaba/wan-2.6/text-to-video。端点会返回预测 ID。从大约每 2 秒一次开始轮询结果端点,长耗时任务可适当拉长间隔,并在任何终止状态时停止。上方有面向生产环境的 Python / Node.js / cURL 示例。
Wan 2.6 API 的费用是多少?
Wan 2.6 每次调用 $0.03 起。实际费用会随你设置的参数(分辨率、时长、输出数量、参考素材)而变化。Playground 中“生成”按钮旁的实时费用预览会显示你当前输入对应的准确价格。
有哪些 Wan 2.6 变体可用?
WaveSpeedAI 托管了 9 个已上线的 Wan 2.6 端点:alibaba/wan-2.6/text-to-image, alibaba/wan-2.6/image-to-video-pro, alibaba/wan-2.6/video-extend, alibaba/wan-2.6/reference-to-video, alibaba/wan-2.6/image-edit, alibaba/wan-2.6/text-to-video, alibaba/wan-2.6/image-to-video-flash, alibaba/wan-2.6/reference-to-video-flash等。每个变体都有自己的 Playground 页面和定价。
Wan 2.6 的输出可以商用吗?
商用权利遵循 Alibaba 的模型许可。大多数 Alibaba 模型允许商用输出;具体许可摘要请查看各模型的 Playground 页面,平台层面的条件请参阅 WaveSpeedAI 的服务条款。
为什么要在 WaveSpeedAI 上使用 Wan 2.6,而不是直接对接?
一个 API 密钥、一个账单账户,即可使用 Wan 2.6 以及来自其他提供方的 1,000 多个 AI 模型。无需逐家配置 SDK,无需应对各自独立的速率限制,也无需为每家重写集成代码。价格通常与 Alibaba 直接提供的 API 持平或更低。
提供方
关于 Alibaba
Wan 2.6 及 WaveSpeedAI 上 Alibaba 更多模型背后的团队。
阿里巴巴通义实验室推出了 Wan 系列视频模型和 Qwen 系列大语言模型。Wan 以开放权重发布、变体覆盖广泛(文生视频、图生视频、参考生视频、视频编辑、视频延长、图像编辑、文生图)而著称,并在运动稳定性和跨多语言提示词的提示词遵循方面表现稳定。
在 WaveSpeedAI 上用 Wan 2.6 开始构建
注册即送免费体验额度。一个 API 密钥,即可使用来自 Alibaba 及其他所有提供方的 1,000 多个 AI 模型。