Direct uploads
Upload videos, images, and audio files to the TwelveLabs platform. Direct uploads are processed asynchronously - you initiate the upload and monitor its status until the asset is ready. This method creates an asset that you can use in different workflows.
Workflow
Upload your file using the POST method of the /assets endpoint. You receive the asset ID in the response.
Monitor the indexing status using the GET method of the /indexes/{index-id}/indexed-assets/{indexed-asset-id} endpoint until it’s ready.
What you do next depends on your use case:
- For creating embeddings (videos, audio, images): Use the asset ID with the Embed API v2.
- For entity search (images): Use the asset ID to create entities.
- For search and analysis (videos): Index your asset using the asset ID.