Completions
Endpoints
Completions
Create text completions (legacy endpoint)
POST
Completions
Overview
Create a text completion with the specified model.Request
Body Parameters
Model ID to use
The prompt(s) to generate completions for
Maximum tokens to generate
Sampling temperature
Whether to stream responses
Example
For new applications, use the Chat Completions endpoint instead.