POST
/
v1
/
embeddings
curl --request POST \
  --url https://api.galadriel.com/v1/embeddings \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "input": [
    "My epic text number 1",
    "My epic text number 2"
  ],
  "model": "gte-large-en-v1.5"
}'
{
  "data": [
    {
      "embedding": [
        123
      ],
      "index": 123,
      "object": "<string>"
    }
  ],
  "model": "<string>",
  "object": "<string>",
  "usage": {
    "prompt_tokens": 123,
    "total_tokens": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header.

example value: Bearer Galadriel-API-key

Get API key from Galadriel dashboard.

Body

application/json

Response

200
application/json

Returns a list of embeddings.

The response is of type object.

POST
/
v1
/
embeddings
curl --request POST \
  --url https://api.galadriel.com/v1/embeddings \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "input": [
    "My epic text number 1",
    "My epic text number 2"
  ],
  "model": "gte-large-en-v1.5"
}'
{
  "data": [
    {
      "embedding": [
        123
      ],
      "index": 123,
      "object": "<string>"
    }
  ],
  "model": "<string>",
  "object": "<string>",
  "usage": {
    "prompt_tokens": 123,
    "total_tokens": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header.

example value: Bearer Galadriel-API-key

Get API key from Galadriel dashboard.

Body

application/json

Response

200
application/json

Returns a list of embeddings.

The response is of type object.