curl --request POST \
--url https://api.aihubmax.com/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2.5-image-to-video",
"prompt": "The camera slowly pushes in as the ball continues rolling to the right.",
"image_url": "https://picsum.photos/id/237/512/512.jpg",
"resolution": "720p",
"aspect_ratio": "9:16",
"duration": 5
}
'import requests
url = "https://api.aihubmax.com/v1/videos/generations"
payload = {
"model": "seedance-2.5-image-to-video",
"prompt": "The camera slowly pushes in as the ball continues rolling to the right.",
"image_url": "https://picsum.photos/id/237/512/512.jpg",
"resolution": "720p",
"aspect_ratio": "9:16",
"duration": 5
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'seedance-2.5-image-to-video',
prompt: 'The camera slowly pushes in as the ball continues rolling to the right.',
image_url: 'https://picsum.photos/id/237/512/512.jpg',
resolution: '720p',
aspect_ratio: '9:16',
duration: 5
})
};
fetch('https://api.aihubmax.com/v1/videos/generations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aihubmax.com/v1/videos/generations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'seedance-2.5-image-to-video',
'prompt' => 'The camera slowly pushes in as the ball continues rolling to the right.',
'image_url' => 'https://picsum.photos/id/237/512/512.jpg',
'resolution' => '720p',
'aspect_ratio' => '9:16',
'duration' => 5
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aihubmax.com/v1/videos/generations"
payload := strings.NewReader("{\n \"model\": \"seedance-2.5-image-to-video\",\n \"prompt\": \"The camera slowly pushes in as the ball continues rolling to the right.\",\n \"image_url\": \"https://picsum.photos/id/237/512/512.jpg\",\n \"resolution\": \"720p\",\n \"aspect_ratio\": \"9:16\",\n \"duration\": 5\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aihubmax.com/v1/videos/generations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"seedance-2.5-image-to-video\",\n \"prompt\": \"The camera slowly pushes in as the ball continues rolling to the right.\",\n \"image_url\": \"https://picsum.photos/id/237/512/512.jpg\",\n \"resolution\": \"720p\",\n \"aspect_ratio\": \"9:16\",\n \"duration\": 5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aihubmax.com/v1/videos/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"seedance-2.5-image-to-video\",\n \"prompt\": \"The camera slowly pushes in as the ball continues rolling to the right.\",\n \"image_url\": \"https://picsum.photos/id/237/512/512.jpg\",\n \"resolution\": \"720p\",\n \"aspect_ratio\": \"9:16\",\n \"duration\": 5\n}"
response = http.request(request)
puts response.read_body{
"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.5 Image to Video
- Seedance 2.5 image-to-video model. Generate video from a first-frame image and a text prompt.
- Supports
480p,720p, and1080presolutions and integer durations from4to30seconds. image_urlmust be a publicly accessible image URL.- Processing is asynchronous. Use the returned task ID to query task status.
results[i].urlis the unified video URL. Original task results and video metadata are preserved in fields such asresults[i].result,video_url,videoUrls,resultUrls, andoutputs. See special task result formats.
curl --request POST \
--url https://api.aihubmax.com/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2.5-image-to-video",
"prompt": "The camera slowly pushes in as the ball continues rolling to the right.",
"image_url": "https://picsum.photos/id/237/512/512.jpg",
"resolution": "720p",
"aspect_ratio": "9:16",
"duration": 5
}
'import requests
url = "https://api.aihubmax.com/v1/videos/generations"
payload = {
"model": "seedance-2.5-image-to-video",
"prompt": "The camera slowly pushes in as the ball continues rolling to the right.",
"image_url": "https://picsum.photos/id/237/512/512.jpg",
"resolution": "720p",
"aspect_ratio": "9:16",
"duration": 5
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'seedance-2.5-image-to-video',
prompt: 'The camera slowly pushes in as the ball continues rolling to the right.',
image_url: 'https://picsum.photos/id/237/512/512.jpg',
resolution: '720p',
aspect_ratio: '9:16',
duration: 5
})
};
fetch('https://api.aihubmax.com/v1/videos/generations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aihubmax.com/v1/videos/generations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'seedance-2.5-image-to-video',
'prompt' => 'The camera slowly pushes in as the ball continues rolling to the right.',
'image_url' => 'https://picsum.photos/id/237/512/512.jpg',
'resolution' => '720p',
'aspect_ratio' => '9:16',
'duration' => 5
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aihubmax.com/v1/videos/generations"
payload := strings.NewReader("{\n \"model\": \"seedance-2.5-image-to-video\",\n \"prompt\": \"The camera slowly pushes in as the ball continues rolling to the right.\",\n \"image_url\": \"https://picsum.photos/id/237/512/512.jpg\",\n \"resolution\": \"720p\",\n \"aspect_ratio\": \"9:16\",\n \"duration\": 5\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aihubmax.com/v1/videos/generations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"seedance-2.5-image-to-video\",\n \"prompt\": \"The camera slowly pushes in as the ball continues rolling to the right.\",\n \"image_url\": \"https://picsum.photos/id/237/512/512.jpg\",\n \"resolution\": \"720p\",\n \"aspect_ratio\": \"9:16\",\n \"duration\": 5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aihubmax.com/v1/videos/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"seedance-2.5-image-to-video\",\n \"prompt\": \"The camera slowly pushes in as the ball continues rolling to the right.\",\n \"image_url\": \"https://picsum.photos/id/237/512/512.jpg\",\n \"resolution\": \"720p\",\n \"aspect_ratio\": \"9:16\",\n \"duration\": 5\n}"
response = http.request(request)
puts response.read_body{
"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 endpoints require Bearer Token authentication
Add the following request header:
Authorization: Bearer YOUR_API_KEY
Body
seedance-2.5-image-to-video: Generate video from a first-frame image and a prompt, with resolution and duration parameters.
"seedance-2.5-image-to-video"
Describe the video you want to generate.
1"A static shot of a small blue ball slowly rolling from left to right on a white table."
Publicly accessible URL of the first-frame image.
"https://picsum.photos/id/237/512/512.jpg"
Output video resolution. The system uses this value to select a model version that can handle the request.
"480p"
Output video aspect ratio.
"16:9"
Output video duration in seconds. Available durations for each model version are further checked against the current capability catalog.
4 <= x <= 304
Response
Task created successfully
Task creation timestamp
1757165031
Task ID
"task-unified-1757165031-uyujaw3d"
Name of the model used
Specific task object 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"