Generate Text Embedding
Embeddings
Generate Text Embedding
Generate vector embeddings for text using language models
POST
Generate Text 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.0000002 per token (2e-7/token)
Code Examples
Request Body
Supported Models:
gemini-embedding-001- Google’s Gemini text embedding model
Response
Returns embedding vectors for each input text.Response Parameters
Notes
- Text embeddings are returned synchronously in the response.
- The response is always an array — index into
data[i].embeddingto get the vector forinput[i]. There is no singular-vs-plural variant. - The
dimensionalityparameter allows you to control the output vector size - Supported dimensionality depends on the model (common values: 256, 512, 768, 1024)
- Lower dimensionality results in faster processing and reduced storage, but may have lower accuracy
- Use text embeddings for:
- Semantic search and similarity matching
- Text classification and clustering
- Question answering and information retrieval
- Recommendation systems
- Duplicate detection
Authorizations
Body
application/json
Response
200 - application/json
Embeddings generated successfully
- Option 1
- Option 2
Response for single input
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
