
01 · 图片一键生成视频
让街拍人像照片动起来
带入一张静态照片作为首帧,加入轻微的人物动作和缓慢推进的镜头,人物、服装与场景布局保持不变。生成的视频可在生成区查看。
APIMart 上的 Wan 2.6 I2V API(wan2.6-i2v)运行阿里巴巴专门的 Wan 2.6 图生视频模型。提交一张首帧图和可选提示词,即可得到 5、10 或 15 秒、720p 或 1080p 的视频,可选单镜头或多镜头,并可附加自定义音轨。
透明定价,无隐藏费用。按量付费,用多少付多少。
精选示例
选择示例,带入模型、提示词与完整配置,再按你的想法调整。

01 · 图片一键生成视频
带入一张静态照片作为首帧,加入轻微的人物动作和缓慢推进的镜头,人物、服装与场景布局保持不变。生成的视频可在生成区查看。

02 · 产品广告短片
带入一张香水瓶产品图作为首帧,聚光灯亮起、镜头缓慢移动,配合自然的高光变化,结尾留出可放品牌标识的干净画面,瓶身形状、标签和比例保持不变。生成的视频可在生成区查看。

03 · 插画动漫动起来
带入一张绘本插画作为首帧,让篝火旁的小狐狸自然眨眼、轻轻转头和摆尾,火苗随之跳动,线条、配色和角色比例保持不变。生成的视频可在生成区查看。
在 APIMart 用 Wan 2.6 I2V API,把一张首帧图生成 5、10 或 15 秒、720p 或 1080p 的视频,支持多镜头叙事和自定义音轨,按秒计费。
在 APIMart 用一个 POST 请求调用 Wan 2.6 I2V API。生成是异步的:先提交任务,再轮询任务接口获取视频地址。
把 APIMart 密钥保存在环境变量 APIMART_API_KEY 中,每次请求时以 Authorization: Bearer <key> 发送。
向 POST /v1/videos/generations 发送 model wan2.6-i2v、image_urls 中的一张图、提示词、duration 和 resolution。任务 ID 在 data[0].task_id。
轮询 GET /v1/tasks/{task_id},直到 status 为 completed,然后从 data.result.videos[0].url[0] 读取视频地址,并把文件保存到自己的存储。
完整参数、图片要求与返回字段见 Wan 2.6 图生视频 API 文档。
curl -X POST https://api.apimart.ai/v1/videos/generations \
-H "Authorization: Bearer $APIMART_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan2.6-i2v",
"prompt": "照片中的女子转向窗边,微笑着把头发拨到耳后,镜头缓慢推近",
"image_urls": [
"https://example.com/portrait.jpg"
],
"duration": 5,
"resolution": "720p"
}'import os
import time
import requests
API_BASE = "https://api.apimart.ai"
headers = {"Authorization": f"Bearer {os.environ['APIMART_API_KEY']}"}
# 1. Submit the generation task
payload = {
"model": "wan2.6-i2v",
"prompt": "照片中的女子转向窗边,微笑着把头发拨到耳后,镜头缓慢推近",
"image_urls": [
"https://example.com/portrait.jpg"
],
"duration": 5,
"resolution": "720p"
}
resp = requests.post(f"{API_BASE}/v1/videos/generations", headers=headers, json=payload, timeout=60)
resp.raise_for_status()
task_id = resp.json()["data"][0]["task_id"]
# 2. Poll the task until it finishes
for _ in range(200):
task_resp = requests.get(f"{API_BASE}/v1/tasks/{task_id}", headers=headers, timeout=30)
task_resp.raise_for_status()
task = task_resp.json()["data"]
if task["status"] == "completed":
print(task["result"]["videos"][0]["url"][0])
break
if task["status"] == "failed":
raise RuntimeError(task.get("error", {}).get("message", "generation failed"))
time.sleep(10)
else:
raise TimeoutError(f"task {task_id} did not finish in time; continue GET polling with this task ID")curl -X POST https://api.apimart.ai/v1/videos/generations \
-H "Authorization: Bearer $APIMART_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan2.6-i2v",
"prompt": "照片中的讲者面对镜头说话,与旁白同步,手势自然",
"image_urls": [
"https://example.com/portrait.jpg"
],
"audio_url": "https://example.com/voiceover.mp3",
"duration": 10,
"resolution": "720p"
}'TASK_ID="task_xxx" # replace with the task_id returned by the POST request
curl "https://api.apimart.ai/v1/tasks/$TASK_ID" \
-H "Authorization: Bearer $APIMART_API_KEY"| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
model | string | 是 | 默认值: wan2.6-i2v | 使用 wan2.6-i2v。 |
image_urls | array | 是 | 默认值: — | 仅一张首帧图(公开 URL 或 Base64 data URI,最大 10 MB)。 |
prompt | string | 否 | 默认值: — | 主体、动作、镜头和风格。可选,但建议填写。 |
negative_prompt | string | 否 | 默认值: — | 需要避免的内容,最多 500 字符。 |
resolution | string | 否 | 默认值: 1080p | 720p 或 1080p。画面比例跟随图片。 |
duration | integer | 否 | 默认值: 5 | 5、10 或 15 秒。 |
audio_url | string | 否 | 默认值: — | 自定义 wav 或 mp3,3–30 秒,最大 15 MB。比视频长时会被截断。 |
prompt_extend | boolean | 否 | 默认值: true | 改写并丰富提示词。多镜头必须开启。 |
shot_type | string | 否 | 默认值: single | single 为一个连续镜头,multi 为多个连贯镜头。 |
seed | integer | 否 | 默认值: — | 0 或以上,结果更可复现。 |
watermark | boolean | 否 | 默认值: false | 在右下角添加 AI 生成水印。 |
nsfw_check | boolean | 否 | 默认值: false | 提交前用 omni-moderation-latest 审核提示词和输入图片。 |
对比 APIMart 上所有阿里巴巴 Wan 视频型号。一个 API Key 即可调用全部型号,按视频秒数计费。
| 型号 | 适用场景 | 分辨率 | 时长 |
|---|---|---|---|
| Wan 3.0 API | Wan 系列最长时长,支持首尾帧,或图片、视频、音频、文档和网页参考 | 480P / 720P / 1080P | 2–30 秒 |
| Wan 3.0 Prime API | 参数与 Wan 3.0 相同,独立型号与价格 | 480P / 720P / 1080P | 2–30 秒 |
| Wan 2.7 API | 文生视频、首尾帧、视频续写与音频驱动 | 720P / 1080P | 2–15 秒 |
| Wan 2.7 R2V API | 根据参考图片或视频保持角色一致 | 720P / 1080P | 2–15 秒 |
| Wan 2.7 Video Edit API | 用一句指令编辑或重新风格化已有视频 | 720P / 1080P | 跟随原视频,最长 10 秒 |
| Wan 2.6 API | 多镜头文生视频与图生视频,支持音频和特效模板 | 720p / 1080p | 5 / 10 / 15 秒 |
| Wan 2.6 I2V API当前页面 | 专门的单张首帧图生视频 | 720p / 1080p | 5 / 10 / 15 秒 |
| Wan 2.6 I2V Flash API | 2 到 15 秒任意时长的图生视频,可带或不带音频 | 720p / 1080p | 2–15 秒 |
| Wan 2.5 API | 始终带声音的短片,提供低成本 480p 档位 | 480p / 720p / 1080p | 5 / 10 秒 |
专用图生视频型号 wan2.6-i2v 接收什么、返回什么
在 image_urls 传一张图片,可以是公开 URL 或 Base64 data URI,格式为 JPEG、无透明通道的 PNG、BMP 或 WEBP,边长 240 到 8000 像素,大小不超过 10 MB。
提示词可选。描述主体、动作、镜头和风格,引导画面如何动起来。
可选 5、10 或 15 秒,默认 5 秒。价格随所选时长变化。
默认 1080p,720p 每秒更便宜。画面比例跟随输入图片。
在开启提示词改写的前提下把 shot_type 设为 multi,得到由多个连贯镜头组成的视频,而不是一个连续长镜头。
用 audio_url 添加一段 3 到 30 秒、最大 15 MB 的 wav 或 mp3。音频比视频长时会被截断到视频时长。
用最多 500 字符的负面提示词排除不想要的内容,复用 seed 得到相近结果。
wan2.6-i2v 只做图生视频。wan2.6 还支持文生视频,wan2.6-i2v-flash 则支持 2 到 15 秒任意时长和无声输出。
从一张图片开始的工作流
让肖像照或角色插画拥有自然的表情和镜头运动。
把商品图做成短片,用于商品详情页和广告。
用多镜头模式,从一张关键图生成 10 或 15 秒的片段。
用 audio_url 加入旁白或音乐,让视频配上你自己的声音。
让画作、海报和插画动起来,用于社交媒体和展览。
把概念图做成动态画面,在正式制作前测试运动和节奏。
三步完成从注册到第一个 Wan 2.6 I2V 视频
注册 APIMart、充值,并在控制台创建 API 密钥。
在上方上传首帧图,选择时长和分辨率,写代码前先看费用预估。
参照下方示例从后端提交任务,再轮询获取结果。
来自全球创作者和开发者的真实声音。 以上评价为 Wan 2.6 系列的使用反馈。
WAN 2.6 的画面一致性简直惊人!我在生成一系列短片时,角色形象非常稳定,这在以前是很难想象的。
作为一名开发者,我非常看重 API 的稳定性和响应速度。WAN 2.6 在 APIMart 上的表现非常出色,集成也非常简单。
关于 wan2.6-i2v 的输入、音频、参数和价格
Wan 2.6 I2V 是阿里巴巴专门的 Wan 2.6 图生视频模型,把一张首帧图生成 5、10 或 15 秒、720p 或 1080p 的视频。在 APIMart 的 model ID 是 wan2.6-i2v。
wan2.6 是通用模型,支持文生视频和图生视频,并提供特效模板。wan2.6-i2v 是独立的图生视频模型,有自己的价格。两者都使用 5、10 或 15 秒时长和 720p 或 1080p。
Wan 2.6 I2V Flash(wan2.6-i2v-flash)支持 2 到 15 秒任意时长,可以关闭音频输出无声视频,目前每秒也更便宜。需要专用的 wan2.6-i2v 型号、时长为 5、10 或 15 秒时,用 Wan 2.6 I2V。
image_urls 中只能传一张图,可以是公开 URL 或 Base64 data URI。支持 JPEG、无透明通道的 PNG、BMP 和 WEBP,边长 240 到 8000 像素,大小不超过 10 MB。
duration 为 5、10 或 15 秒(默认 5)。resolution 为 720p 或 1080p(默认 1080p)。没有比例参数,输出跟随输入图片。
wan2.6-i2v 不接受 audio 开关,所以不能用它生成无声视频。可以用 audio_url 加入自己的 3 到 30 秒 wav 或 mp3。需要无声输出时,请用 Wan 2.6 I2V Flash 并把 audio 设为 false。
支持。在 prompt_extend 开启时把 shot_type 设为 multi 得到多个连贯镜头,设为 single(默认)得到一个连续镜头。shot_type 的优先级高于提示词里的描述。
model(wan2.6-i2v)和 image_urls 必填。可选字段:prompt、negative_prompt、resolution、duration、audio_url、prompt_extend(默认 true)、shot_type、seed、watermark 和 nsfw_check。
提交到 POST /v1/videos/generations,从 data[0].task_id 读取任务 ID。每隔几秒轮询 GET /v1/tasks/{task_id},直到 status 为 completed,然后读取 data.result.videos[0].url[0]。
Wan 2.6 I2V 按视频秒数计费,1080p 每秒比 720p 贵。当前价格见本页价格表;黄金会员立省 20%,铂金和钻石会员最高省 28%。
都不是。APIMart 没有为 Wan 2.6 I2V 提供免费额度,每个任务按秒付费。阿里巴巴以托管 API 提供 Wan 2.6,没有公开模型权重。阿里巴巴开源权重的 Wan 模型为 Wan 2.2 系列及 Wan-Dancer 等专用模型;Wan 2.5 及之后的通用视频模型只提供 API。
注册 APIMart、充值,然后在 API 密钥页面创建密钥,以 Authorization: Bearer <key> 发送。同一个密钥可以调用所有 Wan 模型以及 APIMart 上的其他模型。
探索同类型的其他模型。

