v27

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-2193427579.9 KB
Inference

Create embeddings.

Generate OpenAI-compatible embeddings for the given input using the specified model.

post/v1/embeddings

Request body

modelstring required

The identifier of the model to use.

encoding_format'float' | 'base64'

The format to return the embeddings in.

dimensionsinteger

The number of dimensions for output embeddings.

userstring

A unique identifier representing your end-user.

Response

An OpenAIEmbeddingsResponse containing the embeddings.

object'list'

The object type.

modelstring required

The model that was used to generate the embeddings.