Wan 2.6 API
Wan 2.6 的 Buble API 参数、mode、价格与调用示例。
Wan 2.6 API
Wan 2.6 支持文生视频和参考图视频,并可配合音频输入生成更长的音频驱动场景。
模型 key
wan/wan2.6— Wan2.6
支持的 mode 与输入
| 模型 | Mode | 名称 | 输入要求 |
|---|---|---|---|
wan/wan2.6 | text_to_video | 文生视频 | Prompt max 2000 chars Audio: 1-1 files, 50 MB, max 120s, formats mp3, wav, aac, m4a |
wan/wan2.6 | reference_to_video | 参考图生成视频 | Prompt max 2000 chars Images reference: 1-1 files, 10 MB, formats jpg, png, webpAudio: 1-1 files, 10 MB, max 120s, formats mp3, wav, aac, m4a |
参数
| 模型 | 参数 | 默认值 | 可选值 | 适用 mode |
|---|---|---|---|---|
wan/wan2.6 | duration | 5s | 5s, 10s, 15s | 全部 mode |
wan/wan2.6 | aspect_ratio | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4 | text_to_video |
wan/wan2.6 | resolution | 720p | 720p, 1080p | 全部 mode |
wan/wan2.6 | short_type | single | single, multi | 全部 mode |
wan/wan2.6 | audio | false | true, false | 全部 mode |
价格
| 模型 | 价格 |
|---|---|
wan/wan2.6 | 每秒 4 credits;参数倍率:resolution={"720p":1,"1080p":1.5} |
生产建议
- 显式传入
mode。 - 只使用上表列出的参数值。
- 媒体输入类 mode 请先用
POST /api/v1/files上传素材。 - 如果页面包含多个变体,请使用你真正需要的模型 key。
示例:文生视频
curl https://buble.ai/api/v1/generations \
-H "Authorization: Bearer $BUBLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan/wan2.6",
"mode": "text_to_video",
"prompt": "A cinematic product launch shot with slow camera movement, premium lighting, and realistic motion",
"duration": "5s",
"resolution": "720p",
"aspect_ratio": "16:9",
"short_type": "single",
"audio": "false"
}'示例:素材驱动视频
curl https://buble.ai/api/v1/generations \
-H "Authorization: Bearer $BUBLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan/wan2.6",
"mode": "reference_to_video",
"prompt": "Animate the source into a polished cinematic motion shot with natural camera movement",
"image_urls": ["https://example.com/reference.png"],
"duration": "5s",
"resolution": "720p",
"aspect_ratio": "16:9",
"short_type": "single",
"audio": "false"
}'