Skip to main content
POST

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json

Embedding request configuration

input
required

Text or array of texts to create embeddings for

model
string
required

Embedding model to use (e.g., text-embedding-ada-002, text-embedding-3-small)

encoding_format
enum<string>
default:float

Format for returned embeddings

Available options:
float,
base64
dimensions
integer

Number of dimensions for the embeddings (model-specific)

user
string

Unique identifier for the end-user

Response

Embeddings created successfully

object
string
Example:

"list"

data
object[]
model
string
usage
object