embed
Create embeddings for text, image, and audio
Changed onThis method creates embeddings for text, image, and audio content.
Ensure your media files meet the following requirements:
- Audio files.
- Images.
Parameters for embeddings:
- Common parameters:
- model_name: The video understanding model you want to use. Example: "marengo3.0".
- Text embeddings:
- text: Text for which to create an embedding.
- Image embeddings:
Provide one of the following:
- image_url: Publicly accessible URL of your image file.
- image_file: Local image file.
- Audio embeddings:
Provide one of the following:
- audio_url: Publicly accessible URL of your audio file.
- audio_file: Local audio file.
post/embed
Request
- Base URL: https://api.twelvelabs.io/v1.3
- URL: https://api.twelvelabs.io/v1.3/embed
- Auth: API key in header x-api-key
Request body multipart/form-data
Response
A text embedding 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 withembed_create
- info