latestOpenAPI 3.1.02026-08-19270462702.4 KB

b92f75fd3b61

openai-compat

Create Embeddings

Generate embeddings for one or more inputs in the OpenAI response shape.

post/v1/embeddings

Request body

modelstring required

Embedding model identifier.

encoding_format'float'

Format of the returned embeddings. Only float is supported.

dimensionsinteger nullable

Optional output dimensionality, when the model supports it.

userstring nullable

Opaque end-user identifier for abuse monitoring.

Response

Successful Response

object'list'
modelstring required

Model that produced the embeddings.