Wan25/26
高品質な映像生成のためのWanビデオ生成モデル
機能
- テキストから動画生成
- 複数の期間
- 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"
}'