chat
Chat Completion
Chat Completion
post/v1/chat/completions
Request body
Example request
{
"model": "mistral-large-latest",
"messages": [
{
"role": "user",
"content": "Who is the best French painter? Answer in one short sentence."
}
],
"response_format": {
"type": "text"
}
}Response
Successful Response
Changes
Changed in 1 of the 3 revisions of this API.3
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
//////to the response with the status (media type: application/json)response-optional-property-added
- ○
added the optional property
//to the response with the status (media type: text/event-stream)response-optional-property-added
This revision also has 20 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○