Seedance 2
Seedance 2 video generation with text-to-video, image-to-video, and multimodal reference support
Fonctionnalités
- Text-to-video generation
- Image-to-video generation
- Image, video, and audio reference inputs
- Fast and Pro model options
- Standard, real-person, and wild rendering modes
- 4-15 second outputs
Tarification
| Model / Resolution | 4s | 8s | 12s | 15s |
|---|---|---|---|---|
| seedance2-fast / 720p | 30 (~$0.33) | 65 (~$0.72) | 95 (~$1.06) | 120 (~$1.33) |
| seedance2 / 720p | 40 (~$0.44) | 80 (~$0.89) | 120 (~$1.33) | 150 (~$1.67) |
| seedance2 / 1080p | 90 (~$1.00) | 175 (~$1.94) | 265 (~$2.94) | 330 (~$3.67) |
Prices are for the standard and wild modes with text/image inputs. The real mode costs about 1.4x. Omitting mode uses a separate fixed price table with slightly different totals. Video or audio references add per-second media-reference pricing.
Point de terminaison
POST
/api/v1/videos/generateParamètres
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
| model | string | Obligatoire | "seedance2" for Pro quality or "seedance2-fast" for Fast quality |
| mode | string | Facultatif | "standard", "real", or "wild" rendering mode. channel is accepted as an alias. |
| type | string | Facultatif | "text-to-video", "image-to-video", or "media-to-video" (auto-detected from media_urls/image_urls when omitted) |
| prompt | string | Obligatoire | Text prompt (3-2500 chars) |
| media_urls | string[] | Facultatif | Reference media URLs. Supports images, videos, and audio; detected by file extension. |
| image_urls | string[] | Facultatif | Image-only reference URLs. media_urls takes precedence when both are provided. |
| input_image | string | Facultatif | Deprecated. Alias for image_urls[0] |
| aspect_ratio | string | Facultatif | "1:1", "21:9", "4:3", "3:4", "16:9", or "9:16" (default: 16:9) |
| duration | string | Facultatif | "4" through "15" seconds (default: 4) |
| resolution | string | Facultatif | "720p" or "1080p" (default: 720p). "480p" is additionally available only when mode is omitted. Resolution values select quality presets; actual encoding profiles are tuned per mode. |
| fallback | boolean | Facultatif | Allow automatic service fallback when available (default behavior) |
| seed | integer | Facultatif | -1 to 4294967295. Fixes the generation seed for reproducibility. Supported by explicit "standard", "real", and "wild" modes, including real-mode asset:// inputs. When mode is omitted, the parameter is accepted but ignored. |
Exemple de Requête (Texte vers Vidéo)
{
"model": "seedance2",
"mode": "standard",
"type": "text-to-video",
"prompt": "A cinematic drone shot over a futuristic coastal city at sunrise",
"aspect_ratio": "16:9",
"duration": "8",
"resolution": "1080p",
"fallback": true,
"seed": 12345
}Exemple de Requête (Image vers Vidéo)
{
"model": "seedance2-fast",
"mode": "real",
"prompt": "A product spins slowly on a clean studio turntable with soft reflections",
"media_urls": ["https://example.com/product.png"],
"aspect_ratio": "16:9",
"duration": "6",
"resolution": "720p"
}Exemple de réponse
{
"success": true,
"data": {
"task_id": "task_seedance2_123",
"credits_used": 175,
"remaining_credits": 825,
"model": "seedance2",
"mode": "standard"
}
}Exemples de Code (Texte vers Vidéo)
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": "seedance2",
"mode": "standard",
"type": "text-to-video",
"prompt": "A cinematic drone shot over a futuristic coastal city at sunrise",
"aspect_ratio": "16:9",
"duration": "8",
"resolution": "1080p",
"seed": 12345
}'Exemples de Code (Image vers Vidéo)
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": "seedance2-fast",
"mode": "real",
"prompt": "A product spins slowly on a clean studio turntable with soft reflections",
"media_urls": ["https://example.com/product.png"],
"aspect_ratio": "16:9",
"duration": "6",
"resolution": "720p"
}'