POST
/
v2
/
videos

Authorizations

x-api-key
string
headerrequired

Body

application/json
script
string
required

A text script that will be used to generate the audio in the video.

replica_id
string
required

A unique identifier for the replica that will be used to generate the video.

video_name
string

A name for the video.

background_url
string

A link to a website. This will be used as the background for the video. The website must be publicly accessible and properly formed.

background_source_url
string

A direct link to a video that is publicly accessible via a storage location such as an S3 bucket. This will be used as the background for the video. The video must be publicly accessible.

callback_url
string

A url that will receive a callback on completion of video generation or on error.

Response

200 - application/json
video_id
string

A unique identifier for the video.

video_name
string

The name of the video.

status
string

The status of the video. Possible values: queued, generating, ready, deleted, error.

hosted_url
string

A direct link to view your video once generation has completed, hosted by Tavus.

created_at
string

The date and time the video was created.