Alibaba WAN 2.6
alibaba/wan-2.6/reference-to-video
alibaba/wan-2.6/reference-to-video. Duyệt API mô hình ảnh, video và đổi khuôn mặt. Thử mô hình rồi tích hợp qua một API REST thống nhất.
Mô hình liên quan
Đầy đủ tham số, lược đồ đầu ra và giá hiện tại
| Chợ API mô hình AI | Một nền tảng cho mọi thứ | Phổ biến nhất | Điều khoản | Duyệt API mô hình ảnh, video và đổi khuôn mặt. Thử mô hình rồi tích hợp qua một API REST thống nhất. |
|---|---|---|---|---|
| prompt *Prompt | textarea | — | ≤ 1500 chars | |
| negative_promptNegative Prompt | textarea | — | ≤ 1500 chars | |
| sizeSize | select | 1920*1080 | 1920*1080 | 1080*1920 | 1440*1440 | 1632*1248 | 1248*1632 | 1280*720 | 720*1280 | 960*960 | … | |
| durationDuration | slider | 5 | 2 ~ 10 · step 1 | |
| shot_typeShot Type | select | single | single | multi | |
| seedSeed | number | — | ≥ 0 |
Đầy đủ tham số, lược đồ đầu ra và giá hiện tại
| Tìm hiểu thêm | Một nền tảng cho mọi thứ | Duyệt API mô hình ảnh, video và đổi khuôn mặt. Thử mô hình rồi tích hợp qua một API REST thống nhất. |
|---|---|---|
| videos | array<string> |
API
Duyệt API mô hình ảnh, video và đổi khuôn mặt. Thử mô hình rồi tích hợp qua một API REST thống nhất.
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": "Replace the background in the video with a vibrant, bustling futuristic cityscape, featuring neon lights and flying cars.",
"negative_prompt": "Avoid dark or gloomy scenes, and ensure no elements of destruction or chaos are present.",
"size": "1920*1080",
"duration": 7,
"shot_type": "multi",
"seed": 0
}
}'
# 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": "Replace the background in the video with a vibrant, bustling futuristic cityscape, featuring neon lights and flying cars.",
"negative_prompt": "Avoid dark or gloomy scenes, and ensure no elements of destruction or chaos are present.",
"size": "1920*1080",
"duration": 7,
"shot_type": "multi",
"seed": 0
}
},
)
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": "Replace the background in the video with a vibrant, bustling futuristic cityscape, featuring neon lights and flying cars.",
"negative_prompt": "Avoid dark or gloomy scenes, and ensure no elements of destruction or chaos are present.",
"size": "1920*1080",
"duration": 7,
"shot_type": "multi",
"seed": 0
}
}),
});
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);Tài liệu API
Alibaba WAN 2.6
Transform References into Videos Effortlessly
Alibaba WAN 2.6 Reference-to-Video model converts character, prop, or scene references—single or multi-view—into new video shots while preserving identity, style, and layout with smooth, coherent motion. It offers a ready-to-use REST inference API with top performance, no cold starts, and affordable pricing.
🚀 Key Features
- Reference-driven Motion & Style: Mimic camera moves, pacing, and composition from your reference videos while following your prompt.
- Up to Two Reference Videos: Blend style from one clip and motion from another, or use different angles of the same scene.
- Cinematic Resolutions: Choose from 720p or 1080p (portrait or landscape).
- Story-aware Generation: Works with prompt expansion and multishots to build richer, multi-shot sequences.
- Audio-ready Pipeline: Optional audio field for workflows that need motion aligned to external sound.
🛠️ Technical Specifications
| Parameter | Description |
|---|---|
| Model Architecture | Alibaba WAN 2.6 |
| Input Format | Image, Prompt, Negative Prompt, Audio (optional) |
| Output Format | Video (MP4) |
| Resolution | 1280×720, 720×1280, 1920×1080, 1080×1920 |
| Duration | 5 seconds or 10 seconds |
| Frame Rate | 30 FPS |
| Latency | No cold start |
💰 Pricing
| Resolution group | Pricing formula |
|---|---|
| 720p sizes (1280720, 7201280, 960960, 8321088, 1088*832) | 8.7 credits x ceil(total_duration) |
| 1080p/default sizes | 14.4 credits x ceil(total_duration) |
total_duration is the generated duration plus the billed duration of reference video inputs.
💡 Best Use Cases
- E-commerce: Generate high-quality videos for product showcases.
- Social Media: Create platform-ready short video content for Reels, TikTok, etc.
- Film Production: Provide stylized shots and scenes for filmmaking.
- Advertising: Quickly generate brand-consistent advertisement videos.
🔗 Related Models
- vidu/reference-to-video-q2: Ideal for anime-style edits, trailers, and storyboards.
- google/veo3.1/reference-to-video: High-fidelity cinematic motion generation.
- kwaivgi/kling-video-o1/reference-to-video: Great for copying camera language and pacing from sample clips.
- bytedance/seedance-v1-lite/reference-to-video: Fast, style-consistent video generation.
Mô hình liên quan
VT Lip Sync
namifusion/vt-lipsync. Duyệt API mô hình ảnh, video và đổi khuôn mặt. Thử mô hình rồi tích hợp qua một API REST thống nhất.
Kling Omni Video O3
kwaivgi/kling-video-o3/video-edit. Duyệt API mô hình ảnh, video và đổi khuôn mặt. Thử mô hình rồi tích hợp qua một API REST thống nhất.
Kling Omni Video O3
kwaivgi/kling-video-o3/reference-to-video. Duyệt API mô hình ảnh, video và đổi khuôn mặt. Thử mô hình rồi tích hợp qua một API REST thống nhất.
Kling 3.0 Standard
kwaivgi/kling-v3.0/motion-control. Duyệt API mô hình ảnh, video và đổi khuôn mặt. Thử mô hình rồi tích hợp qua một API REST thống nhất.
seedance-2-0 reference-to-video
doubao/seedance-2-0/reference-to-video. Duyệt API mô hình ảnh, video và đổi khuôn mặt. Thử mô hình rồi tích hợp qua một API REST thống nhất.