POST
/
embeddings
curl --request POST \
--url https://api.neosantara.xyz/v1/embeddings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "nusa-embeddings-0001",
"input": "example sentence"
}'
{
  "object": "list",
  "data": [
    {
      "object": "embedding",
      "embedding": [
        0.123,
        0.456,
        0.789
      ],
      "index": 0
    }
  ],
  "model": "nusa-embeddings-0001",
  "usage": {
    "prompt_tokens": 3,
    "total_tokens": 3
  }
}

Authorizations

Authorization
string
header
required

Your NeosantaraAI API Key.

Body

application/json

Response

200
application/json

Embeddings result

The response is of type object.