POST /openapi/memorylake/router/openai/v1/embeddings
OpenAI Embeddings. Returns one vector per input. Parameters not listed below are passed to the model unchanged.
No embedding models are available yet, so this endpoint currently answers that the model is not found. Check Available Models in the console for when one is added.
Headers
string
Your MemoryLake API key, when you call the model with your own provider key. The provider key then goes in the provider’s usual key header. Your provider key is forwarded to the provider and never stored.
string
W3C trace context. When present, the request joins your trace and the same trace id comes back in X-Trace-ID.
Request Body
string | array
required
Text to embed, or an array of texts
string
required
Embedding model name
integer
Length of each vector, for models that support it
string
Vector format. One of: float, base64.
curl -X POST 'https://app.memorylake.ai/openapi/memorylake/router/openai/v1/embeddings' \ -H 'Authorization: Bearer sk_xxxxxx' \ -H 'Content-Type: application/json' \ -d '{ "input": "Lisbon is my favourite city.", "model": "text-embedding-3-small" }'