seedance-1-0-pro-250528 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
Output specifications
| Property | Value |
|---|---|
| Resolution | 480p, 720p, 1080p |
| Aspect ratio | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive |
| Duration | 2-12 s |
| Synchronized audio | Not generated |
| 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": "seedance-1-0-pro-250528",
"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': 'seedance-1-0-pro-250528',
'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": "seedance-1-0-pro-250528",
"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"
}
]
}
}'
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Must be seedance-1-0-pro-250528. |
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 |