APIMart 上的 Wan 2.7 Video Edit API(wan2.7-videoedit)运行阿里巴巴 Wan 2.7 视频编辑模型。提交一段 2 到 10 秒的原视频和一句指令,即可更换服装、替换背景、添加元素或整体换风格,还可用最多 4 张参考图引导,输出 720P 或 1080P,并可保留原音轨或重新生成音频。
Video link valid for 72 hours
透明定价,无隐藏费用。按量付费,用多少付多少。
| 型号 | 规格 | 黄金价当前价格 | 铂金价 | 钻石价 | 官方价 | 为你节省 |
|---|---|---|---|---|---|---|
wan2.7-videoedit | 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 Video Edit API,以一句文字指令编辑已有的 2 到 10 秒视频:替换背景、更换服装、添加元素,或参照参考图整体换风格,输出 720P 或 1080P,按秒计费。
50K+
活跃用户
99.9%
在线率
2x
更快
—
成本节省
在 APIMart 用一个 POST 请求调用 Wan 2.7 Video Edit API。编辑是异步的:先提交任务,再轮询任务接口获取视频地址。
把 APIMart 密钥保存在环境变量 APIMART_API_KEY 中,每次请求时以 Authorization: Bearer <key> 发送。
向 POST /v1/videos/generations 发送 model wan2.7-videoedit、video_urls 中的原视频和编辑指令,需要目标风格时加 image_urls。任务 ID 在 data[0].task_id。
轮询 GET /v1/tasks/{task_id},直到 status 为 completed,然后从 data.result.videos[0].url[0] 读取视频地址,并把文件保存到自己的存储。
完整参数、输入限制与返回字段见 Wan 2.7 Video Edit 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-videoedit",
"prompt": "把背景换成黄昏时的雪山村庄,人物和动作保持不变",
"video_urls": [
"https://example.com/source.mp4"
],
"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.7-videoedit",
"prompt": "把背景换成黄昏时的雪山村庄,人物和动作保持不变",
"video_urls": [
"https://example.com/source.mp4"
],
"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")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-videoedit",
"prompt": "参照参考图的水彩质感,把整段视频重绘成同样的风格",
"video_urls": [
"https://example.com/source.mp4"
],
"image_urls": [
"https://example.com/style.jpg"
],
"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-videoedit | 使用 wan2.7-videoedit。 |
video_urls | array | 是 | 默认值: — | 原视频(mp4 或 mov,2–10 秒,最大 100 MB)。只使用第一个视频。 |
prompt | string | 否 | 默认值: — | 编辑指令,最多 5,000 字符。不填时执行默认风格迁移。 |
negative_prompt | string | 否 | 默认值: — | 需要避免的内容,最多 500 字符。 |
image_urls | array | 否 | 默认值: — | 最多 4 张参考图,指定目标风格或外观。 |
resolution | string | 否 | 默认值: 1080P | 720P 或 1080P。 |
duration | integer | 否 | 默认值: 0 | 0 保留原视频完整时长;2 到 10 则从开头保留相应秒数。 |
size | string | 否 | 默认值: — | 16:9、9:16、1:1、4:3 或 3:4。不传则与原视频一致。 |
prompt_extend | boolean | 否 | 默认值: true | 改写并丰富提示词,对短提示词有帮助,但会增加耗时。 |
seed | integer | 否 | 默认值: — | 0 或以上。相同 seed 得到相近但不完全相同的结果。 |
watermark | boolean | 否 | 默认值: false | 添加 AI 生成水印。 |
metadata.audio_setting | string | 否 | 默认值: auto | auto 重新生成匹配的音频;origin 保留原视频音频。 |
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-videoedit 会改变原视频的哪些部分、保留哪些部分
修改已有素材,而不是从零生成
三步完成从注册到第一个编辑后的视频
注册 APIMart、充值,并在控制台创建 API 密钥。
在上方上传原视频、写一句编辑指令,写代码前先看费用预估。
参照下方示例从后端提交任务,再轮询获取结果。
来自全球创作者和开发者的真实声音。以上评价为 Wan 2.7 系列的使用反馈。
“WAN 2.7 的画面一致性简直惊人!我在生成一系列短片时,角色形象非常稳定,这在以前是很难想象的。”
张伟
独立动画制作人
“作为一名开发者,我非常看重 API 的稳定性和响应速度。WAN 2.7 在 APIMart 上的表现非常出色,集成也非常简单。”
陈志远
全栈开发工程师
“图生视频功能帮我节省了大量的后期时间,我只需要画好关键帧,剩下的交给 WAN 2.7 就行了。”
李明
插画师
“WAN 2.7 大幅缩短了我们短视频的制作周期。电影感的镜头运动加上稳定的角色一致性,让品牌在社媒上更具辨识度。”
孙佳怡
短视频创作者
关于 wan2.7-videoedit 的输入、音频、参数和价格
Wan 2.7 Video Edit 是阿里巴巴 Wan 2.7 的视频编辑模型,根据文字指令和可选参考图修改一段已有的 2 到 10 秒视频,输出 720P 或 1080P。在 APIMart 的 model ID 是 wan2.7-videoedit。
它支持基于指令的编辑,例如替换背景、更换服装、添加元素,以及整体换风格。参考图可以指定目标风格或外观。
模型会对原视频执行默认的风格迁移。需要具体修改时再写提示词。
一段 mp4 或 mov,时长 2 到 10 秒,边长 240 到 4096 像素,宽高比在 1:8 到 8:1 之间,大小不超过 100 MB。传多个 URL 时只使用第一个。
duration 为 0(默认)时输出保留原视频完整时长,按实际时长计费。设为 2 到 10 秒则从开头截取相应时长,且不能超过原视频时长。
metadata.audio_setting 默认为 auto,会为编辑后的画面重新生成音频。设为 origin 则保留原视频音频,适合有对白或重要背景声的素材。
要修改已有素材,用 Wan 2.7 Video Edit。要根据文字或帧生成新视频、续写片段,用 Wan 2.7(wan2.7);要生成保持参考角色一致的新镜头,用 Wan 2.7 R2V(wan2.7-r2v)。
model(wan2.7-videoedit)和 video_urls 必填。可选字段:prompt、negative_prompt、image_urls(最多 4 张)、resolution(默认 1080P)、duration(默认 0)、size、prompt_extend(默认 true)、seed、watermark、nsfw_check 和 metadata.audio_setting。
提交到 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 Video Edit 按输出视频秒数计费,1080P 每秒比 720P 贵。duration 为 0 时按实际输出时长付费。当前价格见本页价格表;黄金会员立省 20%,铂金和钻石会员最高省 28%。
都不是。APIMart 没有为 Wan 2.7 Video Edit 提供免费额度,每个任务按秒付费。阿里巴巴以托管 API 提供该模型,没有公开模型权重。
注册 APIMart、充值,然后在 API 密钥页面创建密钥,以 Authorization: Bearer <key> 发送。同一个密钥可以调用所有 Wan 模型以及 APIMart 上的其他模型。
探索同类型的其他模型。

Wan 2.7 R2v
wan2.7‑r2v is the reference‑to‑video variant within Alibaba’s Wan 2.7 video generation model family. It uses one or more reference images or short clips as visual anchors and, combined with a text prompt, generates new video content that preserves the appearance and identity of characters or objects from the references while animating motion and scene direction. This makes it especially useful for consistent character representation, product showcases, brand assets, and creative workflows where visual continuity is important.

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
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.