POST
/
v1
/
embeddings

Authorizations

Authorization
string
headerrequired

Body

project_id
integer
required

The ID of the project to use.

model
string
required

The model to generate the embeddings.

input
required

Embedding Input

encoding_format
enum<string>
default: float
  • float - float
  • base64 - base64
Available options:
float,
base64

Response

200 - application/json
data
object[]
required

The embeddings for the input.

model
string
required

The model to generate the embeddings.

usage
object
required

The usage statistics for the completion.

provider_name
string
required

The name of the provider that generated the completion.

provider_id
string
required

The ID of the provider that generated the completion.