Skip to main content
POST
Generate Video Embedding
Product: Visual Intelligence — Embeddings Use case: Generate vector embeddings for image, video, or text inputs for semantic search and similarity tasks Host: https://mavi-backend.memories.ai/serve/api/v2 Auth: Authorization: sk-mavi-... (no Bearer prefix)
This endpoint generates a single vector embedding representing the entire video content. The video must be previously uploaded and referenced by its asset ID.
Pricing:
  • $0.002/second of video

Code Examples

Request Body

Supported Models:
  • multimodalembedding@001 - Google’s multimodal embedding model supporting video

Response

Returns a single embedding vector representing the entire video.

Response Parameters

Notes

  • Video embeddings are returned synchronously in the response
  • The embedding represents the entire video content as a single vector
  • Videos must be uploaded first using the /upload endpoint to obtain an asset_id
  • multimodalembedding@001 produces 1408-dimensional vectors
  • Supports various video formats: MP4, MOV, AVI, WebM, MKV, etc.
  • Processing time depends on video length and complexity
  • Use video embeddings for:
    • Video similarity search
    • Content-based video retrieval
    • Video classification and categorization
    • Duplicate video detection

Authorizations

Authorization
string
header
required

Body

application/json
asset_id
string
required

Video asset ID

Example:

"re_657745568997527552"

model
enum<string>
required

Embedding model name

Available options:
multimodalembedding@001
Example:

"multimodalembedding@001"

Response

200 - application/json

Embedding generated successfully

code
string

Response code indicating the result status

Example:

200

msg
string

Response message describing the operation result

Example:

"success"

data
object

Response data object containing the embedding

success
boolean

Indicates whether the operation was successful

Example:

true

failed
boolean

Indicates whether the operation failed

Example:

false