AI Gateway

POST /ai/v1/embeddings

Changed on

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Request body

dimensionsinteger nullable
encoding_formatstring nullable
modelstring required

Response

Embedding response

modelstring required
objectstring required

Changes