Embeddings

Create embeddings

Generate text embeddings. OpenAI-compatible.

post/embeddings

Request body

modelstring

Model ID to use for embeddings.

encoding_format'float' | 'base64'

The format to return the embeddings in.

Example request

{
  "model": "text-embedding-3-small"
}

Response

Embedding response containing a list of embedding vectors.

object'list'
modelstring

The model used for the embeddings.

Example response

{
  "object": "list",
  "data": [
    {
      "object": "embedding"
    }
  ],
  "model": "text-embedding-3-small"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.