Wan25/26
高质量视频生成模型
功能特性
- 文本到视频生成
- 多种时长
- 支持720p和1080p分辨率
- 可选提示扩展
定价
Wan 2.5
| Duration | 720p | 1080p |
|---|---|---|
| 5 sec | 60 (~$0.67) | 100 (~$1.11) |
| 10 sec | 120 (~$1.33) | 200 (~$2.22) |
Wan 2.6
| Duration | 720p | 1080p |
|---|---|---|
| 5 sec | 80 (~$0.89) | 110 (~$1.22) |
| 10 sec | 160 (~$1.78) | 220 (~$2.44) |
| 15 sec | 240 (~$2.67) | 330 (~$3.67) |
端点
POST
/api/v1/videos/generate参数
| 参数 | 类型 | 必需 | 描述 |
|---|---|---|---|
| model | string | 必需 | "wan25" or "wan26" |
| type | string | 可选 | "text-to-video", "image-to-video", or "video-to-video" (wan26 only; default: text-to-video) |
| prompt | string | 必需 | Text description of the video |
| image_urls | string[] | 可选 | Input image URLs for image-to-video |
| image_url | string | 可选 | Legacy single image URL for image-to-video |
| video_url | string | 可选 | Input video URL for wan26 video-to-video |
| input_image | string | 可选 | Deprecated. Alias for image_urls[0] |
| duration | string | 可选 | "5" or "10" (wan25); "5", "10", or "15" (wan26) |
| resolution | string | 可选 | "720p" or "1080p" |
| negative_prompt | string | 可选 | What to avoid |
| enable_prompt_expansion | boolean | 可选 | Auto-expand prompt |
| seed | number | 可选 | Random seed for reproducibility |
请求示例
{
"model": "wan25",
"prompt": "A butterfly landing on a flower in slow motion",
"duration": "5",
"resolution": "1080p"
}响应示例
{
"success": true,
"data": {
"task_id": "task_wan123",
"credits_used": 100,
"remaining_credits": 400,
"model": "wan25"
}
}代码示例
curl -X POST https://gateway.bananapro.site/api/v1/videos/generate \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "wan25",
"prompt": "A butterfly landing on a flower in slow motion",
"duration": "5",
"resolution": "1080p"
}'