curl --request POST \
  --url http://your-model.soranova.ai/v1/embeddings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "infly/inf-retriever-v1-1.5b",
  "input": "The quick brown fox jumps over the lazy dog"
}'
{
  "object": "list",
  "data": [
    {
      "object": "embedding",
      "embedding": [
        0.042069,
        0.6942
      ],
      "index": 0
    }
  ],
  "model": "infly/inf-retriever-v1-1.5b"
}

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

The model to use for embedding generation

input
string
required

The text to embed

Response

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

The model used to generate the embeddings