Completions
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The name of the model to use.
"nugen-embed-legal"
The prompt to generate completions for.
It can be a single string or a list of strings.
It can also be an array of integers or an array of integer arrays,
which allows to pass already tokenized prompt.
If multiple prompts are specified, several choices with corresponding index
will be returned in the output.
"The sky is"
The maximum number of tokens to generate in the completion.
If the token count of your prompt plus max_tokens
exceed the model's context length, max_tokens
will be lowered to fit in the context window instead of returning an error.
x >= 0
400
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
0 <= x <= 2
1
Response
A unique identifier of the response.
Timestamp when the response was generated.
The model used for the completion.
The list of generated completion choices.
Was this page helpful?