Basic Parameters
| Parameter | Description |
|---|---|
| Max Tokens | The maximum number of tokens to generate in the completion. |
| Model | ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them. |
| Prompt | The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document. |
Advanced Parameters
| Parameter | Description |
|---|---|
| Stop | Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence. |
| Temperature | 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.We generally recommend altering this or top_p but not both. |
| User | A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more. |