Skip to main content
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.

Response

array
One embedding per input
string
Model that produced the vectors
string
Always list
object
Tokens used