Skip to main content
POST
/
v1
/
video
/
image2video
Image To Video
curl --request POST \
  --url https://api.domoai.com/v1/video/image2video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "1girl, smile",
  "model": "animate-2.4-faster",
  "image": {
    "bytes_base64_encoded": "/9j/4AAQSkZJRgABAQAAAQABAAD/2w..."
  },
  "callback_url": "https://example.com/callback",
  "seconds": 5
}
'
{
  "data": {
    "task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "code": 0
}

Authorizations

Authorization
string
header
required

API Key Bearer Token

Body

application/json
model
enum<string>
required
Available options:
animate-2.4-faster,
animate-2.4-advanced
image
ImageInput · object
required
seconds
integer
required

Output video duration in seconds.

Required range: 1 <= x <= 10
callback_url
string<uri> | null

Callback notification URL for task results. If configured, the server will actively send notifications when the task status changes. The message schema of the notification can be found in the Callback Protocol section.

Required string length: 1 - 2083
Example:

"https://example.com/callback"

prompt
string
default:""
Maximum string length: 2000
aspect_ratio
enum<string> | null

Output video aspect ratio. If null or not provided, the system will automatically detect and use the closest matching ratio based on the input image.

Available options:
16:9,
9:16,
1:1,
4:3,
3:4
Example:

"16:9"

Response

Successful Response

data
TaskOut · object
required
code
integer
default:0