Create Embeddings
Develop Env
https://dev.your-api-server.com
Develop Env
https://dev.your-api-server.com
POST
/embeddings
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://dev.your-api-server.com/embeddings' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "mistral-embed",
"input": [
"Hello",
"world"
],
"encoding_format": "float"
}'
Response Response Example
{
"id": "embd-aad6fc62b17349b192ef09225058bc45",
"object": "list",
"data": [
{
"object": "embedding",
"embedding": [
0.1,
0.2,
0.3
],
"index": 0
},
{
"object": "embedding",
"embedding": [
0.4,
0.5,
0.6
],
"index": 1
}
],
"model": "string",
"usage": {
"prompt_tokens": 9,
"total_tokens": 9
}
}
Request
Body Params application/json
Responses
Modified at 11 months ago