
Alibaba的Wan 2.5视频模型,带有 text-to-video 和 image-to-video,本地音频,可选的自定义音频音轨,以及 480p到1080p输出.
Alibaba的Wan 2.5视频模型,带有 text-to-video 和 image-to-video,本地音频,可选的自定义音频音轨,以及 480p到1080p输出.
也称为 Alibaba Cloud Wan 2.5
wan-2-5/v1/videos/generationsalibaba/wan-2.5wan2.5来自 EmpirioLabs 目录的实时按量计费价格。只为实际用量付费,没有月度最低消费。
Wan 2.5 通过 POST /v1/videos/generations 运行。请求会立即返回 job_id;轮询 GET /v1/jobs/{job_id} 直到任务完成,再从结果中读取输出 URL。 在EmpirioLabs 控制台获取 API 密钥。
curl https://api.empiriolabs.ai/v1/videos/generations \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan-2-5",
"prompt": "Describe what you want Wan 2.5 to generate."
}'curl https://api.empiriolabs.ai/v1/jobs/JOB_ID \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY"import requests
response = requests.post(
"https://api.empiriolabs.ai/v1/videos/generations",
headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
json={
"model": "wan-2-5",
"prompt": "Describe what you want Wan 2.5 to generate.",
},
)
job = response.json()
# Generation runs as an async job. Poll until it completes.
import time
while True:
status = requests.get(
f"https://api.empiriolabs.ai/v1/jobs/{job['job_id']}",
headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
).json()
if status.get("status") in ("completed", "failed"):
print(status)
break
time.sleep(5)EmpirioLabs 上 Wan 2.5 API 支持的请求参数。省略字段时使用默认值。
| 参数 | 类型 | 默认值 | 范围 / 值 | 描述 |
|---|---|---|---|---|
| prompt | string | - | - | 场景描述。 |
| mode | enum | auto | auto, t2v, i2v | 自动检测附件。 t2v: text-to-video. i2v:动画一个图像. |
| resolution | enum | 1080p | 480p, 720p, 1080p | 输出分辨率。 |
| duration | number | 5 | 5 到 10 | 剪短数秒。 只有5或10个有效。 |
| aspect_ratio | enum | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4 | 用于 text-to-video; image-to-video 遵循源图像. 480p只支持16:9,9:16和1:1. |
| image | string | - | - | i2v的源图像 URL. |
| audio_url | string | - | - | 可选自定义音频轨道URL(WAV或MP3,约3至30秒). 没有它,模型产生本地音频。 |
| negative_prompt | string | - | - | 要避免什么。 |
| seed | number | - | - | 可重复性种子。 |
| prompt_extend | boolean | true | - | 让服务重写提示以获得更好的结果. |
| watermark | boolean | false | - | 输出时添加出处水印. |
模式: text-to-video 和 image-to-video,带本地音频,或为自定义音轨提供音频 url(WAV或MP3,约3至30秒). 持续时间为5或10秒. 480p输出支持16:9,9:16和1:1.
在 EmpirioLabs,Wan 2.5 按量计费:480个P级 $0.05 每秒钟; 第720页 $0.10 每秒钟; 第1080页 $0.15 每秒钟。本页的实时价格表始终与 API 的实际计费一致。
Wan 2.5 通过 api.empiriolabs.ai 上的 POST /v1/videos/generations 提供,使用标准的 Bearer 令牌认证。
可以。EmpirioLabs Playground在浏览器中以与 API 相同的参数运行 Wan 2.5,你可以在写代码之前先测试提示词。
创建 EmpirioLabs 账户,然后在控制台的 API Keys生成密钥。计费使用按量付费的额度,只为实际发出的请求付费。