curl --request POST \
--url https://api.aihubmax.com/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2.0-image-to-video",
"prompt": "Camera slowly pushes in, character turns and smiles",
"image_url": "https://example.com/start.png",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5
}
'{
"created": 1757165031,
"id": "task-unified-1757165031-uyujaw3d",
"model": "<string>",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 45
},
"type": "video"
}{
"error": {
"message": "Invalid request format",
"type": "invalid_request_error"
}
}{
"error": {
"message": "Invalid API key",
"type": "authentication_error"
}
}{
"error": {
"message": "Insufficient account balance",
"type": "insufficient_quota"
}
}{
"error": {
"message": "Parameter validation failed",
"type": "validation_error"
}
}{
"error": {
"message": "Rate limit exceeded",
"type": "rate_limit_error"
}
}{
"error": {
"message": "Internal server error",
"type": "server_error"
}
}{
"error": {
"message": "Service temporarily unavailable, please try again later",
"type": "service_unavailable"
}
}Seedance 2.0 Image to Video
- Seedance 2.0 image-to-video model, generate videos from a start frame image (optional end frame)
- The standard version supports
480p/720p/1080p; Fast supports only480p/720p - Supports durations from 4 to 15 seconds and multiple aspect ratios
- Supports synchronized audio generation
- Async processing mode, use the returned task ID to query task status
- Generated video links are valid for 24 hours, please save them promptly
curl --request POST \
--url https://api.aihubmax.com/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2.0-image-to-video",
"prompt": "Camera slowly pushes in, character turns and smiles",
"image_url": "https://example.com/start.png",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5
}
'{
"created": 1757165031,
"id": "task-unified-1757165031-uyujaw3d",
"model": "<string>",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 45
},
"type": "video"
}{
"error": {
"message": "Invalid request format",
"type": "invalid_request_error"
}
}{
"error": {
"message": "Invalid API key",
"type": "authentication_error"
}
}{
"error": {
"message": "Insufficient account balance",
"type": "insufficient_quota"
}
}{
"error": {
"message": "Parameter validation failed",
"type": "validation_error"
}
}{
"error": {
"message": "Rate limit exceeded",
"type": "rate_limit_error"
}
}{
"error": {
"message": "Internal server error",
"type": "server_error"
}
}{
"error": {
"message": "Service temporarily unavailable, please try again later",
"type": "service_unavailable"
}
}Authorizations
All APIs require Bearer Token authentication
Add to request header:
Authorization: Bearer YOUR_API_KEY
Body
Seedance 2.0 image-to-video model variant
seedance-2.0-image-to-video— Standardseedance-2.0-fast-image-to-video— Fast
"seedance-2.0-image-to-video"
"seedance-2.0-fast-image-to-video"
Text prompt describing the desired video content.
Notes:
- Supports Chinese and English
- Maximum 5000 characters
1 - 5000"A corgi running on a rain-soaked street, cinematic shot"
Public URL of the start frame image
Notes:
- Supports JPEG / PNG / WebP, max 30MB
- Used as the starting frame for video generation
"https://example.com/start.png"
Output video resolution. The standard model supports 480p / 720p / 1080p; Fast models support only 480p / 720p.
"480p"
"720p"
"1080p"
Output video aspect ratio
Options:
16:9,4:3,1:1,3:4,9:16,21:9adaptive— Automatically selected by model (default)
"adaptive"
Output video duration in seconds. Supports integers from 4 to 15, or -1 to let the model decide. Default 5.
-1
Whether to generate synchronized audio. Default true.
true
Random seed. -1 means auto-generated by model; a fixed integer improves result reproducibility.
-1
Public URL of the end frame image
Notes:
- When provided, the video will transition from the start frame to the end frame
- Supports JPEG / PNG / WebP, max 30MB
- If not provided, the model generates freely based on the prompt
"https://example.com/end.png"
Response
Task created successfully
Task creation timestamp
1757165031
Task ID
"task-unified-1757165031-uyujaw3d"
Actual model name used
Specific task type
video.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Asynchronous task information
Show child attributes
Show child attributes
Task output type
video "video"