v2

latestOpenAPI 3.1.02026-07-262937191.0 MB
embeddings

Embeddings

Embeddings

post/v1/embeddings

Request body

modelstring required

ID of the model to use.

metadataobject nullable
output_dimensioninteger nullable

The dimension of the output embeddings when feature available. If not provided, a default output dimension will be used.

output_dtype'float' | 'int8' | 'uint8' | 'binary' | 'ubinary'
encoding_format'float' | 'base64'

Example request

{
  "model": "mistral-embed"
}

Response

Successful Response

idstring required
objectstring required
modelstring required

Example response

{
  "id": "cmpl-e5cc70bb28c444948073e77776eb30ef",
  "object": "chat.completion",
  "model": "mistral-small-latest",
  "data": [
    {
      "object": "embedding",
      "embedding": [
        0.1,
        0.2,
        0.3
      ],
      "index": 0
    }
  ]
}