API docs
Embeddings API
Tap into Galadriel’s LLM inference network. Follows the same schema as OpenAI’s embeddings API.
POST
/
v1
/
embeddings
Authorizations
Authorization
string
headerrequiredBearer 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
requiredID 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[]
requiredmodel
string
requiredobject
enum<string>
requiredAvailable options:
list
usage
object
required