v3
latestOpenAPI 3.1.02026-07-3197486526.1 KBembed > v2 > tasks
Create an async embedding task
This endpoint creates embeddings for audio and video content asynchronously.
When to use this endpoint:
- Process audio or video files longer than 10 minutes
- Process files up to 4 hours in duration
Audio:
- Minimum duration: 4 seconds
- Maximum duration: 4 hours
- Maximum file size: 4 GB
- Formats: WAV (uncompressed), MP3 (lossy), FLAC (lossless) </Accordion>
Creating embeddings asynchronously requires three steps:
- Create a task using this endpoint. The platform returns a task ID.
- 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.
post/embed-v2/tasks
Headers
x-api-keystring required
Your API key.
<Note title="Note"> You can find your API key on the <a href="https://playground.twelvelabs.io/dashboard/api-keys" target="_blank">API Keys</a> page. </Note>Request body
Response
An embedding task has successfully been created.