Skip to main content
POST
Create embeddings

Authorizations

Authorization
string
header
required

Bearer token authentication. Get your API key from the dashboard.

Body

application/json
input
required

Input text to embed

model
string
required

ID of the model to use

Example:

"text-embedding-ada-002"

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 embeddings should have

Required range: x >= 1
user
string

A unique identifier representing your end-user

Response

Successful response

object
enum<string>
required

The object type, which is always 'list'

Available options:
list
data
object[]
required

Array of embedding objects

model
string
required

The name of the model used to generate the embedding

usage
object
required