# Seedance 2.0 API Complete API reference for Seedance 2.0 video generation models by ByteDance. ## Model Variants This API supports six model variants: | Model | ID | Description | |-------|-----|-------------| | **Seedance 2.0 Text to Video** | `seedance-v2.0-text-to-video` | High-quality text-to-video generation | | **Seedance 2.0 Image to Video** | `seedance-v2.0-image-to-video` | Image animation with motion control | | **Seedance 2.0 Reference to Video** | `seedance-v2.0-reference-to-video` | Video generation with reference video guidance | | **Seedance 2.0 Fast Text to Video** | `seedance-v2.0-fast-text-to-video` | Faster text-to-video generation | | **Seedance 2.0 Fast Image to Video** | `seedance-v2.0-fast-image-to-video` | Faster image-to-video generation | | **Seedance 2.0 Fast Reference to Video** | `seedance-v2.0-fast-reference-to-video` | Faster reference-guided video generation | ## Quick Comparison | Feature | Standard Models | Fast Models | |---------|-----------------|-------------| | Quality | Higher quality | Optimized for speed | | Processing Time | 3-8 minutes | 1-4 minutes | | Duration Range | 4-15 seconds | 4-15 seconds | | Resolution Options | 480p, 720p, 1080p, 4k | 480p, 720p | | Reference Media | Images, videos, and audios for Reference-to-Video | Images, videos, and audios for Fast Reference-to-Video | ### Supported Aspect Ratios `21:9`, `16:9`, `9:16`, `1:1`, `4:3`, `3:4` ### Resolution Options | Resolution | Description | |------------|-------------| | `480p` | Standard definition, faster processing | | `720p` | High definition, balanced quality and speed | | `1080p` | Full HD, available for all standard Seedance 2.0 models | | `4k` | Ultra HD, available for all standard Seedance 2.0 models | ## Seedance 2.0 Text to Video ### Endpoint ``` POST /api/v1/video/task ``` ### Request Parameters #### Required | Parameter | Type | Description | |-----------|------|-------------| | `model_name` | string | Must be `"seedance-v2.0-text-to-video"` | | `prompt` | string | Video generation prompt | | `duration` | integer | Video duration in whole seconds (4-15), in steps of 1 | | `resolution` | string | Output resolution: `"480p"`, `"720p"`, `"1080p"`, or `"4k"` | | `aspect_ratio` | string | Video aspect ratio: `"21:9"`, `"16:9"`, `"9:16"`, `"1:1"`, `"4:3"`, or `"3:4"` | #### Optional | Parameter | Type | Description | |-----------|------|-------------| | `sound` | boolean | Whether to generate sound. Defaults to `true`; does not affect pricing | ### Example Request ```javascript const response = await fetch('https://api.flaq.ai/api/v1/video/task', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ model_name: 'seedance-v2.0-text-to-video', prompt: 'A golden retriever running through a sunlit meadow', duration: 6, resolution: '720p', aspect_ratio: '16:9' }) }); const { data } = await response.json(); const taskId = data.task_id; ``` ## Seedance 2.0 Image to Video ### Request Parameters #### Required | Parameter | Type | Description | |-----------|------|-------------| | `model_name` | string | Must be `"seedance-v2.0-image-to-video"` | | `prompt` | string | Video generation prompt | | `duration` | integer | Video duration in whole seconds (4-15), in steps of 1 | | `resolution` | string | Output resolution: `"480p"`, `"720p"`, `"1080p"`, or `"4k"` | | `aspect_ratio` | string | Video aspect ratio: `"21:9"`, `"16:9"`, `"9:16"`, `"1:1"`, `"4:3"`, or `"3:4"` | | `image_url` | string | The first frame of the video | #### Optional | Parameter | Type | Description | |-----------|------|-------------| | `image_end_url` | string | Optional ending frame image URL | | `sound` | boolean | Whether to generate sound. Defaults to `true`; does not affect pricing | ### Example Request ```javascript { model_name: 'seedance-v2.0-image-to-video', image_url: 'https://example.com/image.jpg', image_end_url: 'https://example.com/end-frame.jpg', prompt: 'Camera slowly pulls back to reveal the full landscape', duration: 6, resolution: '720p', aspect_ratio: '16:9' } ``` ## Seedance 2.0 Reference to Video ### Request Parameters #### Required | Parameter | Type | Description | |-----------|------|-------------| | `model_name` | string | Must be `"seedance-v2.0-reference-to-video"` | | `prompt` | string | Video generation prompt. Write a standard prompt without placeholders, or optionally use the @ (AT) reference feature with `<<>>`, `<<>>`, and `<<>>` to explicitly reference items from the corresponding media arrays | | `duration` | integer | Video duration in whole seconds (4-15), in steps of 1 | | `resolution` | string | Output resolution: `"480p"`, `"720p"`, `"1080p"`, or `"4k"` | | `aspect_ratio` | string | Video aspect ratio: `"21:9"`, `"16:9"`, `"9:16"`, `"1:1"`, `"4:3"`, or `"3:4"` | #### Reference Media Submit 1-9 images. Images may be omitted only when at least one reference video is provided. | Parameter | Type | Description | |-----------|------|-------------| | `images` | string[] | 1-9 reference image URLs, or an empty array when `videos` is non-empty | | `videos` | string[] | Up to 3 reference video URLs; each video must be 2-15 seconds, with a combined duration of at most 15 seconds | | `audios` | string[] | Up to 3 reference audio URLs; each audio clip must be 2-15 seconds, with a combined duration of at most 15 seconds; WAV or MP3, at most 15 MB per clip; requires at least one image or video | #### @ (AT) Reference Placeholders The @ (AT) reference feature links reference media to the prompt through numbered `<<<...>>>` placeholders. Numbering starts at `1` independently for each media type and follows the order of the corresponding array: | Placeholder | Referenced value | |-------------|------------------| | `<<>>` | `images[0]` | | `<<>>` | `images[1]` | | `<<>>` | `videos[0]` | | `<<>>` | `audios[0]` | For example, if the first image is a character reference and the second image is a scene reference, use `<<>>` for the character and `<<>>` for the scene in `prompt`. Each placeholder must point to an item that exists in its corresponding array. #### Optional | Parameter | Type | Description | |-----------|------|-------------| | `sound` | boolean | Whether to generate synchronized sound. Defaults to `true` | ### Example Request ```javascript { model_name: 'seedance-v2.0-reference-to-video', prompt: 'Use image one for the subject, video one for the movement, and audio one for the atmosphere', duration: 8, resolution: '1080p', aspect_ratio: '16:9', sound: true, images: ['https://example.com/subject-reference.jpg'], videos: ['https://example.com/motion-reference.mp4'], audios: ['https://example.com/atmosphere-reference.mp3'] } ``` ### @ (AT) Reference-to-Video Request Example ```javascript { model_name: 'seedance-v2.0-reference-to-video', prompt: 'Place the explorer from <<>> in the environment from <<>>, following the camera movement in <<>> and speaking with the reference voice from <<>>', duration: 8, resolution: '1080p', aspect_ratio: '16:9', sound: true, images: [ 'https://example.com/explorer-reference.jpg', 'https://example.com/environment-reference.jpg' ], videos: ['https://example.com/camera-movement-reference.mp4'], audios: ['https://example.com/voice-reference.mp3'] } ``` ## Fast Variants The fast variants prioritize processing speed. All Fast models support only `"480p"` and `"720p"` output. Fast Text-to-Video and Fast Image-to-Video otherwise follow their corresponding standard request shapes, while Fast Reference-to-Video uses the same reference media limits as the standard reference model. ### Example Fast Request ```javascript { model_name: 'seedance-v2.0-fast-reference-to-video', prompt: 'Use image one for the subject, follow the movement from video one, and use audio one for the atmosphere', duration: 8, resolution: '720p', aspect_ratio: '9:16', sound: true, images: ['https://example.com/subject-reference.jpg'], videos: ['https://example.com/motion-reference.mp4'], audios: ['https://example.com/atmosphere-reference.mp3'] } ``` ### @ (AT) Fast Reference-to-Video Request Example ```javascript { model_name: 'seedance-v2.0-fast-reference-to-video', prompt: 'Have the dancer from <<>> perform the movement from <<>> on the stage in <<>>, using the rhythm from <<>>', duration: 8, resolution: '720p', aspect_ratio: '9:16', sound: true, images: [ 'https://example.com/dancer-reference.jpg', 'https://example.com/stage-reference.jpg' ], videos: ['https://example.com/dance-movement-reference.mp4'], audios: ['https://example.com/rhythm-reference.mp3'] } ``` ### Seedance 2.0 Fast Reference-to-Video Parameters #### Required | Parameter | Type | Description | |-----------|------|-------------| | `model_name` | string | Must be `"seedance-v2.0-fast-reference-to-video"` | | `prompt` | string | Video generation prompt. Write a standard prompt without placeholders, or optionally use the @ (AT) reference feature with `<<>>`, `<<>>`, and `<<>>` to explicitly reference items from the corresponding media arrays | | `duration` | integer | Video duration in whole seconds (4-15), in steps of 1 | | `resolution` | string | Output resolution: `"480p"` or `"720p"` | | `aspect_ratio` | string | Video aspect ratio: `"21:9"`, `"16:9"`, `"9:16"`, `"1:1"`, `"4:3"`, or `"3:4"` | #### Reference Media | Parameter | Type | Description | |-----------|------|-------------| | `images` | string[] | 1-9 reference image URLs, or an empty array when `videos` is non-empty | | `videos` | string[] | Up to 3 reference video URLs; each video must be 2-15 seconds, with a combined duration of at most 15 seconds | | `audios` | string[] | Up to 3 reference audio URLs; each audio clip must be 2-15 seconds, with a combined duration of at most 15 seconds; WAV or MP3, at most 15 MB per clip; requires at least one image or video | The same 1-based placeholder convention described above applies to the Fast Reference-to-Video model. #### Optional | Parameter | Type | Description | |-----------|------|-------------| | `sound` | boolean | Whether to generate synchronized sound. Defaults to `true` | ## Media Limits These limits apply to first-frame images, last-frame images, and reference media for the models on this page. | Media | Formats | Limits | |-------|---------|--------| | Images | JPEG, PNG, WEBP, BMP, TIFF, GIF, HEIC, HEIF | Each image must be smaller than 30 MB; width and height must each be 300-6000 px; width-to-height ratio must be 0.4-2.5 | | Videos | MP4, MOV | At most 200 MB each; width and height must each be 300-6000 px; width-to-height ratio must be 0.4-2.5; frame rate must be 24-60 FPS | | Audio | WAV, MP3 | At most 15 MB each | | Request body | — | At most 64 MB | Reference audio and reference video each have a separate combined duration limit of 15 seconds. Their counts are independent: up to 9 images, 3 videos, and 3 audio clips. Adding videos does not reduce the image allowance. All models default to `720p`, but `resolution` must still be supplied. The sound switch defaults to `true`; neither this switch nor reference audio changes the price. Reference-to-Video requires at least one image or video; audio-only requests are not supported. Uploading reference videos doubles the generation charge, regardless of their number or duration. ## Response Format ### Initial Response All models return a `task_id` for polling: ```json { "code": 0, "message": "success", "data": { "task_id": "{task_id}", "response_url": "https://api.flaq.ai/api/v1/video/{task_id}", "task_status": "submitted" } } ``` ### Polling Response Poll `GET /api/v1/video/{taskId}` to check status: ```json { "code": 0, "message": "success", "data": { "task_id": "{task_id}", "response_url": "https://api.flaq.ai/api/v1/video/{task_id}", "task_status": "succeed", "task_status_msg": null, "task_result": { "credit": 0.2, "videos": [ { "url": "https://example.com/generated-video.mp4" } ] } } } ``` ### Status Values - `submitted`: Task accepted and waiting to be processed - `processing`: Video generation in progress - `succeed`: Video generation completed - `failed`: Video generation failed ## Processing Time **Standard Models**: 3-8 minutes depending on duration and resolution. **Fast Models**: 1-4 minutes for most configurations. Poll every 5-10 seconds to check status. ## Best Practices 1. **Choose the Right Variant**: Use fast models for iteration, standard models for final output 2. **Describe Motion Clearly**: Include specific movement descriptions in prompts 3. **Resolution Selection**: All standard Seedance 2.0 models support `480p`, `720p`, `1080p`, and `4k`; all Fast models support only `480p` and `720p` 4. **Reference Ordering**: Keep `images`, `videos`, and `audios` in intentional order and refer to them consistently in the prompt 5. **Video-Only Requests**: Use an empty `images` array only when at least one reference video is provided 6. **Media Duration**: Keep every reference audio and video between 2 and 15 seconds 7. **Audio Enhancement**: Omit `sound` to use its default value of `true`, or set it to `false` to disable generated sound