Skip to main content
POST
Generate embeddings

Body

application/json
input
string[]
required

Array of texts to generate embeddings for

Example:
model
string
default:text-embedding-3-small

Embeddings model

Example:

"text-embedding-3-small"

provider
enum<string>
default:openai

Embeddings provider

Available options:
openai,
azure_openai,
cohere
providerName
string

Provider name (configured in LLM Providers) for credential resolution

Example:

"My OpenAI Production"

dimensions
number

Embedding dimensions (only for models that support it)

Example:

1536

Response

Embeddings generated successfully