Wan 2.6 Flash 参考生视频
alibaba/wan-2.6-flash/reference-to-video
根据参考图片或视频生成 2~10 秒视频,支持 720P、1080P 和可选音频。
示例
参数
| 名称 | 类型 | 默认 | 约束 | 说明 |
|---|---|---|---|---|
| prompt *提示词 | textarea | — | ≤ 1500 chars | 描述视频内容的提示词,支持中英文,最多 1500 字符。用 character1、character2…… 按参考文件顺序指代各个角色,模型只通过这种方式识别参考角色 |
| audio生成音频 | boolean | true | — | 开启时输出有声视频(可保持参考视频中的音色);关闭时输出无声视频,价格减半 |
| duration时长(秒) | number | 5 | 2 ~ 10 · step 1 | 生成视频的时长,2-10 秒的整数 |
| size分辨率 | select | 1920*1080 | 1920*1080 | 1080*1920 | 1440*1440 | 1632*1248 | 1248*1632 | 1280*720 | 720*1280 | 960*960 | … | 输出视频的分辨率(宽*高),1080P 价格高于 720P |
| shot_type镜头类型 | select | single | single | multi | single:一个连续镜头;multi:多个切换镜头。此设置优先于提示词中的镜头描述 |
| negative_prompt反向提示词 | textarea | — | ≤ 500 chars | 描述不希望在视频中出现的内容,最多 500 字符 |
| prompt_extend启用提示词扩展 | boolean | true | — | 如果设置为 true,将启用提示词优化器。 |
| seed随机种子 | number | — | 0 ~ 2147483647 · step 1 | 用于结果复现,取值 0-2147483647,留空表示随机 |
输出字段
| 字段 | 类型 | 说明 |
|---|---|---|
| videos | array<string> |
API
通过统一 REST API 调用本模型;在 API Keys 页获取密钥。
cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/alibaba/wan-2.6-flash/reference-to-video" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "character1 turns gently toward the camera with natural movement and a subtle smile. Smooth cinematic lighting.",
"audio": true,
"duration": 5,
"size": "1920*1080",
"shot_type": "single",
"prompt_extend": true,
"seed": 12345
}
}'
# 2) Poll until status is "completed", then read the output URLs
curl "https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID" \
-H "Authorization: Bearer YOUR_API_KEY"Python
import time, requests
API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# 1) Submit
resp = requests.post(
"https://www.namifusion.com/api/v1/marketplace/run/alibaba/wan-2.6-flash/reference-to-video",
headers=HEADERS,
json={
"input": {
"prompt": "character1 turns gently toward the camera with natural movement and a subtle smile. Smooth cinematic lighting.",
"audio": True,
"duration": 5,
"size": "1920*1080",
"shot_type": "single",
"prompt_extend": True,
"seed": 12345
}
},
)
resp.raise_for_status() # 401/402/429/5xx stop here instead of polling a bad task
task = resp.json()
# 2) Poll until a terminal state (completed / failed / cancelled).
# This model is allowed up to 1800s server-side.
deadline = time.time() + 1860
while task.get("status") not in ("completed", "failed", "cancelled"):
if time.time() > deadline:
raise TimeoutError(f"still {task.get('status')} — keep the task_uuid and poll later")
time.sleep(3)
poll = requests.get(f"https://www.namifusion.com/api/v1/marketplace/run/tasks/{task['task_uuid']}", headers=HEADERS)
poll.raise_for_status()
task = poll.json()
print(task["status"], task.get("output"))JavaScript
const API_KEY = "YOUR_API_KEY";
const HEADERS = { Authorization: `Bearer ${API_KEY}` };
// 1) Submit
const resp = await fetch("https://www.namifusion.com/api/v1/marketplace/run/alibaba/wan-2.6-flash/reference-to-video", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"prompt": "character1 turns gently toward the camera with natural movement and a subtle smile. Smooth cinematic lighting.",
"audio": true,
"duration": 5,
"size": "1920*1080",
"shot_type": "single",
"prompt_extend": true,
"seed": 12345
}
}),
});
if (!resp.ok) throw new Error(`submit failed: ${resp.status} ${await resp.text()}`);
let task = await resp.json();
// 2) Poll until a terminal state (completed / failed / cancelled).
// This model is allowed up to 1800s server-side.
const deadline = Date.now() + 1860 * 1000;
while (!["completed", "failed", "cancelled"].includes(task.status)) {
if (Date.now() > deadline) throw new Error(`still ${task.status} — keep the task_uuid and poll later`);
await new Promise((r) => setTimeout(r, 3000));
const poll = await fetch(`https://www.namifusion.com/api/v1/marketplace/run/tasks/${task.task_uuid}`, { headers: HEADERS });
if (!poll.ok) throw new Error(`poll failed: ${poll.status}`);
task = await poll.json();
}
console.log(task.status, task.output);文档
Wan 2.6 Flash 参考生视频
alibaba/wan-2.6-flash/reference-to-video
根据参考图片或视频生成 2~10 秒视频,支持 720P、1080P 和可选音频。
参数
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
reference_urls | array | true | — | 1~5 个参考文件,最多 5 张图片、3 段视频;顺序对应 character1、character2……。参考图片免费;各段参考视频的完整时长计入总计费时长。 图片支持 JPEG/JPG/PNG(无透明通道)/BMP/WEBP,240~8000 像素、最大 20MB;视频支持 MP4/MOV,1~30 秒、最大 100MB。; 1–5 URLs |
prompt | string | true | — | 描述视频内容的提示词,支持中英文,最多 1500 字符。用 character1、character2…… 按参考文件顺序指代各个角色,模型只通过这种方式识别参考角色; max 1500 characters |
audio | boolean | false | true | 开启时输出有声视频(可保持参考视频中的音色);关闭时输出无声视频,价格减半 |
duration | integer | false | 5 | 生成视频的时长,2-10 秒的整数 [2, 10]; integer |
size | string | false | "1920*1080" | 输出视频的分辨率(宽高),1080P 价格高于 720P 19201080, 10801920, 14401440, 16321248, 12481632, 1280720, 7201280, 960960, 1088832, 832*1088 |
shot_type | string | false | "single" | single:一个连续镜头;multi:多个切换镜头。此设置优先于提示词中的镜头描述 single, multi |
negative_prompt | string | false | — | 描述不希望在视频中出现的内容,最多 500 字符; max 500 characters |
prompt_extend | boolean | false | true | 如果设置为 true,将启用提示词优化器。 |
seed | integer | false | — | 用于结果复现,取值 0-2147483647,留空表示随机 [0, 2.14748e+09]; integer |
价格
总价=每秒单价×ceil(输出时长+各段参考视频完整时长之和)。所有时长相加后统一向上取整到整数秒,不逐段取整。参考图片不增加时长,免费。采用完整参考视频时长规则,不使用固定加 5 秒或 Alibaba 原厂参考时长截断规则。
| Resolution | audio=true USD/s | audio=false USD/s |
|---|---|---|
| 720P | $0.05 | $0.025 |
| 1080P | $0.075 | $0.0375 |
默认 1080P、输出 5 秒,仅图片参考时价格为 $0.375 (37.5 credits), audio=true; $0.1875 (18.75 credits), audio=false.
例:1 段 10 秒参考视频+5 秒输出,按 15 秒计费。参考顺序对应 character1、character2……。1 美元=100 积分,账户折扣另行计算。
720P: 1280*720, 720*1280, 960*960, 1088*832, 832*1088.
1080P: 1920*1080, 1080*1920, 1440*1440, 1632*1248, 1248*1632.
Flash 每秒单价采用 Alibaba 国际美元价,计费时长采用上述完整参考视频时长规则。
API
curl -X POST https://www.namifusion.com/api/v1/marketplace/run/alibaba/wan-2.6-flash/reference-to-video \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"input": {
"audio": true,
"duration": 5,
"size": "1920*1080",
"shot_type": "single",
"prompt_extend": true,
"reference_urls": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/08/31/0d2b8fc70ea0.jpeg"
],
"prompt": "character1 turns gently toward the camera with natural movement and a subtle smile. Smooth cinematic lighting.",
"seed": 12345
}
}'
curl 'https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID' \
-H "Authorization: Bearer $API_KEY"
使用 task_uuid 轮询至 completed 或 failed。成功时 output.videos 为视频 URL 字符串数组。
相关模型
xAI Grok Imagine Video v1.5 参考图转视频
使用提示词和 1-7 张参考图片生成 1-15 秒视频,支持 480p 和 720p。
Vidu Q4 Preview 参考生视频
根据提示词生成 3~16 秒视频,可选最多 15 张参考图片和 3 段参考音频,支持宽高比选择、音频生成及 540p~4k 分辨率。
MiniMax H3 参考图生视频
MiniMax H3 Reference to Video 可根据自然语言提示词和多模态参考内容生成连贯的 2K 视频,支持图片、视频和音频输入,可引导主体一致性、运动、时序、视觉风格和场景连贯性。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
Gemini Omni Flash 参考图生视频 API
Gemini Omni Flash 参考图生视频可根据一张或多张参考图片和文本提示词生成带同步音频的短视频,保持视觉主体一致性,并依据提供的参考内容进行引导式多模态视频生成。即开即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
Seedance 2.0 Mini 参考生视频
Seedance 2.0 Mini 参考图生视频 (Reference-to-Video) 是字节跳动推出的一款高速度、低成本的视频生成模型,专注于创作具有电影质感的多镜头视频。该模型能够完美融合参考图与文本提示词,生成极具叙事感的连续视频片段。它不仅支持灵动的 AI 镜头控制,更攻克了跨场景角色一致性的难题。模型支持从 480P 到 4K 的多分辨率输出,时长跨越 4-15 秒,并适配灵活的宽高比。提供开箱即用的 REST 推理 API,性能卓越,告别冷启动,是极具性价比的专业视频创作利器
Seedance 2.5 参考图/视频转视频
Seedance 2.5 的“参考生视频”功能是视觉统一的终极方案。它能精准提取参考素材的艺术风格、光影基调或构图意向,并将其完美融入新生成的视频中,确保您的系列创作拥有高度一致的视觉语言。
Seedance 2.0 Fast 视频编辑
Seedance 2.0 Fast(reference-to-video)可根据自然语言提示词对输入视频进行编辑,速度更快、成本更低。基于字节跳动 Seed 统一多模态架构构建,在按指令重写光照、风格、天气、环境或特定元素的同时,保留主体身份、构图和运动。提供开箱即用的 REST API,性能出色,无冷启动,价格实惠。