Wan 2.7 API(Wan2.7)在 APIMart 上用一个模型 ID wan2.7 调用阿里巴巴 Wan 2.7 视频模型。可以根据文字提示词、首帧、首尾帧或要续写的视频生成 2–15 秒、720P 或 1080P 的视频,也可以跟随参考音频生成。
服务亮点
上传音频文件
WAV, MP3 (max 15MB)
Video link valid for 72 hours
透明定价,无隐藏费用。按量付费,用多少付多少。
| 型号 | 规格 | 黄金价当前价格 | 铂金价 | 钻石价 | 官方价 | 为你节省 |
|---|---|---|---|---|---|---|
wan2.7 | 720P | 0.664Credits(~$0.0664)/秒 | 0.6308Credits(~$0.0631)/秒 | 0.5976Credits(~$0.0598)/秒 | 0.83Credits(~$0.083)/秒 | 20% |
| 1080P | 1.096Credits(~$0.1096)/秒 | 1.0412Credits(~$0.1041)/秒 | 0.9864Credits(~$0.0986)/秒 | 1.37Credits(~$0.137)/秒 | 20% |
* 实际费用以最终输出为准。
通过 APIMart 调用 Wan 2.7 API:把提示词、首帧、首尾帧或已有视频变成 2–15 秒的 720P 或 1080P 视频,可加驱动音频,按秒计费。
50K+
活跃用户
99.9%
在线率
2x
更快
—
成本节省
一个 POST 请求即可调用 APIMart 上的 Wan 2.7 API。生成是异步的:先提交任务,再轮询任务接口获取视频地址。
把 APIMart 密钥保存在环境变量 APIMART_API_KEY 中,每次请求时以 Authorization: Bearer <key> 发送。
向 POST /v1/videos/generations 发送 model wan2.7、提示词、duration、resolution 和 size。传一张或两张 image_urls 即为图生视频。任务 ID 在 data[0].task_id。
轮询 GET /v1/tasks/{task_id},直到 status 为 completed,然后从 data.result.videos[0].url[0] 读取视频地址,并把文件保存到自己的存储。
完整参数、模式规则与返回字段见 Wan 2.7 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.7",
"prompt": "日出时分,一只红色风筝在大风的海滩上升起,孩子们在下方奔跑,手持镜头,温暖的金色光线",
"duration": 5,
"resolution": "720P",
"size": "16:9"
}'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.7",
"prompt": "日出时分,一只红色风筝在大风的海滩上升起,孩子们在下方奔跑,手持镜头,温暖的金色光线",
"duration": 5,
"resolution": "720P",
"size": "16:9"
}
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.7",
"prompt": "从首帧平滑过渡到尾帧,镜头缓慢推近",
"image_urls": [
"https://example.com/frame-start.jpg",
"https://example.com/frame-end.jpg"
],
"duration": 5,
"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.7 | Wan 2.7 的所有生成模式都用 wan2.7。 |
prompt | string | 是 | 默认值: — | 画面与运动描述,最长 5,000 字。图生视频时可省略。 |
negative_prompt | string | 否 | 默认值: — | 要避免的内容,最长 500 字。 |
resolution | string | 否 | 默认值: 1080P | 720P 或 1080P。 |
duration | integer | 否 | 默认值: 5 | 时长(秒),2 到 15 之间的任意整数。 |
size | string | 否 | 默认值: 16:9 | 16:9、9:16、1:1、4:3 或 3:4。仅用于文生视频;图生视频跟随输入图片。 |
image_urls | array | 否 | 默认值: — | 一张图为首帧,两张图为首帧和尾帧。不能和 video_urls 一起使用。 |
image_with_roles | array | 否 | 默认值: — | 标注为 first_frame 或 last_frame 的图片,替代 image_urls 使用。 |
video_urls | array | 否 | 默认值: — | 要续写的 2–10 秒 mp4 或 mov(最大 100 MB),只使用第一个视频。 |
audio_url | string | 否 | 默认值: — | wav 或 mp3,2–30 秒,最大 15 MB。文生视频为背景音乐,图生视频为驱动音频。 |
prompt_extend | boolean | 否 | 默认值: true | 改写并丰富提示词。对短提示词有帮助,但会增加耗时。 |
seed | integer | 否 | 默认值: — | 大于等于 0。相同 seed 结果相近,但不保证完全相同。 |
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.7 的每种模式,都根据你传入的内容自动选择
依靠 Wan 2.7 首尾帧、续写和音频能力的工作流
三步完成注册到生成第一个 Wan 2.7 视频
注册 APIMart、充值,并在控制台创建 API 密钥。
在上方试用提示词、首尾帧、时长和分辨率,写代码前先看费用预估。
参照下方示例从后端提交任务,再轮询获取结果。
来自全球创作者和开发者的真实声音。以上评价为 Wan 2.7 系列的使用反馈。
“WAN 2.7 的画面一致性简直惊人!我在生成一系列短片时,角色形象非常稳定,这在以前是很难想象的。”
张伟
独立动画制作人
“作为一名开发者,我非常看重 API 的稳定性和响应速度。WAN 2.7 在 APIMart 上的表现非常出色,集成也非常简单。”
陈志远
全栈开发工程师
“图生视频功能帮我节省了大量的后期时间,我只需要画好关键帧,剩下的交给 WAN 2.7 就行了。”
李明
插画师
“WAN 2.7 大幅缩短了我们短视频的制作周期。电影感的镜头运动加上稳定的角色一致性,让品牌在社媒上更具辨识度。”
孙佳怡
短视频创作者
关于 Wan 2.7 的模式、参数、价格以及相关 Wan 型号
Wan 2.7 是阿里巴巴的视频模型,可以根据文字、首帧、首尾帧或已有视频,生成 2–15 秒、720P 或 1080P 的视频。在 APIMart 上的模型 ID 是 wan2.7。
阿里巴巴于 2026 年 4 月发布 Wan2.7-Video,以托管 API 的方式提供。现在可以通过 APIMart 的 Wan 2.7 API 调用 wan2.7。
它是一个异步接口:POST /v1/videos/generations,model 为 wan2.7。模式根据输入自动选择:不传图片为文生视频,传一张图为图生视频,传两张图为首尾帧,传 video_urls 为续写。之后轮询任务获取视频。
Wan 2.7 支持 2 到 15 秒任意时长(Wan 2.6 只有 5、10、15 秒),新增首尾帧控制和已有视频续写,默认 1080P。Wan 2.6 则提供多镜头生成和特效模板。
根据文字、关键帧或要续写的视频生成时,用 wan2.7。需要根据参考图片或视频保持角色一致时,用 Wan 2.7 R2V(wan2.7-r2v);需要用一句指令修改或重新风格化已有视频时,用 Wan 2.7 Video Edit(wan2.7-videoedit)。三者各有页面和价格。
model(wan2.7)必填,文生视频时 prompt 必填。可选字段有 negative_prompt(最长 500 字)、resolution(720P 或 1080P,默认 1080P)、duration(2–15,默认 5)、size(16:9、9:16、1:1、4:3 或 3:4,仅文生视频)、image_urls 或 image_with_roles、video_urls、audio_url、prompt_extend(默认 true)、seed、watermark 和 nsfw_check。
可以。在 image_urls 里传一张图作为首帧,或传两张图作为首帧和尾帧;也可以用 image_with_roles 明确标注。图生视频时画面比例跟随输入图片,size 会被忽略。
可以。在 video_urls 里传一段 2–10 秒、最大 100 MB 的 mp4 或 mov。它可以和尾帧一起使用,但不能和首帧、image_urls 或 audio_url 一起使用。
可以。audio_url 接受 2–30 秒、最大 15 MB 的 wav 或 mp3。文生视频时作为背景音乐,图生视频时作为驱动音频。不能和视频续写一起使用。
提交到 POST /v1/videos/generations,从 data[0].task_id 读取任务 ID。每隔几秒轮询 GET /v1/tasks/{task_id},直到 status 为 completed,然后读取 data.result.videos[0].url[0]。生成是异步的,耗时取决于时长和分辨率。
Wan 2.7 按视频秒数计费,1080P 每秒比 720P 贵,所有模式计费方式相同。当前价格见本页价格表;黄金会员立省 20%,铂金和钻石会员最高省 28%。
都不是。APIMart 没有为 Wan 2.7 提供免费额度,每个任务按秒付费。阿里巴巴以托管 API 提供 Wan 2.7,没有公开模型权重。阿里巴巴开源权重的 Wan 模型为 Wan 2.2 系列及 Wan-Dancer 等专用模型;Wan 2.5 及之后的通用视频模型只提供 API。
注册 APIMart、充值,然后在 API 密钥页面创建密钥,以 Authorization: Bearer <key> 发送。同一个密钥可以调用所有 Wan 模型以及 APIMart 上的其他模型。
是。Wan2.7、Wan 2.7、阿里巴巴 Wan 2.7 视频(包括阿里巴巴的 Wan2.7-t2v 和 Wan2.7-i2v 模式)在 APIMart 上都对应模型 ID wan2.7。Wan 2.7 Image 是单独的图片模型,有自己的页面。
探索同类型的其他模型。

ViduQ 3
Vidu Q3 is an advanced AI video generation model developed by Shengshu Technology that creates cinematic videos from text prompts or images. It supports both text-to-video and image-to-video workflows, generating clips up to around 16 seconds with synchronized native audio, including dialogue and sound effects.

ViduQ 3 Mix
Vidu Q3 is an advanced AI video generation model developed by Shengshu Technology that creates cinematic videos from text prompts or images. It supports both text-to-video and image-to-video workflows, generating clips up to around 16 seconds with synchronized native audio, including dialogue and sound effects.

Wan 2.6 I2v
wan2.6‑i2v is the image‑to‑video variant of Alibaba’s Wan 2.6 AI video generation model that animates a single static image into a dynamic, cinematic clip with smooth motion, consistent subject identity, and synchronized audio. It supports multi‑shot storytelling sequences of up to 15 seconds at 1080p resolution, preserving visual features such as character appearance and background while creating natural motion and narrative flow from a single input frame.

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.