Create embeddings
Creates an embedding vector representing the input text.
AuthorizationBearer <token>
In: header
modelstring
ID of the model to use.
inputstring | array<string>
Input text to embed, encoded as a string or array of tokens.
user?string
Response Body
curl -X POST "https://api.openroute.cn/v1/embeddings" \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-ada-002", "input": "The food was delicious and the waiter..." }'
Last updated on