Completions
POST
/
inference
/
completions
Completions
Copy
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
}'
Copy
{
"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
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
.
Was this page helpful?
Completions
Copy
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
}'
Copy
{
"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
}
}
Assistant
Responses are generated using AI and may contain mistakes.