Seedance 2 Fast
Overview
Seedance 2 Fast is ByteDance’s speed-optimized video generation model that supports both text-to-video and image-to-video generation on Pixwith API.
Test API KEY: key_00000000000000000000000000000000Endpoints
1. Create Task
Request
POST https://api.pixwithapi.online/api/task/createHeaders
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
| Api-Key | {API_KEY} | Yes |
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | The input prompt (e.g., “A cat walking in the garden”) |
| reference_urls | object | Conditional | Reference media for Seedance 2 Fast. Required when using reference media. Omit for pure text-to-video mode. |
| reference_urls.reference_images | array | Conditional | Reference image URLs. Required when reference_urls is provided. Supports up to 9 images. |
| reference_urls.reference_audios | array | No | Reference audio URLs. Supports up to 3 audios. Each audio must be no longer than 15 seconds. |
| model_id | string | Yes | 2-48 |
| options | object | Yes | Configuration options for the task |
| options.prompt_optimization | boolean | Yes | If true, all prompt words will be automatically translated into English. |
| options.aspect_ratio | string | Yes | Aspect ratio of the output. Valid values: '16:9', '4:3', '1:1', '3:4', '9:16', '21:9'. Default: '16:9'. |
| options.resolution | string | Yes | Resolution of the output. Valid values: '480p', '720p', '1080p', '4K'. Default: '480p'. |
| options.duration | int | Yes | Duration in seconds. Valid values: 5, 10, 15. Default: 5. |
| options.enable_web_search | boolean | No | Whether to enable web search for generation. Default: false. |
| options.generate_audio | boolean | No | Whether to generate audio with the video. Default: true. |
Example Request - Text-to-Video
{
"prompt": "A cat walking in the garden",
"model_id": "2-48",
"options": {
"prompt_optimization": true,
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 10,
"enable_web_search": false,
"generate_audio": false
}
}Example Request - With Reference URLs
{
"prompt": "Use the reference media to create a smooth transition with fast motion pacing",
"reference_urls": {
"reference_images": [
"https://cdn.pixwithapi.online/images/example_1.jpeg",
"https://cdn.pixwithapi.online/images/example_2.jpeg",
"https://cdn.pixwithapi.online/images/example_3.jpeg",
"https://cdn.pixwithapi.online/images/example_4.jpeg"
],
"reference_audios": [
"https://cdn.pixwithapi.online/audios/example.mp3"
],
"reference_videos": []
},
"model_id": "2-48",
"options": {
"prompt_optimization": true,
"aspect_ratio": "16:9",
"resolution": "480p",
"duration": 5,
"enable_web_search": false,
"generate_audio": true
}
}Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | int | 1=success, 0=error |
| message | string | Success and failure messages |
| data | object | |
| data.task_id | string | |
| data.estimated_time | int | Estimated time in seconds |
Response
{
"code": 1,
"message": "success",
"data": {
"task_id": "d425ab4dc256f0ebaa84862b9cea8a3d",
"estimated_time": 120
}
}Last updated on