AI & ML · Function
chat.completions
The Completions API is a legacy text-generation endpoint. It takes a single prompt string, but the documentation recommends using the Responses API or Chat Completions for current models.
Last updated
Syntax
POST /v1/completionsIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Responses APIChat Completionspromptmax_tokensfinish_reasonstopnbest_of