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매개변수
| Parameter | 타입 | 필수 | 설명 |
|---|---|---|---|
| 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"
}'