This method creates a new video embedding task that uploads a video to the platform and creates one or multiple video embeddings.
Ensure your video meets the requirements in the Prerequisites section of the Create video embeddings page.
Upload options:
video_file
parametervideo_url
parameter.Specify at least one option. If both are provided, video_url
takes precedence.
The name of the engine you want to use. The following engines are available:
Marengo-retrieval-2.6
Specify this parameter to upload a video from a publicly accessible URL.
The start offset in seconds from the beginning of the video where processing should begin. Specifying 0 means starting from the beginning of the video.
Default: 0 Min: 0 Max: Duration of the video minus 6
The end offset in seconds from the beginning of the video where processing should stop.
Ensure the following when you specify this parameter:
Min: video_start_offset + 6 Max: Duration of the video file
The desired duration in seconds for each clip for which the platform generates an embedding. Ensure that the clip length does not exceed the interval between the start and end offsets.
Default: 6 Min: 2 Max: 10
Defines the scope of video embedding generation. Valid values are the following:
clip
: Creates embeddings for each video segment of video_clip_length
seconds, from video_start_offset_sec
to video_end_offset_sec
.clip
and video
: Creates embeddings for video segments and the entire video.To create embeddings for segments and the entire video in the same request, include this parameter twice as shown below:
Default: clip
A video embedding task has successfully been created.