Generate vector embeddings for text using language models
Documentation Index
Fetch the complete documentation index at: https://api-tools.memories.ai/llms.txt
Use this file to discover all available pages before exploring further.
https://mavi-backend.memories.ai/serve/api/v2
Auth: Authorization: sk-mavi-... (no Bearer prefix)| Field | Type | Required | Description |
|---|---|---|---|
| input | array[string] | Yes | List of text strings to embed (can be a single string or multiple strings) |
| model | string | Yes | Embedding model name |
| dimensionality | integer | No | Output embedding dimension size (e.g., 256, 512, 768). Model-dependent. |
gemini-embedding-001 - Google’s Gemini text embedding model| Parameter | Type | Description |
|---|---|---|
| code | integer | Response code (200 on success) |
| msg | string | Response message describing the operation result |
| data | array[object] | One entry per input string, in the same order. |
| data[].embedding | array[number] | Vector for that input. Length equals dimensionality (or the model default). |
| success | boolean | Indicates whether the operation was successful |
| failed | boolean | Indicates whether the operation failed |
data[i].embedding to get the vector for input[i]. There is no singular-vs-plural variant.dimensionality parameter allows you to control the output vector sizeEmbeddings generated successfully
Response for single input
Response code indicating the result status
200
Response message describing the operation result
"success"
Response data object containing the embedding
Indicates whether the operation was successful
true
Indicates whether the operation failed
false