embeddings
Embeddings
Changed onEmbeddings
post/embeddings
Request
- Base URLhttps://api.mistral.ai/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Example response
{
"usage": {
"completion_tokens": 34,
"prompt_tokens": 16,
"total_tokens": 50
},
"model": "mistral-small-latest",
"id": "cmpl-e5cc70bb28c444948073e77776eb30ef",
"object": "chat.completion",
"data": [
{
"embedding": [
0.1,
0.2,
0.3
],
"object": "embedding"
}
]
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking