Chat Completion
Create chat completion
Please note that there is not just one, but several variations of this API described below, each with its own set of supported models and available parameters. You can explore these variations by selecting different options from the object dropdown menu and choose the one that suits you best.
Creates a chat completion using a language model, allowing interactive conversation by predicting the next response based on the given chat history. This is useful for AI-driven dialogue systems and virtual assistants.
post
/v1/chat/completions
Authorizations
Body
one of
Responses
cURL
JavaScript
Python
HTTP
201
No body
Example of chat completion
We will call the gpt-4o model using the Python programming language and the OpenAI SDK.
Last updated
Was this helpful?