Skip to main content

POST /v1/embeddings

Chat completions is an OpenAI compatible endpoint.

Specify the embedding model by providing the component name in the model key. For example:

curl http://localhost:8090/v1/embeddings \
-H "Content-Type: application/json" \
-d '{
"input": "The food was delicious and the waiter...",
"model": "text-embedding-ada-002",
"encoding_format": "float"
}'