tasks
Create a video indexing task
Changed on<Info>This method will be removed in a future version. New implementations should use direct or multipart uploads followed by separate indexing.</Info>
This method creates a video indexing task that uploads and indexes a video in a single operation.
<Note title="Adding videos to existing indexes"> You can no longer add videos to an index that has only Pegasus 1.2 enabled. When you add videos to an index that has both Marengo and Pegasus 1.2 enabled, the platform indexes them with Marengo only. </Note>Upload options:
- Local file: Use the video_file parameter.
- Publicly accessible URL: Use the video_url parameter.
Your videos must meet requirements based on your workflow:
- Search: Marengo requirements.
- Video analysis: Pegasus requirements.
- If you want to both search and analyze your videos, the most restrictive requirements apply.
- This method allows you to upload files up to 2 GB in size. To upload larger files, use the Multipart Upload API
Indexes have limits on video hours and video count. For details, see the Video hours and video count limits section.
<Note title="Note"> This endpoint is rate-limited. For details, see the [Rate limits](/v1.3/docs/get-started/rate-limits) page. </Note>post/tasks
Request
- Base URL: https://api.twelvelabs.io/v1.3
- URL: https://api.twelvelabs.io/v1.3/tasks
- Auth: API key in header x-api-key
Request body multipart/form-data
Response
A video indexing task has successfully been created.
Changes
- warning
deleted the
headerrequest parameterx-api-key - info
the endpoint scheme security
x-api-keywas added to the API
- warning
- info
api operation id
createremoved and replaced withtasks_create
- info