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
Changes
Nothing in range could be searched: of the 3 revisions, 2 have no diff computed and the first has nothing before it to compare against. Whether this endpoint changed in them is not recorded.