Videos
Text-to-video
POST /v1/videos/text-to-video
Request body json
-
prompt
stringrequiredA text description of your desired video. The maximum character length is 4000 characters.
-
duration
integeroptionalNumber between 1-4 for duration of your video in seconds.
-
motion_strength
integeroptionalNumber between 1-5 for amount of motion in your video.
Returns
{
"success": true,
"generation_id": "[GENERATION ID]"
}
Image-to-video
POST /v1/videos/image-to-video
Request body json
-
image_url
stringrequiredA publicly accessible URL to the image you would like to create a video from.
-
duration
integeroptionalNumber between 1-4 for duration of your video in seconds.
-
motion_strength
integeroptionalNumber between 1-5 for amount of motion in your video.
Returns
{
"success": true,
"generation_id": "[GENERATION ID]"
}
Get Generation by ID
GET /v1/generations/[id]
Returns
{
"success": true,
"generation": {
"org_id": "[ORGANIZATION ID]",
"created_at": "[CREATION DATE]",
"type": "[TYPE]",
"params": {
},
"status": "[STATUS <in_progress|complete>]",
"output": {
"video_url": "[VIDEO URL]"
}
}
}