Text Models
Text Completion API
Generate text using the OpenAI Legacy Completions compatible format.
POST
Text Completion API
The Legacy Completions API usesprompt as input and is suitable for businesses still using the old OpenAI SDK or simple text completion workflows. For new conversational scenarios, it is recommended to use the chat completions API.
Request Body
Model name.
Input prompt.
Whether to enable streaming output.
Maximum number of tokens to generate.
Sampling temperature.
Nucleus sampling parameter.
Stop sequences.