Wan 2.6 I2v Flash
wan2.6‑i2v‑flash is Alibaba’s fast image‑to‑video generation model that quickly animates a single static image into a smooth, cinematic clip of up to 15 seconds with optional synchronized audio. It trades some detailed processing for faster inference while still delivering consistent visuals, fluid motion, and multi‑shot narrative support at 720p or 1080p resolution. This makes it ideal for rapid iteration, real‑time content creation, and scenarios needing quick turnaround without sacrificing core video quality.

Seedance 2.0 Fast
seedance-2.0-fast is an optimized version of the Seedance 2.0 model, designed for faster processing and more efficient video generation. With reduced latency and enhanced computational performance, it allows for near real-time video creation without compromising quality. This version is ideal for applications requiring high-throughput video content generation, such as live-streaming, real-time social media content creation, and rapid ad production. It maintains the core features of Seedance 2.0, such as multimodal input integration, but with significant improvements in speed, making it a powerful tool for businesses and creators who need to produce content quickly and at scale.

Seedance 2.0
seedance-2-0 (Seedance 2.0) is the second-generation multimodal audio-video generation large model launched by ByteDance. It supports the fusion of various inputs such as text, images, audio, and video, enabling the efficient creation of high-quality video content. Its core technologies include multimodal joint generation, physical logic optimization, and audiovisual integration. It is widely used in industries such as film, advertising, and e-commerce, providing creators with powerful video editing and creation tools, supporting natural scene continuation and dynamic adjustments. The model outperforms competitors in multiple technical aspects and represents a significant breakthrough in AI video generation.

Wan 2.5 Preview
wan‑2.5 video is an advanced AI video generation model developed by Alibaba’s Wan AI team. It transforms text or image prompts into high‑quality videos with synchronized audio, realistic motion, and cinematic visuals. Supporting resolutions up to 1080p and short clips up to around 10 seconds, it integrates audiovisual generation in one pass, enabling creators to produce expressive, professional‑grade video content efficiently and affordably.