POST
/
embed
/
{modality}
curl --location 'https://api.mixpeek.com/embed/{modality}' \
--header 'Authorization: Bearer API_KEY' \
--header 'Content-Type: application/json' \
--data '{
    "input": "s3://waving_boy.mp4",
    "modality": "video",
    "model": "mixpeek/vuse-generic-v1",
    "input_type": "url"
}'

The embed method allows you to generate embeddings from various modalities. Depending on the modality, different techniques can be applied:

  • image: feature extraction, dimensionality reduction, etc.
  • audio: spectral analysis, feature extraction, etc.
  • video: frame analysis, feature extraction, etc.
  • text: vectorization, semantic analysis, etc.

Request

model
string
required

The model to use for embedding

url
string

Remote url of the file to be embedded

content
boolean

The direct textual or base64-encoded content of the item for embedding.