POST
/
v1
/
embeddings

Authorizations

Authorization
string
headerrequired

Bearer authentication header.

example value: Bearer Galadriel-API-key

Get API key from Galadriel dashboard.

Body

application/json
input
required

Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. The input must not exceed the max input tokens for the model.

model
string
required

ID of the model to use. Get ID for available models

encoding_format
enum<string> | null

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

Available options:
float,
base64
user
string | null

A unique identifier representing your end-user

Response

200 - application/json
data
object[]
required
model
string
required
object
enum<string>
required
Available options:
list
usage
object
required