Alibaba: Wan 2.7
视频生成
wan-2.7
厂商 Alibaba
Alibaba Wan 2.7 异步视频生成模型,支持 720p/1080p 分辨率、2–15 秒文生视频与图生视频。
视频计费$0.1–$0.15/sec官方原价
视频时长2–15s支持 14 种时长档位
分辨率与画幅720p / 1080p6 种画幅
调用方式异步任务提交 → 轮询 → 下载
定价与费用计算器
OpenDesign Go 按实际产出单位计费($0.1–$0.15/sec)。
估算视频生成费用
分辨率
预估总费用—
720p · 5s
| 分辨率 | 单价 | 计费规则 |
|---|---|---|
| 720p | $0.1 / sec | 按 5 秒起计费 |
| 1080p | $0.15 / sec | 按 5 秒起计费 |
5 秒社媒短片 (720p)
$0.5
720p $0.1/秒(5 秒起计)10 秒产品展示 (1080p)
$1.5
1080p $0.15/秒15 秒完整镜头 (1080p)
$2.25
最长支持 15 秒规格与接口参数
时长2–15s
分辨率720p / 1080p
参考首帧上限最多 1 张
调用方式异步轮询 → MP4
16:99:161:14:33:4adaptive
| 参数 | 类型 | 取值 / 支持范围 |
|---|---|---|
| model | string | wan-2.7 |
| content | array | 文本提示词与可选参考首帧图片 URL |
| resolution / ratio | enum | 720p / 1080p · 16:9, 9:16, 1:1, 4:3, 3:4, adaptive |
| duration | integer | 2–15 秒(1 秒步进) |
| GET .../tasks/{id} | endpoint | 轮询任务状态并鉴权下载 MP4 |
路由、稳定性与隐私保障
托管多路由自动故障转移、锁定公开单价与零数据留存(ZDR)。
上游路由
多路由故障转移
由 OpenDesign Go Link 持续托管优先级调度与上游容灾切换。
费率稳定
锁定公开单价
上游线路自动切换时,对外计费单价始终保持不变。
自动高可用
5xx 熔断保护
异常后端自动进入冷却探测期,流量即时切换至健康线路。
隐私策略 (ZDR)
零负载存储
仅记录账号、模型、用量与账单金额,不存储提示词、输出内容或媒体文件。
异步视频 API
通过 Async Video Tasks API (/api/v3/contents/generations/tasks) 调用 wan-2.7。
1
配置 OpenDesign Go API Key
export COROUTER_API_KEY="YOUR_API_KEY" # Base URL: https://amr-link.open-design.ai
2
发送首次请求
# Step 1: Create async video generation task
curl https://amr-link.open-design.ai/api/v3/contents/generations/tasks \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COROUTER_API_KEY" \
-d '{
"model": "wan-2.7",
"content": [{ "type": "text", "text": "Slow cinematic drone glide across a misty fjord at dawn" }],
"resolution": "720p",
"ratio": "16:9",
"duration": 5
}'
# Step 2: Poll task status & download output
curl https://amr-link.open-design.ai/api/v3/contents/generations/tasks/$TASK_ID \
-H "Authorization: Bearer $COROUTER_API_KEY"import os, time, requests
HEADERS = {"Authorization": f"Bearer {os.environ['COROUTER_API_KEY']}"}
BASE = "https://amr-link.open-design.ai/api/v3/contents/generations/tasks"
job = requests.post(BASE, headers=HEADERS, json={
"model": "wan-2.7",
"content": [{"type": "text", "text": "Slow cinematic drone glide across a misty fjord at dawn"}],
"resolution": "720p",
"ratio": "16:9",
"duration": 5,
}).json()
while True:
status = requests.get(f"{BASE}/{job['id']}", headers=HEADERS).json()
if status["status"] in ("succeeded", "failed"):
print(status)
break
time.sleep(5)const BASE = "https://amr-link.open-design.ai/api/v3/contents/generations/tasks";
const headers = { "Content-Type": "application/json", Authorization: `Bearer ${process.env.COROUTER_API_KEY}` };
const createRes = await fetch(BASE, {
method: "POST",
headers,
body: JSON.stringify({
model: "wan-2.7",
content: [{ type: "text", text: "Slow cinematic drone glide across a misty fjord at dawn" }],
resolution: "720p",
ratio: "16:9",
duration: 5,
}),
});
const { id } = await createRes.json();
const poll = await fetch(`${BASE}/${id}`, { headers }).then((r) => r.json());
console.log(poll);3
查看返回体与标准 HTTP 错误码
{
"id": "cgt-20261124-od9821",
"model": "wan-2.7",
"status": "succeeded",
"resolution": "720p",
"duration": 5,
"content": {
"video_url": "https://amr-link.open-design.ai/api/v3/contents/generations/tasks/cgt-20261124-od9821/content"
}
}
HTTP 401 Unauthorized Invalid or missing Bearer COROUTER_API_KEY.
HTTP 403 Forbidden Workspace key lacks permission for this model or endpoint.
HTTP 404 Not Found Unknown model ID or unavailable endpoint path.
HTTP 429 Too Many Requests Workspace rate limit, concurrency cap, or credit limit reached.
HTTP 502 Bad Gateway Upstream provider returned an error after automatic failover.
HTTP 503 Service Unavailable Upstream provider temporarily unavailable; retry with backoff.
异步视频流水线
Wan 2.7 端到端异步接入范式:首帧图生视频与鉴权下载 MP4。
curl https://amr-link.open-design.ai/api/v3/contents/generations/tasks \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COROUTER_API_KEY" \
-d '{
"model": "wan-2.7",
"content": [
{ "type": "image_url", "image_url": { "url": "https://example.com/keyframe.png" } },
{ "type": "text", "text": "Subtle camera dolly-in with natural wind motion" }
],
"resolution": "720p",
"duration": 5
}'curl -L https://amr-link.open-design.ai/api/v3/contents/generations/tasks/$TASK_ID/content \
-H "Authorization: Bearer $COROUTER_API_KEY" \
--output output.mp4同类模型对比
常见问题
Wan 2.7(wan-2.7)按生成视频秒数计费($0.1–$0.15/sec),单次任务最低按 5 秒起计;任务状态轮询与结果下载均不另收费。
向 POST https://amr-link.open-design.ai/api/v3/contents/generations/tasks 提交任务,轮询 GET .../tasks/{id} 直至状态为 succeeded,随后从 .../tasks/{id}/content 下载 MP4。
支持分辨率:720p、1080p;时长:2–15 秒;画幅比例:16:9, 9:16, 1:1, 4:3, 3:4, adaptive。
支持。在请求 content 数组中同时传入 image_url 与 text 提示词,即可基于首帧图片生成动态视频。
不会。OpenDesign Go 严格执行零数据留存(ZDR),不会存储提示词、首帧图片或渲染输出的视频文件。
Alibaba 旗下更多模型
查看厂商页探索更多模型
全部模型目录Wan 2.7 API
https://amr-link.open-design.ai
# Step 1: Create async video generation task
curl https://amr-link.open-design.ai/api/v3/contents/generations/tasks \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COROUTER_API_KEY" \
-d '{
"model": "wan-2.7",
"content": [{ "type": "text", "text": "Slow cinematic drone glide across a misty fjord at dawn" }],
"resolution": "720p",
"ratio": "16:9",
"duration": 5
}'
# Step 2: Poll task status & download output
curl https://amr-link.open-design.ai/api/v3/contents/generations/tasks/$TASK_ID \
-H "Authorization: Bearer $COROUTER_API_KEY"import os, time, requests
HEADERS = {"Authorization": f"Bearer {os.environ['COROUTER_API_KEY']}"}
BASE = "https://amr-link.open-design.ai/api/v3/contents/generations/tasks"
job = requests.post(BASE, headers=HEADERS, json={
"model": "wan-2.7",
"content": [{"type": "text", "text": "Slow cinematic drone glide across a misty fjord at dawn"}],
"resolution": "720p",
"ratio": "16:9",
"duration": 5,
}).json()
while True:
status = requests.get(f"{BASE}/{job['id']}", headers=HEADERS).json()
if status["status"] in ("succeeded", "failed"):
print(status)
break
time.sleep(5)const BASE = "https://amr-link.open-design.ai/api/v3/contents/generations/tasks";
const headers = { "Content-Type": "application/json", Authorization: `Bearer ${process.env.COROUTER_API_KEY}` };
const createRes = await fetch(BASE, {
method: "POST",
headers,
body: JSON.stringify({
model: "wan-2.7",
content: [{ type: "text", text: "Slow cinematic drone glide across a misty fjord at dawn" }],
resolution: "720p",
ratio: "16:9",
duration: 5,
}),
});
const { id } = await createRes.json();
const poll = await fetch(`${BASE}/${id}`, { headers }).then((r) => r.json());
console.log(poll);