Embeddings

Creates embeddings for the given input text.

Changed on
post/openai/{region}/v1/embeddings

Request

  • Base URL
    https://api.langdock.com
  • URL
    https://api.langdock.com/openai/{region}/v1/embeddings
  • Auth
    HTTP bearer

Path parameters

region'eu' | 'us' required

The region of the API to use.

Request body

encoding_format'float' | 'base64'

The format to return the embeddings in. Can be either float or base64.

dimensionsinteger

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

userstring

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

Response

OK

modelstring required

The name of the model used to generate the embedding.

object'list' required

The object type, which is always "list".

Changes