This API now generates videos with our New AI Studio backend.
Request Body
Field
Type
Description
caption
bool (optional)
Whether to add a caption to the video. Default is False. Only text input supports caption
title
str (optional)
Title for the video.
callback_id
str (optional)
A custom ID for callback purposes.
video_inputs
List of video input settings (scenes). Must contain between 1 to 50 items.
dimension
The dimensions of the output video.
callback_url
str(optional)
An optional callback url. This is useful if your callback endpoint is dynamic and each video have it's separate callback url.
Using webhook endpoint is still recommended because those offers more customizations on the callback endpoint such as secrets, and event filtering, etc
VideoInput
Field
Type
Description
character
AvatarSettings or TalkingPhotoSettings (optional)
Character settings.
voice
TextVoiceSettings or AudioVoiceSettings or SilenceVoiceSettings
Voice settings.
background
ColorBackground or ImageBackground or VideoBackground (optional)
Background settings.
Character Settings
AvatarSettings
Field
Type
Description
type
Literal["avatar"]
Indicates that this is an avatar character setting.
avatar_id
str
Avatar ID.
scale
float
Avatar scale, value between 0 and 2.0. Default is 1.0.