v39

latestOpenAPI 3.1.0raw.githubusercontent.com2025-11-2613102194.9 KB
v1
v1

Create Embeddings

Create embeddings using the configured provider.

post/v1/embeddings

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. Learn more.

Response

Successful Response

object'list'

Object type, always 'list'

modelstring required

The model used for embeddings

usageobject required

Usage statistics (prompt_tokens, total_tokens)