Seedance
ByteDance Seedance video generation with optional audio generation
Funktionen
- Text-to-video generation
- Image-to-video generation
- Optional audio generation
- Seedance 2 supports 4K output
Preise
| Duration | 480p No Audio | 480p Audio | 720p No Audio | 720p Audio |
|---|---|---|---|---|
| 4 sec | 8 (~$0.09) | 16 (~$0.18) | 16 (~$0.18) | 32 (~$0.36) |
| 8 sec | 16 (~$0.18) | 32 (~$0.36) | 32 (~$0.36) | 64 (~$0.71) |
| 12 sec | 24 (~$0.27) | 48 (~$0.53) | 48 (~$0.53) | 96 (~$1.07) |
Seedance 2 4K (resolution "4k") requires model "seedance2", durations 4-15s, billed per second at ~117 credits/sec (e.g. 5s ≈ 585 credits).
Endpunkt
POST
/api/v1/videos/generateParameter
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| model | string | Erforderlich | "seedance", "seedance2", or "seedance2-fast" |
| type | string | Optional | "text-to-video" or "image-to-video" (default: text-to-video) |
| prompt | string | Erforderlich | Text prompt (3-2500 chars) |
| image_urls | string[] | Optional | Required for image-to-video; supports 1-2 images |
| media_urls | string[] | Optional | Seedance2 media references. Supports images, videos, and audio; audio must be paired with at least one image or video. Include input_video_duration or media_durations for video/audio billing. |
| input_video_duration | number | Optional | Total video/audio input duration in seconds for Seedance2 media_urls billing. |
| media_durations | (number|null)[] | Optional | Optional per-media durations aligned with media_urls; positive values are summed for video/audio billing. |
| input_image | string | Optional | Deprecated. Alias for image_urls[0] |
| aspect_ratio | string | Optional | "1:1", "21:9", "4:3", "3:4", "16:9", or "9:16" |
| duration | string | Optional | "4", "8", or "12" for seedance; seedance2 supports 4-15 seconds |
| resolution | string | Optional | "480p" or "720p" for seedance; seedance2 also supports "1080p". "4k" requires model "seedance2" (other models reject "4k"). |
| fixed_lens | boolean | Optional | Use fixed camera/lens behavior (default: false) |
| generate_audio | boolean | Optional | Generate synchronized audio (default: true). Set to false for silent video. |
Beispielanfrage
{
"model": "seedance",
"type": "text-to-video",
"prompt": "A cinematic pan across a rainy neon street",
"aspect_ratio": "16:9",
"duration": "8",
"resolution": "720p",
"generate_audio": true
}Antwortbeispiel
{
"success": true,
"data": {
"task_id": "task_seedance123",
"credits_used": 64,
"remaining_credits": 436,
"model": "seedance"
}
}Code-Beispiele
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": "seedance",
"type": "text-to-video",
"prompt": "A cinematic pan across a rainy neon street",
"aspect_ratio": "16:9",
"duration": "8",
"resolution": "720p",
"generate_audio": true
}'