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
}
}
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
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Successful Response
The response is of type object
.
Was this page helpful?