Skip to main content
POST
Create embedding

Authorizations

Authorization
string
header
required

Bearer authentication using API key

Body

application/json

Request payload

OpenAI-compatible embeddings API request format

input
required

The input text to embed, either a string or array of strings

model
enum<string>
required

Model name to use for the request

Available options:
openai/text-embedding-3-small
dimensions
integer

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

Required range: x >= 1
encoding_format
enum<string>
default:float

The format to return the embeddings in

Available options:
float,
base64

Response

200 - application/json

Successful response

Embeddings API response

data
object[]
required

List of embedding objects

model
string
required

The model used for embeddings

object
enum<string>
required

Object type, always 'list'

Available options:
list
usage
object
required

Usage information for the embeddings request