Alibaba WAN 2.6
alibaba/wan-2.6/reference-to-video
Alibaba WAN 2.6 Reference-to-Video 能够将角色、道具或场景的参考图(无论是单视角还是多视角)转化为全新的视频片段。它在保持物体特征、风格及布局高度一致的同时,确保了动作的流畅自然。我们提供现成的 REST 推理 API,具备极致性能与零冷启动特性,价格极具竞争力。
示例
参数
| 名称 | 类型 | 默认 | 约束 | 说明 |
|---|---|---|---|---|
| prompt *提示词 | textarea | — | ≤ 1500 chars | 用于生成的正向提示词。 |
| negative_prompt反向提示词 | textarea | — | ≤ 1500 chars | 用于生成的反向提示词。 |
| size尺寸 | select | 1920*1080 | 1920*1080 | 1080*1920 | 1440*1440 | 1632*1248 | 1248*1632 | 1280*720 | 720*1280 | 960*960 | … | 生成媒体的尺寸,以像素为单位(宽度*高度)。 |
| duration时长 | slider | 5 | 2 ~ 10 · step 1 | 生成媒体的时长(秒)。 |
| shot_type镜头类型 | select | single | single | multi | 要生成的镜头类型。 |
| seed随机种子 | number | — | ≥ 0 | 用于生成的随机种子。 |
输出字段
| 字段 | 类型 | 说明 |
|---|---|---|
| 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/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.",
"negative_prompt": "Avoid dark or gloomy scenes, and ensure no elements of destruction or chaos are present.",
"size": "1920*1080",
"duration": 5,
"shot_type": "single",
"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/reference-to-video",
headers=HEADERS,
json={
"input": {
"prompt": "character1 turns gently toward the camera with natural movement and a subtle smile. Smooth cinematic lighting.",
"negative_prompt": "Avoid dark or gloomy scenes, and ensure no elements of destruction or chaos are present.",
"size": "1920*1080",
"duration": 5,
"shot_type": "single",
"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 300s server-side.
deadline = time.time() + 360
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/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.",
"negative_prompt": "Avoid dark or gloomy scenes, and ensure no elements of destruction or chaos are present.",
"size": "1920*1080",
"duration": 5,
"shot_type": "single",
"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 300s server-side.
const deadline = Date.now() + 360 * 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);文档
Alibaba WAN 2.6
alibaba/wan-2.6/reference-to-video
Alibaba WAN 2.6 Reference-to-Video 能够将角色、道具或场景的参考图(无论是单视角还是多视角)转化为全新的视频片段。它在保持物体特征、风格及布局高度一致的同时,确保了动作的流畅自然。我们提供现成的 REST 推理 API,具备极致性能与零冷启动特性,价格极具竞争力。
参数
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
reference_urls | array | true | — | 1~5 个参考文件,最多 5 张图片、3 段视频;顺序对应 character1、character2……。参考图片免费;各段参考视频的完整时长计入总计费时长。; 1–5 URLs |
prompt | string | true | — | 用于生成的正向提示词。; max 1500 characters |
negative_prompt | string | false | — | 用于生成的反向提示词。; max 1500 characters |
size | string | false | "1920*1080" | 生成媒体的尺寸,以像素为单位(宽度高度)。 19201080, 10801920, 14401440, 16321248, 12481632, 1280720, 7201280, 960960, 8321088, 1088*832 |
duration | integer | false | 5 | 生成媒体的时长(秒)。 [2, 10]; integer |
shot_type | string | false | "single" | 要生成的镜头类型。 single, multi |
seed | integer | false | — | 用于生成的随机种子。 |
价格
总价=每秒单价×ceil(输出时长+各段参考视频完整时长之和)。所有时长相加后统一向上取整到整数秒,不逐段取整。参考图片不增加时长,免费。采用完整参考视频时长规则,不使用固定加 5 秒或 Alibaba 原厂参考时长截断规则。
| Resolution | USD/s |
|---|---|
| 720P | $0.10 |
| 1080P | $0.15 |
默认 1080P、输出 5 秒,仅图片参考时价格为 $0.75 (75 credits).
例: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.
API
curl -X POST https://www.namifusion.com/api/v1/marketplace/run/alibaba/wan-2.6/reference-to-video \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"input": {
"size": "1920*1080",
"duration": 5,
"shot_type": "single",
"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 字符串数组。
相关模型
VT 唇形同步
VT 唇形同步通过翻译后的视频、翻译后音频、翻译后字幕时间轴,以及原始视频和原始字幕时间轴,对翻译后的视频进行口型同步。
Kling Omni Video O3
Kling Omni Video O3 参考到视频模型可通过多个视角的角色、道具或场景参考生成创意视频。提取主体特征并创建新的视频内容,同时保持帧间身份一致性。支持音频生成。即用型 REST API,性能最佳,无冷启动,价格实惠。
Kling Omni Video O3
Kling Omni Video O3 参考到视频模型可通过多个视角的角色、道具或场景参考生成创意视频。提取主体特征并创建新的视频内容,同时保持帧间身份一致性。支持音频生成。即用型 REST API,性能最佳,无冷启动,价格实惠。
Kling 3.0 Standard 动作控制
Kling 3.0 Standard 动作控制将参考视频中的动作转移到静态图片中进行动画化。上传角色图片和动作片段(舞蹈、动作、手势),模型提取动作生成流畅、逼真的视频。提供即用型 REST 推理 API,性能最佳,无冷启动,价格实惠。
seedance-2-0 reference-to-video
Seedance 2.0 的“参考生视频”功能是视觉统一的终极方案。它能精准提取参考素材的艺术风格、光影基调或构图意向,并将其完美融入新生成的视频中,确保您的系列创作拥有高度一致的视觉语言。
black-forest-labs/flux-3/video-upscale 视频放大
默认 creativity=1,$0.79/秒起;creativity=0 为 $0.55/秒。按输入视频时长向上取整计费。FLUX Video Upscale 可对 MP4 视频进行放大增强,支持忠于原始内容或更具创意的细节重建,提供 1.5x 到 3x 可调缩放,并提升画面清晰度,适用于视频修复、社交内容、广告和制作流程。即开即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
black-forest-labs/flux-3/video-extend-draft 视频续写
FLUX 3 Video Extend Draft 可基于必填的输入视频,结合提示词快速续写下一场景的草稿片段,支持可选的同步音频,并提供 5–20 秒的灵活时长,便于快速迭代。
black-forest-labs/flux-3/video-extend 视频续写
FLUX 3 Video Extend 可将输入视频延续生成新的 5–20 秒片段,并通过提示词控制后续动作、镜头运动、视觉风格、运动连贯性,以及可选的同步音频,支持 720P / 1080P 输出。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。