Create embeddings
This quickstart guide provides a simplified introduction to generating text from video using the TwelveLabs Video Understanding Platform. It includes:
- A basic working example
- Minimal implementation details
- Core parameters for common use cases
For a comprehensive guide, see the Create embeddings section.
Prerequisites
-
To use the platform, you need an API key:
-
Depending on the programming language you are using, install the TwelveLabs SDK by entering one of the following commands:
-
Ensure your media files meet the following requirements:
Starter code
You can copy and paste the code below to create embeddings. Replace the placeholders surrounded by <> with your values.
Video embeddings
Text embeddigs
Image embeddings
Audio embeddings
Step-by-step guide
Video embeddings
Text embeddings
Image embeddings
Audio embeddings
Import the SDK and initialize the client
Create a client instance to interact with the TwelveLabs Video Understanding Platform.
Upload videos
To perform any downstream tasks, you must first upload your videos, and the platform must finish processing them.
Monitor the status
The platform requires some time to process videos. Check the status of the video embedding task until it’s completed.