Skip to main content
POST
Generate embeddings (deprecated)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required

Embedding model identifier

Example:

"google/gemini-embedding-001"

input
required

Single text input to embed

Example:

"Hello world"

encoding_format
enum<string>
default:float

The format to return the embeddings in. Can be either float or base64.

Available options:
float,
base64
dimensions
integer

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

Required range: x >= 0

Response

Embeddings generated successfully

object
enum<string>

Object type, always "list"

Available options:
list
data
object[]
metadata
object