Twelve Labs API guide

twelvelabs.io

Index your videos with Twelve Labs, generate editing briefs with chapters and highlights, and cut local clips from recommended timestamps.

Actions and inputs

upload-video

Upload or register a video for indexing and optionally wait for indexing to finish.

Inputs Index ID, local video file or public video URL, optional wait

video-brief

Generate an editing brief with chapters, highlights, and recommended cuts.

Inputs Video ID, output format, optional output file

clips

Cut clips from a local video using the recommended timestamps in a JSON brief.

Inputs Local video file, JSON brief, output directory

embed

Create a video embedding task and optionally wait for the result.

Inputs Local video file or public video URL, model, optional wait

Twelve Labs video index

Create

Create a video index in your Twelve Labs account.

Inputs Index name, model, model options

Read

View your video index and its model configuration.

Inputs Index ID

Update

Rename your video index.

Inputs Index ID, new name

Delete

Delete your video index and its indexed videos.

Inputs Index ID