Skip to main content

Create chat completion

POST 

/chat/completions

Creates a model response for the given conversation. Set stream: true to receive the response as a stream of server-sent events; the final chunk carries the usage object when stream_options.include_usage is true.

Request

Responses

A chat completion. When stream is true the body is a text/event-stream of ChatCompletionChunk objects terminated by data: [DONE].