Wan 2.6 Flash 图生视频

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

由单张图片生成 5、10 或 15 秒视频,支持 720P、1080P 和可选音频。

示例

Wan 2.6 Flash 图生视频 示例 1

参数

名称类型默认约束说明
image_url *图片image_upload—1–1 items用于生成输出的图片。
audio_url音频 URLaudio_upload——用于引导生成的音频 URL(可选)。
audio自动生成音频booleantrue—是否生成有声视频。 参数优先级:audio > audio_url。当 audio=false时,即使传入 audio_url,输出仍为无声视频,且计费按无声视频计算。
prompt提示词textarea—≤ 1500 chars用于生成的正向提示词。
negative_prompt反向提示词textarea—≤ 500 chars用于生成的反向提示词。
resolution分辨率select1080P720P | 1080P生成媒体的分辨率。
duration时长select55 | 10 | 15生成媒体的时长(秒)。
shot_type镜头类型selectsinglesingle | multi要生成的镜头类型。
prompt_extend启用提示词扩展booleantrue—如果设置为 true,将启用提示词优化器。
seed随机种子number—0 ~ 2147483647 · step 1用于生成的随机种子。

输出字段

字段类型说明
videosarray<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/image-to-video" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "image_url": [
      "https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/08/31/0d2b8fc70ea0.jpeg"
    ],
    "audio": true,
    "prompt": "Cinematic slow camera push-in on the subject as neon lights flicker in the background, subtle head movement, natural blinking, gentle wind in hair and coat, realistic motion, moody atmosphere, detailed reflections, smooth video, high quality",
    "negative_prompt": "blurry, low resolution, distorted face, extra limbs, unnatural motion, flickering, jitter, warped anatomy, oversaturated colors, text, watermark, frame artifacts, abrupt camera movement",
    "resolution": "1080P",
    "duration": 5,
    "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/image-to-video",
    headers=HEADERS,
    json={
        "input": {
            "image_url": [
                "https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/08/31/0d2b8fc70ea0.jpeg"
            ],
            "audio": True,
            "prompt": "Cinematic slow camera push-in on the subject as neon lights flicker in the background, subtle head movement, natural blinking, gentle wind in hair and coat, realistic motion, moody atmosphere, detailed reflections, smooth video, high quality",
            "negative_prompt": "blurry, low resolution, distorted face, extra limbs, unnatural motion, flickering, jitter, warped anatomy, oversaturated colors, text, watermark, frame artifacts, abrupt camera movement",
            "resolution": "1080P",
            "duration": 5,
            "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/image-to-video", {
  method: "POST",
  headers: { ...HEADERS, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "image_url": [
        "https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/08/31/0d2b8fc70ea0.jpeg"
      ],
      "audio": true,
      "prompt": "Cinematic slow camera push-in on the subject as neon lights flicker in the background, subtle head movement, natural blinking, gentle wind in hair and coat, realistic motion, moody atmosphere, detailed reflections, smooth video, high quality",
      "negative_prompt": "blurry, low resolution, distorted face, extra limbs, unnatural motion, flickering, jitter, warped anatomy, oversaturated colors, text, watermark, frame artifacts, abrupt camera movement",
      "resolution": "1080P",
      "duration": 5,
      "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/image-to-video

由单张图片生成 5、10 或 15 秒视频,支持 720P、1080P 和可选音频。

参数

ParameterTypeRequiredDefaultDescription
image_urlarraytrue—用于生成输出的图片。; 1–1 URLs
audio_urlstringfalse—用于引导生成的音频 URL(可选)。
audiobooleanfalsetrue是否生成有声视频。 参数优先级:audio > audio_url。当 audio=false时,即使传入 audio_url,输出仍为无声视频,且计费按无声视频计算。
promptstringfalse—用于生成的正向提示词。; max 1500 characters
negative_promptstringfalse—用于生成的反向提示词。; max 500 characters
resolutionstringfalse"1080P"生成媒体的分辨率。 720P, 1080P
durationintegerfalse5生成媒体的时长(秒)。 5, 10, 15
shot_typestringfalse"single"要生成的镜头类型。 single, multi
prompt_extendbooleanfalsetrue如果设置为 true,将启用提示词优化器。
seedintegerfalse—用于生成的随机种子。 [0, 2.14748e+09]

价格

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

总价=每秒单价×duration。默认 1080P、audio=true、5 秒,共 $0.375(37.5 积分)。duration 支持整数 5、10、15。audio=false 时即使传 audio_url 也输出无声视频。输入图片和音频不额外收费。Nami 的 image_url 使用单元素 URL 数组。

采用 Alibaba International 国际部署标准美元标价。1 美元=100 积分,账户折扣另行计算。

API

curl -X POST https://www.namifusion.com/api/v1/marketplace/run/alibaba/wan-2.6-flash/image-to-video \
  -H "Authorization: Bearer $API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "input": {
    "seed": 12345,
    "prompt": "Cinematic slow camera push-in on the subject as neon lights flicker in the background, subtle head movement, natural blinking, gentle wind in hair and coat, realistic motion, moody atmosphere, detailed reflections, smooth video, high quality",
    "duration": 5,
    "image_url": [
      "https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/08/31/0d2b8fc70ea0.jpeg"
    ],
    "shot_type": "single",
    "resolution": "1080P",
    "prompt_extend": true,
    "negative_prompt": "blurry, low resolution, distorted face, extra limbs, unnatural motion, flickering, jitter, warped anatomy, oversaturated colors, text, watermark, frame artifacts, abrupt camera movement",
    "audio": true
  }
}'
curl 'https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID' \
  -H "Authorization: Bearer $API_KEY"

使用 task_uuid 轮询至 completed 或 failed。成功时 output.videos 为输出 URL 字符串数组。

Alibaba official pricing

相关模型

xAI Grok Imagine Video v1.5 图片转视频
图生视频X Ai

xAI Grok Imagine Video v1.5 图片转视频

使用文本提示词将单张输入图片生成 1-15 秒视频,支持 480p 和 720p。

起 $0.850 / 每次
Vidu Q4 Preview 图生视频
图生视频Vidu

Vidu Q4 Preview 图生视频

根据提示词和单张图片生成 3~16 秒视频,支持可选音频和提示词扩展,以及 540p、720p、1080p、2k、4k 分辨率。

起 $0.475 / 每次
vidu/q3/image-to-video-spicy 图片转视频
图生视频Vidu

vidu/q3/image-to-video-spicy 图片转视频

Vidu Q3 Image-to-Video Spicy 可从图片生成不限量的高质量视频,动画流畅、运动表现丰富,并针对大规模内容生成进行了优化。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。

起 $0.750 / 每次
Vidu Q3 图片转视频
图生视频Vidu

Vidu Q3 图片转视频

Vidu Q3 图片转视频将文本提示词转化为高质量视频,具有卓越的视觉保真度和多样的运动。即用型 REST 推理 API,最佳性能,无冷启动,价格实惠。

起 $0.750 / 每次
MiniMax H3 Spicy 图片转视频
图生视频Minimax

MiniMax H3 Spicy 图片转视频

通过首帧图片生成视频,支持可选提示词和末帧引导。可选 480p、540p、768p、1080p 分辨率,时长为 3–15 秒。

起 $0.200 / 每次
MiniMax H3 图片转视频
图生视频Minimax

MiniMax H3 图片转视频

MiniMax H3 图片转视频可将首帧图片动画化为连贯的 2K 视频,支持自然语言运动指令,并可选用末帧控制,以实现一致的运动、场景连贯性和电影感视频生成。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。

起 $0.650 / 每次
ltx-2.5/image-to-video 图片转视频
图生视频Ltx 2.5

ltx-2.5/image-to-video 图片转视频

LTX 2.5 图片转视频可将首帧图片动画化,生成高保真、音视频同步的内容,并支持可选的末帧引导以及 720P / 1080P / 2K / 4K 输出,适用于电影感视频、社交内容、广告和制作流程。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。

起 $0.500 / 每次
ai/ltx-2.3-spicy/image-to-video-lora 图片转视频
图生视频Lightricks

ai/ltx-2.3-spicy/image-to-video-lora 图片转视频

LTX 2.3 Spicy LoRA 图片转视频 API 可将参考图片和提示词转换为富有表现力的 AI 视频,并支持选择 LoRA 预设、可选的 LoRA 强度覆盖、时长和分辨率控制。在 MaaS 上可快速进行 REST 推理,无冷启动,价格实惠。

起 $0.150 / 每次