curl --location --request POST 'https://api.mtuo.ai/v1/embeddings' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw 'curl https: //api. mtuo.ai/v1/embeddings \
-H "Authorization: Bearer $Mtu_API_KEY" \
-H "Content-Type: application/json" \
-d '\''{
"input": "The food was delicious and the waiter...",
"model": "text-embedding-ada-002",
"encoding_format": "float"
}'\'''{
"object": "list",
"data": [
{
"object": "embedding",
"embedding": [
0.0023064255,
-0.009327292,
.... (1536 floats total for ada-002)
-0.0028842222,
],
"index": 0
}
],
"model": "text-embedding-ada-002",
"usage": {
"prompt_tokens": 8,
"total_tokens": 8
}
}