v2

latestOpenAPI 3.1.02026-08-05267431678.1 KB
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.