APIMart 上的 Wan 2.7 R2V API(wan2.7-r2v)运行阿里巴巴 Wan 2.7 参考生视频模型。提供最多 5 个角色、道具或场景的参考图片和视频,在提示词中引用它们,即可生成一个 2 到 15 秒、720P 或 1080P 的新镜头,保留参考对象的外观,还可为每个角色指定参考音色。
服务亮点
点击上传参考音频
WAV, MP3 (max 15MB)
Video link valid for 72 hours
透明定价,无隐藏费用。按量付费,用多少付多少。
| 型号 | 规格 | 黄金价当前价格 | 铂金价 | 钻石价 | 官方价 | 为你节省 |
|---|---|---|---|---|---|---|
wan2.7-r2v | 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 R2V API,把角色、道具和场景的参考图片或视频变成一个 2 到 15 秒、720P 或 1080P 的新视频,可为每个角色加一段音色样本,按秒计费。
50K+
活跃用户
99.9%
在线率
2x
更快
—
成本节省
在 APIMart 用一个 POST 请求调用 Wan 2.7 R2V API。生成是异步的:先提交任务,再轮询任务接口获取视频地址。
把 APIMart 密钥保存在环境变量 APIMART_API_KEY 中,每次请求时以 Authorization: Bearer <key> 发送。
向 POST /v1/videos/generations 发送 model wan2.7-r2v、引用参考素材的提示词,以及 image_with_roles 或 video_urls。任务 ID 在 data[0].task_id。
轮询 GET /v1/tasks/{task_id},直到 status 为 completed,然后从 data.result.videos[0].url[0] 读取视频地址,并把文件保存到自己的存储。
完整参数、参考规则与返回字段见 Wan 2.7 R2V 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-r2v",
"prompt": "图1的角色穿过洒满阳光的花市,朝镜头挥手微笑,轻微手持镜头",
"image_with_roles": [
{
"url": "https://example.com/character.jpg",
"role": "reference_image"
}
],
"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-r2v",
"prompt": "图1的角色穿过洒满阳光的花市,朝镜头挥手微笑,轻微手持镜头",
"image_with_roles": [
{
"url": "https://example.com/character.jpg",
"role": "reference_image"
}
],
"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-r2v",
"prompt": "视频1的角色坐在咖啡馆窗边看书,雨水顺着玻璃流下",
"video_urls": [
"https://example.com/character.mp4"
],
"duration": 5,
"resolution": "720P",
"size": "16:9"
}'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-r2v | 使用 wan2.7-r2v。 |
prompt | string | 是 | 默认值: — | 场景描述,最多 5,000 字符。按输入顺序以图1、图2、视频1 引用参考素材。 |
image_with_roles | array | 否 | 默认值: — | 带 url 和 role(reference_image 或 first_frame)的图片,可附 reference_voice 音色 URL。video_urls 为空时必填。 |
video_urls | array | 否 | 默认值: — | 参考片段(mp4 或 mov,1–30 秒,最大 100 MB)。图片与视频合计最多 5 个。image_with_roles 为空时必填。 |
negative_prompt | string | 否 | 默认值: — | 需要避免的内容,最多 500 字符。 |
resolution | string | 否 | 默认值: 1080P | 720P 或 1080P。 |
duration | integer | 否 | 默认值: 5 | 2 到 15 秒;包含参考视频时为 2 到 10 秒。 |
size | string | 否 | 默认值: 16:9 | 16:9、9:16、1:1、4:3 或 3:4。设置了 first_frame 图片时不生效。 |
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 秒 |
来自 APIMart 博客的教程、对比与价格分析。
wan2.7-r2v 如何使用参考图片、参考视频和角色音色
基于参考图片、参考视频和角色音色的工作流
三步完成从注册到第一个 Wan 2.7 R2V 视频
注册 APIMart、充值,并在控制台创建 API 密钥。
在上方上传参考图片或视频,写一段引用它们的提示词,写代码前先看费用预估。
参照下方示例从后端提交任务,再轮询获取结果。
来自全球创作者和开发者的真实声音。以上评价为 Wan 2.7 系列的使用反馈。
“WAN 2.7 的画面一致性简直惊人!我在生成一系列短片时,角色形象非常稳定,这在以前是很难想象的。”
张伟
独立动画制作人
“作为一名开发者,我非常看重 API 的稳定性和响应速度。WAN 2.7 在 APIMart 上的表现非常出色,集成也非常简单。”
陈志远
全栈开发工程师
“图生视频功能帮我节省了大量的后期时间,我只需要画好关键帧,剩下的交给 WAN 2.7 就行了。”
李明
插画师
“WAN 2.7 大幅缩短了我们短视频的制作周期。电影感的镜头运动加上稳定的角色一致性,让品牌在社媒上更具辨识度。”
孙佳怡
短视频创作者
关于 wan2.7-r2v 的参考素材、音色、参数和价格
Wan 2.7 R2V 是阿里巴巴 Wan 2.7 的参考生视频模型,可以根据角色、道具或场景的参考图片和视频,生成一个 2 到 15 秒、720P 或 1080P 的新视频。在 APIMart 的 model ID 是 wan2.7-r2v。
在 image_with_roles 传参考图片,和/或在 video_urls 传参考片段,再按输入顺序在提示词中引用,例如:图1的角色走进图2的场景。模型会在新镜头中保持参考对象一致。
图片和视频合计最多 5 个。参考视频须为 mp4 或 mov,时长 1 到 30 秒,边长 240 到 4096 像素,宽高比在 1:8 到 8:1 之间,大小不超过 100 MB。
可以。在 image_with_roles 的参考图片上加 reference_voice(音色样本 URL),该图片中的角色就会在生成视频里使用这个声音。
可以。在 image_with_roles 中给一张图片设置 first_frame 角色,视频会从这张图开始,画面比例以它为准,size 参数不再生效。
duration 为 2 到 15 秒的任意整数(默认 5),包含参考视频时为 2 到 10 秒。resolution 为 720P 或 1080P(默认 1080P),size 为 16:9、9:16、1:1、4:3 或 3:4(默认 16:9)。
角色或物体必须与参考图片或视频一致时,用 Wan 2.7 R2V。根据文字、首尾帧生成或续写片段,用 Wan 2.7(wan2.7);用一句指令修改已有视频,用 Wan 2.7 Video Edit(wan2.7-videoedit)。
model(wan2.7-r2v)和 prompt 必填,image_with_roles 与 video_urls 至少传一个。可选字段:negative_prompt、resolution、duration、size、prompt_extend(默认 true)、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.7 R2V 按视频秒数计费,1080P 每秒比 720P 贵。当前价格见本页价格表;黄金会员立省 20%,铂金和钻石会员最高省 28%。
都不是。APIMart 没有为 Wan 2.7 R2V 提供免费额度,每个任务按秒付费。阿里巴巴以托管 API 提供 Wan 2.7 R2V,没有公开模型权重。
注册 APIMart、充值,然后在 API 密钥页面创建密钥,以 Authorization: Bearer <key> 发送。同一个密钥可以调用所有 Wan 模型以及 APIMart 上的其他模型。
探索同类型的其他模型。

