dreamina-seedance-2-0-mini-260615 through MixRoute using the endpoint shown below.
Key capabilities
- Text-to-video - Generate a video from a text prompt
- Image-to-video - Use an image as a first frame or reference
- Asynchronous workflow - Submit a task, then poll for the result
- Video reference - Generate or edit video from a reference clip
- Audio reference - Combine image and audio inputs
Output specifications
| Property | Value |
|---|---|
| Resolution | 480p, 720p |
| Aspect ratio | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive |
| Duration | 4-15 s, or -1 |
| Synchronized audio | Supported |
| Format | mp4 |
| Frame rate | 24 fps |
Workflow
1. POST /v1/video/generations -> task_id
2. GET /v1/video/generations/{task_id} -> status
3. When the task succeeds -> read the video URL
Examples
Text-to-video
- cURL
- Python
curl "https://api.mixroute.ai/v1/video/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dreamina-seedance-2-0-mini-260615",
"prompt": "A red square gently pulses on a clean white background",
"asset": false,
"metadata": {
"duration": 4,
"resolution": "480p",
"ratio": "1:1",
"watermark": false,
"generate_audio": false
}
}'
import requests
response = requests.post(
"https://api.mixroute.ai/v1/video/generations",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={'model': 'dreamina-seedance-2-0-mini-260615',
'prompt': 'A red square gently pulses on a clean white background',
'asset': False,
'metadata': {'duration': 4,
'resolution': '480p',
'ratio': '1:1',
'watermark': False,
'generate_audio': False}},
)
print(response.json())
Image-to-video
curl "https://api.mixroute.ai/v1/video/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dreamina-seedance-2-0-mini-260615",
"prompt": "The subject turns toward the camera with a gentle motion",
"asset": true,
"metadata": {
"duration": 4,
"resolution": "480p",
"ratio": "1:1",
"watermark": false,
"generate_audio": false,
"content": [
{
"type": "text",
"text": "The subject turns toward the camera with a gentle motion"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/first-frame.png"
},
"role": "first_frame"
}
]
}
}'
Video-to-video
curl "https://api.mixroute.ai/v1/video/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dreamina-seedance-2-0-mini-260615",
"prompt": "Make the reference video slightly warmer while preserving camera motion",
"asset": true,
"metadata": {
"duration": 4,
"resolution": "480p",
"ratio": "1:1",
"watermark": false,
"generate_audio": false,
"content": [
{
"type": "text",
"text": "Make the reference video slightly warmer while preserving camera motion"
},
{
"type": "video_url",
"video_url": {
"url": "https://example.com/reference.mp4"
},
"role": "reference_video"
}
]
}
}'
Audio + image-to-video
curl "https://api.mixroute.ai/v1/video/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dreamina-seedance-2-0-mini-260615",
"prompt": "Make the shape pulse in time with the reference audio",
"asset": true,
"metadata": {
"duration": 4,
"resolution": "480p",
"ratio": "1:1",
"watermark": false,
"generate_audio": true,
"content": [
{
"type": "text",
"text": "Make the shape pulse in time with the reference audio"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/reference.png"
},
"role": "reference_image"
},
{
"type": "audio_url",
"audio_url": {
"url": "https://example.com/reference.mp3"
},
"role": "reference_audio"
}
]
}
}'
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Must be dreamina-seedance-2-0-mini-260615. |
prompt | string | Yes | Video generation instruction. |
asset | boolean | Yes | Set true when metadata.content includes image, video, or audio references; false for text-only input. |
metadata | object | Yes | Contains all Seedance generation controls and reference content. |
metadata.content | array | No | Text, image_url, video_url, and audio_url content items. |
metadata.duration | integer | No | Video duration in seconds. |
metadata.resolution | string | No | Output resolution. |
metadata.ratio | string | No | Output aspect ratio. |
metadata.generate_audio | boolean | No | Generate synchronized audio when the model supports it. |
metadata.watermark | boolean | No | Add an AI-generated watermark. |
metadata.content[].role | string | No | first_frame, last_frame, reference_image, reference_video, or reference_audio. |
Input modes
| Mode | Inputs |
|---|---|
| Text-to-video | text |
| Image-to-video | text + image_url |
| Video-to-video | text + video_url |
| Audio + image-to-video | text + image_url + audio_url |