Wan25/26
Modelos de geração de vídeo Wan para produção de alta qualidade
Funcionalidades
- Geração de texto para vídeo
- Múltiplas durações
- Suporte para 720p e 1080p
- Expansão opcional de prompt
Preços
Wan 2.5
| Duration | 720p | 1080p |
|---|---|---|
| 5 sec | 60 | 100 |
| 10 sec | 120 | 200 |
Wan 2.6
| Duration | 720p | 1080p |
|---|---|---|
| 5 sec | 80 | 110 |
| 10 sec | 160 | 220 |
| 15 sec | 240 | 330 |
Endpoint
POST
/api/v1/videos/generateParâmetros
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| model | string | Obrigatório | "wan25" or "wan26" |
| type | string | Opcional | "text-to-video", "image-to-video", or "video-to-video" (wan26 only; default: text-to-video) |
| prompt | string | Obrigatório | Text description of the video |
| image_urls | string[] | Opcional | Input image URLs for image-to-video |
| image_url | string | Opcional | Legacy single image URL for image-to-video |
| video_url | string | Opcional | Input video URL for wan26 video-to-video |
| input_image | string | Opcional | Deprecated. Alias for image_urls[0] |
| duration | string | Opcional | "5" or "10" (wan25); "5", "10", or "15" (wan26) |
| resolution | string | Opcional | "720p" or "1080p" |
| negative_prompt | string | Opcional | What to avoid |
| enable_prompt_expansion | boolean | Opcional | Auto-expand prompt |
| seed | number | Opcional | Random seed for reproducibility |
Exemplo de Solicitação
{
"model": "wan25",
"prompt": "A butterfly landing on a flower in slow motion",
"duration": "5",
"resolution": "1080p"
}Exemplo de Resposta
{
"success": true,
"data": {
"task_id": "task_wan123",
"credits_used": 100,
"remaining_credits": 400,
"model": "wan25"
}
}Exemplos de Código
curl -X POST https://preview.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"
}'