cURL
curl --request POST \ --url http://localhost:8080/v1/embeddings \ --header 'Content-Type: application/json' \ --data '{ "model": "<string>", "input": "<string>", "encoding_format": "float", "dimensions": 123 }'
{ "index": 123, "object": "<string>", "embedding": [ 123 ] }
Creates an embedding vector representing the input text.
float
base64
Was this page helpful?