Embeddings

POST
/v1/embeddings
dimensions?integer|null

The number of dimensions the resulting output embeddings should have. Only supported in 'text-embedding-3' and later models.

Formatint32
Range0 <= value
encoding_format?null|EmbeddingEncodingFormat
inputstring|||

Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays.

modelstring

ID of the model to use.

user?string|null

A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.

Response Body

application/json

curl -X POST "https://oai.endpoints.kepler.ai.cloud.ovh.net/v1/embeddings" \  -H "Content-Type: application/json" \  -d '{    "input": "string",    "model": "string"  }'
{
  "data": [
    {
      "embedding": [
        0.1
      ],
      "index": 0,
      "object": "string"
    }
  ],
  "model": "string",
  "object": "string",
  "usage": {}
}