POST
/
inference
/
completions
Completions
curl --request POST \
  --url https://api.nugen.in/inference/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "max_tokens": 400,
  "model": "nugen-legal",
  "prompt": "The sky is",
  "temperature": 1
}'
{
  "choices": [
    {
      "finish_reason": "stop",
      "index": 0,
      "text": "The sky is blue."
    }
  ],
  "created": 1623645497,
  "id": "nugen-1234",
  "model": "nugen-legal",
  "usage": {
    "completion_tokens": 5,
    "prompt_tokens": 5,
    "total_tokens": 10
  }
}

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

Successful Response

The response is of type object.