Alibaba
API 当前可用视频生成720p / 1080p2–15 秒Wan 2.7 API
使用阿里巴巴万相 Wan 2.7,从文本、首尾帧或最多 5 张参考图搭配可选音频输入生成 2–15 秒的 720p / 1080p 视频。
- 模型 ID
wan-2.7- 起步价
- $0.124/秒
- 免费试用
- 赠送 $0.20 额度(200 积分)
新账户赠送 $0.20 免费积分。
比较全部 Wan API 版本Wan 2.7 由 Alibaba 开发。Wizzx 提供 API 访问,不拥有该模型。所有商标归各自所有者所有。
需要首帧图片?可以先用这些模型生成:
模型指南
关于 Wan 2.7
使用阿里巴巴万相 Wan 2.7,从文本、首尾帧或最多 5 张参考图搭配可选音频输入生成 2–15 秒的 720p / 1080p 视频。
为什么选择 Wan 2.7?
Wan 2.7 是阿里巴巴基于混合专家(MoE)架构打造的万相视频生成模型,在 Wan 2.6 基础上增强了提示词推理、多镜头叙事连贯性、参考图一致性以及驱动/参考音频控制,覆盖 720p 与 1080p 高清输出。
在 Wizzx 中,wan-2.7 在同一接口内打通了文生视频、首尾帧图生视频与参考图生视频(最多 5 张参考图 + 可选 audio_url),并提供 negative_prompt 与 prompt_extend 精细控制项。
| Wizzx 控件 | 当前行为 |
|---|---|
| 提示词 | 必填,1–5,000 个字符 |
| 首尾帧控制 | 可选 first_frame_image 与 last_frame_image(公网 http(s) URL;last_frame_image 依赖 first_frame_image 且不可与 reference_image_urls 共用) |
| 参考图 | 可选 reference_image_urls(0–5 个公网 http(s) URL),不额外收费 |
| 音频输入 | 可选 audio_url(公网 http(s) 音频 URL;在图生视频中作为驱动音频,在参考模式中作为参考音色) |
| 分辨率 | 720p(默认)或 1080p |
| 时长 | 2–15 秒的任意整数,默认 5 秒;传入 reference_image_urls 时上限为 10 秒 |
| 宽高比 | 16:9(默认)、9:16、1:1、4:3 或 3:4 |
| 反向提示与扩写 | 可选 negative_prompt(最多 500 字符)、prompt_extend 布尔开关及 seed(>= 0) |
适合的工作流
- 音频驱动图生与参考生成: 将
first_frame_image或reference_image_urls与audio_url结合,引导人物说话节奏与表演律动。 - 多参考图(可选首帧锚定): 使用最多 5 张
reference_image_urls(可同时配合first_frame_image)生成 2–10 秒主体一致镜头。 - 提示词扩写与负向排障: 借助
prompt_extend与negative_prompt稳定产出 2–15 秒的720p或1080p成片。
提示词建议
清晰说明主体特征、动作发展与运镜方式;输入简短创意时可开启 prompt_extend: true 自动补全摄影细节,并在 negative_prompt(不超过 500 字)中排除不需要的画面瑕疵。使用 reference_image_urls 时请将 duration 设在 10 秒以内;使用 last_frame_image 时请保持 reference_image_urls 为空。
Wizzx 支持范围
Wizzx 每次请求返回一段视频。resolution(720p 或 1080p)决定每秒费率,duration 决定总时长扣费,参考图与 audio_url 不收附加费;实时积分标准以后端 /pricing 目录为准。同时传入 last_frame_image 与 reference_image_urls,或在参考图模式下请求超过 10 秒会被校验拒绝。如需最长 30 秒生成或 480p 草稿档,请查看 wan-3.0。
资料来源
Wan 2.7 API 生成示例
生成模型: Wan 2.7
resolution: 720pduration: 5aspect_ratio: 16:9提示词Aerial drone shot following a lone cyclist on a winding coastal road high above a turquoise sea at golden hour. Waves break on the cliffs below, then the camera slowly rises to reveal the whole coastline.
Aerial drone shot following a lone cyclist on a winding coastal road high above a turquoise sea at golden hour. Waves break on the cliffs below, then the camera slowly rises to reveal the whole coastline.
实时 API 价格
Wan 2.7 API 价格
按档位透明计费,无订阅门槛,失败任务自动退还积分。
| 规格 | Wizzx 价格 |
|---|---|
720p
| 124 积分 / 秒 ≈ $0.124 / 秒 |
1080p
| 185 积分 / 秒 ≈ $0.185 / 秒 |
1 积分 = $0.001 美元;最终扣费以 API 实际返回为准。
按秒计费(2–15 秒,参考图模式最多 10 秒;默认 5 秒、720p);支持文生、首尾帧与最多 5 张参考图
接入 Wan 2.7 API
所有请求都是异步的:先提交任务并保存任务 ID,再轮询获取结果。下面的请求体使用该模型的默认设置。
- 1
获取 Wan 2.7 API Key
登录后在控制台创建密钥,在服务端环境中设置 WIZZX_API_KEY,不要将密钥暴露在浏览器代码中。
- 2
提交任务
向模型接口发送 POST 请求。提交成功后返回 data.task_id,请保留该 ID 用于查询。提交成功不代表内容已经生成完成。
- 3
获取生成结果
将 YOUR_TASK_ID 替换为返回的任务 ID,查询 GET /api/v1/task/{task_id}。等待 SUCCEEDED 后读取输出 URL。遇到 FAILED 或 REVIEW_REQUIRED 时停止,不要自动重提状态不明的任务。
curl -X POST \
https://api.wizzx.ai/api/v1/task/submit/wan-2.7 \
-H "Authorization: Bearer $WIZZX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"resolution": "720p",
"duration": 5,
"aspect_ratio": "16:9",
"prompt": "Aerial drone shot following a lone cyclist on a winding coastal road high above a turquoise sea at golden hour. Waves break on the cliffs below, then the camera slowly rises to reveal the whole coastline."
}'const response = await fetch("https://api.wizzx.ai/api/v1/task/submit/wan-2.7", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.WIZZX_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"resolution": "720p",
"duration": 5,
"aspect_ratio": "16:9",
"prompt": "Aerial drone shot following a lone cyclist on a winding coastal road high above a turquoise sea at golden hour. Waves break on the cliffs below, then the camera slowly rises to reveal the whole coastline."
}),
});
const payload = await response.json();
const task = payload.data ?? payload;
const taskId = task.task_id;import os
import requests
response = requests.post(
"https://api.wizzx.ai/api/v1/task/submit/wan-2.7",
headers={
"Authorization": f"Bearer {os.environ['WIZZX_API_KEY']}",
},
json={
"resolution": "720p",
"duration": 5,
"aspect_ratio": "16:9",
"prompt": "Aerial drone shot following a lone cyclist on a winding coastal road high above a turquoise sea at golden hour. Waves break on the cliffs below, then the camera slowly rises to reveal the whole coastline."
},
)
payload = response.json()
task = payload.get("data", payload)
task_id = task["task_id"]curl https://api.wizzx.ai/api/v1/task/YOUR_TASK_ID \
-H "Authorization: Bearer $WIZZX_API_KEY"const response = await fetch("https://api.wizzx.ai/api/v1/task/YOUR_TASK_ID", {
headers: {
Authorization: `Bearer ${process.env.WIZZX_API_KEY}`,
},
});
const payload = await response.json();
const task = payload.data ?? payload;
// Poll until task.status is SUCCEEDED, then read task.result_urls (stop on FAILED or REVIEW_REQUIRED)import os
import requests
response = requests.get(
"https://api.wizzx.ai/api/v1/task/YOUR_TASK_ID",
headers={
"Authorization": f"Bearer {os.environ['WIZZX_API_KEY']}",
},
)
payload = response.json()
task = payload.get("data", payload)
# Poll until task["status"] == "SUCCEEDED", then read task["result_urls"] (stop on FAILED or REVIEW_REQUIRED)Wan 2.7 API 参数
Wizzx 上该接口接受的字段,与 Playground 表单使用同一份 schema。
| 参数 | 类型 | 默认值 | 可选值 | 说明 |
|---|---|---|---|---|
prompt提示词必填 | string | — | ≤ 5,000 | 描述你想生成的视频 |
first_frame_image首帧 | url | — | — | 可选首帧图片链接。 |
last_frame_image尾帧图片 | url | — | — | 可选尾帧图片链接(需提供首帧,且不可传参考图)。 |
reference_image_urls参考图 | url[] ≤ 5 | — | — | 可选。最多 5 张参考图(最长 10 秒)。 |
audio_url音频链接 | url | — | — | 可选音频链接,用于音频驱动或音色参考。 |
duration时长 | integer | 5 | 2 – 15 | 视频时长(秒;使用参考图时最长 10 秒)。 |
resolution分辨率 | string | 720p | 720p · 1080p | 分辨率决定每秒费率。 |
aspect_ratio宽高比 | string | 16:9 | 16:9 · 9:16 · 1:1 · 4:3 · 3:4 | — |
prompt_extend提示词扩写 | boolean | — | — | — |
negative_prompt反向提示词 | string | — | ≤ 500 | 视频中不希望出现的内容(最多 500 个字符) |
seed随机种子 | integer | — | 0 – … | 用于复现结果的随机种子 |
比较 Wan API 各版本
Wizzx 上可调用的全部 7 个 Wan 版本,价格为各版本最低档位。
| 版本 | 模式 | 输出 | 价格 |
|---|---|---|---|
wan-2.7-image | 文生图 · 图像编辑 | 1K2K | $0.034/张 |
wan-2.7-image-pro | 文生图 · 图像编辑 | 1K2K4K | $0.084/张 |
wan-2.6-flash | 图生视频 | 720p1080p2–15 秒 | $0.033/秒 |
wan-3.0 | 文/图生视频 | 480p720p1080p2–30 秒 | $0.065/秒 |
wan-3.0-prime | 文/图生视频 | 480p720p1080p2–30 秒 | $0.097/秒 |
Wan 2.7当前型号 wan-2.7 | 文/图生视频 | 720p1080p2–15 秒 | $0.124/秒 |
wan-2.2-speech-to-video | 图像 + 语音生视频 | 480p580p720p3–7 秒 | $0.093/秒 |
API 接入常见问题
- Wan 2.7 API 多少钱?
- 在 Wizzx 上,Wan 2.7 API $0.124/秒 起(124 积分)。上方每个档位都列出了参数与计费单位,失败任务会退还积分。
- Wan 2.7 API 的模型 ID 是什么?
- wan-2.7。使用 API Key 向 POST /api/v1/task/submit/wan-2.7 提交任务。
- 任务失败会扣费吗?
- 不会。提交任务时预留积分,任务失败会退还,只有成功的任务才计费。
- 可以免费试用 Wan 2.7 API 吗?
- 可以。新账户赠送 $0.20 免费积分,按起步价约可生成 1 秒视频。
- 这是官方的 Wan 2.7 API 吗?
- 不是。Wan 2.7 模型由 Alibaba 开发。Wizzx 是独立的 API 平台,通过一个 API Key、异步任务接口和按量计费的积分提供调用。
- 提交响应中会直接返回生成文件吗?
- 生成采用异步流程。提交响应标识任务,查询状态直到完成后再读取结果中的输出 URL。响应字段与错误处理请参考对应 API 文档。
Wizzx API
开始使用 Wan 2.7 API
新账户赠送 $0.20 免费积分。按量付费,无需订阅,失败任务自动退款。