Wan 2.6 Flash Reference to Video

alibaba/wan-2.6-flash/reference-to-video

alibaba/wan-2.6-flash/reference-to-video. Выбирайте API моделей для изображений, видео и замены лиц. Испытайте модель и подключите ее через единый REST API.

Похожие модели

Wan 2.6 Flash Reference to Video Похожие модели 1

Все параметры, схема вывода и актуальные цены

Маркетплейс API моделей ИИОдна платформа для всегоСамый популярныйУсловияВыбирайте API моделей для изображений, видео и замены лиц. Испытайте модель и подключите ее через единый REST API.
prompt *Prompttextarea—≤ 1500 chars
audioGenerate Audiobooleantrue—
durationDuration (s)number52 ~ 10 · step 1
sizeResolutionselect1920*10801920*1080 | 1080*1920 | 1440*1440 | 1632*1248 | 1248*1632 | 1280*720 | 720*1280 | 960*960 | …
shot_typeShot Typeselectsinglesingle | multi
negative_promptNegative Prompttextarea—≤ 500 chars
prompt_extendEnable Prompt Expansionbooleantrue—
seedSeednumber—0 ~ 2147483647 · step 1

Все параметры, схема вывода и актуальные цены

ПодробнееОдна платформа для всегоВыбирайте API моделей для изображений, видео и замены лиц. Испытайте модель и подключите ее через единый REST API.
videosarray<string>

API

Выбирайте API моделей для изображений, видео и замены лиц. Испытайте модель и подключите ее через единый REST API.

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);

Документация API

Wan 2.6 Flash Reference to Video

alibaba/wan-2.6-flash/reference-to-video

Generate a 2–10 second video using reference images or videos, with optional audio at 720P or 1080P.

Parameters

ParameterTypeRequiredDefaultDescription
reference_urlsarraytrue—1–5 reference files: up to 5 images and 3 videos. Array order maps to character1, character2, ... . Reference images are free; the full duration of each reference video is added to the output duration for billing. Images: JPEG/JPG/PNG (no alpha)/BMP/WEBP, 240–8000 px, up to 20MB. Videos: MP4/MOV, 1–30 seconds, up to 100MB.; 1–5 URLs
promptstringtrue—Prompt describing the video, supports Chinese and English, up to 1500 characters. Refer to each reference as character1, character2, ... in file order; this is the only way the model identifies referenced characters.; max 1500 characters
audiobooleanfalsetrueOn: outputs a video with audio (voices from reference videos can be preserved). Off: outputs a silent video at half the price.
durationintegerfalse5Output video duration, an integer from 2 to 10 seconds [2, 10]; integer
sizestringfalse"1920*1080"Output video resolution (widthheight). 1080P costs more than 720P. 19201080, 10801920, 14401440, 16321248, 12481632, 1280720, 7201280, 960960, 1088832, 832*1088
shot_typestringfalse"single"single: one continuous shot; multi: multiple cuts. This setting overrides shot descriptions in the prompt. single, multi
negative_promptstringfalse—Describe what should not appear in the video, up to 500 characters; max 500 characters
prompt_extendbooleanfalsetrueIf set to true, the prompt optimizer will be enabled.
seedintegerfalse—For reproducibility, 0-2147483647. Leave empty for random. [0, 2.14748e+09]; integer

Pricing

Total price = unit rate × ceil(output duration + sum of full reference video durations). Round up once after adding all durations, not per video. Reference images add no duration or fee. This policy uses full reference durations; it does not use a fixed 5-second surcharge or Alibaba reference-duration truncation.

Resolutionaudio=true USD/saudio=false USD/s
720P$0.05$0.025
1080P$0.075$0.0375

Defaults: 1080P, 5 output seconds. With image-only references the price is $0.375 (37.5 credits), audio=true; $0.1875 (18.75 credits), audio=false.

Example: one 10-second reference video and a 5-second output are billed as 15 seconds. Reference order maps to character1, character2, ... . USD 1 = 100 credits; account discounts are applied separately.

720P: 1280*720, 720*1280, 960*960, 1088*832, 832*1088.

1080P: 1920*1080, 1080*1920, 1440*1440, 1632*1248, 1248*1632.

Flash unit rates use Alibaba International USD pricing; duration billing follows the full-reference-duration policy described above.

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"

Poll task_uuid until completed or failed. Successful output.videos contains video URL strings.

Alibaba Flash unit rates

Похожие модели

xAI Grok Imagine Video v1.5 Reference to Video
Референс в видеоX Ai

xAI Grok Imagine Video v1.5 Reference to Video

x-ai/grok-imagine-video-v1.5/reference-to-video. Выбирайте API моделей для изображений, видео и замены лиц. Испытайте модель и подключите ее через единый REST API.

от $0.850 / за запуск
Vidu Q4 Preview Reference to Video
Референс в видеоVidu

Vidu Q4 Preview Reference to Video

vidu/q4-preview/reference-to-video. Выбирайте API моделей для изображений, видео и замены лиц. Испытайте модель и подключите ее через единый REST API.

от $0.475 / за запуск
MiniMax H3 Reference to Video
Референс в видеоMinimax

MiniMax H3 Reference to Video

minimax/h3/reference-to-video. Выбирайте API моделей для изображений, видео и замены лиц. Испытайте модель и подключите ее через единый REST API.

от $0.650 / за запуск
Gemini Omni Flash Reference to Video API
Референс в видеоGoogle

Gemini Omni Flash Reference to Video API

google/gemini-omni-flash/reference-to-video. Выбирайте API моделей для изображений, видео и замены лиц. Испытайте модель и подключите ее через единый REST API.

от $1.28 / за запуск
Seedance 2.0 Mini Reference to Video
Референс в видеоDoubao

Seedance 2.0 Mini Reference to Video

doubao/seedance-2.0-mini/reference-to-video. Выбирайте API моделей для изображений, видео и замены лиц. Испытайте модель и подключите ее через единый REST API.

от $0.3591 / за запуск
Seedance 2.5 Reference to Video
Референс в видеоDoubao

Seedance 2.5 Reference to Video

doubao/seedance-2-5/reference-to-video. Выбирайте API моделей для изображений, видео и замены лиц. Испытайте модель и подключите ее через единый REST API.

от $0.6565 / за запуск
Seedance 2.0 Fast reference-to-video
Референс в видеоDoubao

Seedance 2.0 Fast reference-to-video

doubao/seedance-2-0-fast/reference-to-video. Выбирайте API моделей для изображений, видео и замены лиц. Испытайте модель и подключите ее через единый REST API.

от $0.6774 / за запуск