Seedance 2 Mini
Overview
Seedance 2 Mini is ByteDance’s lightweight video generation model. It supports text-to-video and image-to-video generation with lower credit costs than Seedance 2.
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”) |
| image_urls | array | Conditional | Reference image URLs for image-to-video mode. Omit for pure text-to-video mode. Provide 1 image for first-frame video generation, or more than 1 image for reference-image video generation. Supports up to 9 images. |
| model_id | string | Yes | 2-77. |
| 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: 'Auto', '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'. Default: '480p'. |
| options.duration | int | Yes | Duration in seconds. Valid values: 5, 10, 15. Default: 5. |
Example Request - Text-to-Video
{
"prompt": "A cat walking in the garden",
"model_id": "2-77",
"options": {
"prompt_optimization": true,
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 10
}
}Example Request - Image-to-Video
{
"prompt": "Animate this character with smooth cinematic camera motion",
"image_urls": [
"https://cdn.pixwithapi.online/images/example_1.jpeg"
],
"model_id": "2-77",
"options": {
"prompt_optimization": true,
"aspect_ratio": "16:9",
"resolution": "480p",
"duration": 5
}
}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": 150
}
}Last updated on