v5
latestOpenAPI 3.1.02026-08-04166362486.5 KBCreate embeddings for text and images
Create embeddings for text or images using the specified model, encoding format, and normalization.
Args: params: The parameters for creating embeddings.
Returns: EmbeddingCreateResponse: The response containing the embeddings.
post/v1/embeddings
Request body
Example request
{
"model": "mixedbread-ai/mxbai-embed-large-v1",
"dimensions": 768,
"prompt": "Provide a detailed summary of the following text.",
"normalized": true
}Response
The embeddings for the input text or image
Example response
{
"data": [
{
"object": "embedding"
}
],
"normalized": true,
"dimensions": 768
}