Create embeddings
Creates an embedding vector for each supplied text or token input.
Authentication
AuthorizationBearer
Mixlayer API key or console user session supplied as a Bearer token.
Request
Embedding parameters
input
Input to embed. Text and token inputs must be non-empty; batches are limited to 2048 items.
model
Embedding model identifier. Must be available to the API key and marked as an embedding model.
dimensions
Requested output vector size. Must be greater than zero and supported by the model.
encoding_format
input_type
Model-specific embedding input type, such as query or document.
normalize
Requests normalized vectors when supported by the model server.
truncate
Requests truncation behavior when supported by the model server.
user
Opaque end-user identifier accepted for OpenAI compatibility.
Response
Embedding vectors and token usage
data
Embedding objects, one for each supplied input.
model
Model used to create the embeddings.
object
Object type, always list.
usage
Token usage for the request.
Errors
400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error