SkyReels V4 Fast
SkyReels-V4-Fast is the first unified framework for joint audiovisual generation, restoration, and editing at cinema-grade quality, efficiently achieving 1080p, 15-second multi-shot video generation with synchronized audio and visuals through a dual-stream MMDiT architecture

SkyReels V4 Std
SkyReels-V4-Fast is the first unified framework for joint audiovisual generation, restoration, and editing at cinema-grade quality, efficiently achieving 1080p, 15-second multi-shot video generation with synchronized audio and visuals through a dual-stream MMDiT architecture.

Wan 2.7 Videoedit
wan2.7‑videoedit (also called Wan 2.7 Video Edit) is Alibaba’s advanced video editing model within the Wan 2.7 suite that lets users transform and refine existing footage with natural language instructions and optional reference images. It supports multimodal input (text, image, video) and can perform style transfer, element replacement, scene adjustment, and temporal feature editing while preserving motion coherence and subject identity. The model outputs edited clips at up to 1080p resolution with durations typically from 2 to 10 seconds, enabling creators to modify visuals and narrative details without traditional editing tools.

Wan 2.7
Wan-2.7 is Alibaba’s next-generation multimodal AI video model that generates high-quality videos from text prompts, images, or reference footage. It supports text-to-video, image-to-video, and instruction-based video editing, producing short clips (up to ~15 seconds) with 720p–1080p resolution, realistic motion, and strong character consistency.