ChatCompletion
Generate a chat completion for the given messages using the specified model.
post/chat/completions
Request body
Example request
{
"messages": [
{
"content": [
{
"image_url": {
"url": "https://example.com/image.jpg"
}
}
]
}
]
}Response
If stream=False, returns a CreateChatCompletionResponse with the full completion. If stream=True, returns an SSE event stream of CreateChatCompletionResponseStreamChunk