POST
/
api
/
v3
/
inference
/
inference
/
embeddings
curl --request POST \
  --url https://api.nugen.in/api/v3/inference/inference/embeddings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "input": "The quick brown fox jumped over the lazy dog",
  "model": "nugen-flash-embed",
  "dimensions": 123
}'
{
  "created": 1623645497,
  "data": [
    {
      "embedding": [
        0.007897645,
        -0.006754357,
        0.007654689
      ],
      "index": 0
    }
  ],
  "id": "nugen-1234",
  "model": "nugen-flash-embed",
  "object": "embedding",
  "usage": {
    "total_tokens": 25
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Vector embeddings and usage statistics

The response is of type object.