Skip to main content
POST

Authorizations

Authorization
string
header
required

All APIs require Bearer Token authentication

Add to request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
string
required

Embedding model name

Example:

"text-embedding-3-small"

input
required

Input text to embed, encoded as a string or array of strings

encoding_format
enum<string>
default:float

The format to return the embeddings in

Available options:
float,
base64
dimensions
integer

The number of dimensions the resulting output embeddings should have. Only supported in some models.

Response

Embedding response

object
enum<string>

Object type

Available options:
list
data
object[]

List of embedding objects

model
string

Model used

usage
object

Token usage statistics