Create an async embedding task
Changed onThis method creates embeddings for audio, video, images, and documents asynchronously.
Use this method to embed content at scale, such as long files or the media files you want to make searchable. For a query, or for results you need in the same request, use the POST method of the /embed-v2 endpoint instead.
The content this method accepts depends on the model. Both models embed audio and video. Marengo 3.5 also embeds images and documents: PDF, plain text, and Markdown files. For the formats, resolutions, file sizes, and duration limits each model accepts, see the input requirements for Marengo 3.5 or Marengo 3.0.
Creating embeddings asynchronously requires three steps:
- Create a task using this method. The platform returns a task identifier.
- Poll for the status of the task using the GET method of the /embed-v2/tasks/{task_id} endpoint. Wait until the status is ready.
- Retrieve the embeddings from the response when the status is ready using the GET method of the /embed-v2/tasks/{task_id} endpoint.
Request
- Base URL: https://api.twelvelabs.io/v1.3
- URL: https://api.twelvelabs.io/v1.3/embed-v2/tasks
- Auth: API key in header x-api-key
Request body
Response
An embedding task has successfully been created.
Changes
- warning
added the new
chunkenum value to the///response property for the response status - info
added the new optional request property
/ - info
added the new optional request property
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
to the response with the status
- warning
- warning
deleted the
headerrequest parameterx-api-key - info
the endpoint scheme security
x-api-keywas added to the API
- warning