Generate Image Embedding
Embeddings
Generate Image Embedding
Generate vector embeddings for images using multimodal models
POST
Generate Image 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)Pricing:
- $0.0001 per image
Code Examples
Request Parameters
This endpoint supports two methods of providing images: Method 1: File Upload (multipart/form-data)
Method 2: Asset ID (application/json)
Supported Models:
multimodalembedding@001- Google’s multimodal embedding modelmobileclip- Efficient mobile-optimized CLIP model
Response
Returns the embedding vector synchronously.Response Parameters
Notes
- Image embeddings are returned synchronously in the response
- Embedding dimensions vary by model (typically 512-1024 dimensions)
- Supported image formats: JPEG, PNG, GIF, WebP, BMP, TIFF
- Maximum file size may vary by deployment
- Use the file upload method for one-time embedding generation
- Use the asset ID method when you’ve already uploaded the image via the
/uploadendpoint - Embeddings can be used for image similarity search, classification, and clustering
Authorizations
Body
Response
200 - application/json
Embedding generated successfully
Response code indicating the result status
Example:
200
Response message describing the operation result
Example:
"success"
Response data object containing the embedding
Indicates whether the operation was successful
Example:
true
Indicates whether the operation failed
Example:
false
