Create a Chat Completion
Changed onStarting a new project? We recommend trying Responses to take advantage of the latest OpenAI platform features. Compare Chat Completions with Responses.
Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides.
Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide.
Returns a chat completion object, or a streamed sequence of chat completion chunk objects if the request is streamed.
Request
- Base URLhttps://aihubmix.com
- AuthHTTP bearer
Request body
Example request
{
"temperature": 1,
"top_p": 1,
"user": "user-1234",
"safety_identifier": "safety-identifier-1234",
"prompt_cache_key": "prompt-cache-key-1234",
"audio": {
"voice": {
"id": "voice_1234"
}
},
"stop": "\n",
"n": 1
}Response
OK
Changes
- breaking
added the new required request property
/////////// - breaking
added the new required request property
/////////// - breaking
added the new required request property
/////////// - breaking
added the new required request property
/////////// - breaking
added the new required request property
/////////// - breaking
added the new required request property
/////////// - breaking
added the new required request property
//////////// - breaking
added the new required request property
//////////// - breaking
added the new required request property
////////// - breaking
added the new required request property
////////// - breaking
added the new required request property
////////// - breaking
added the new required request property
////////// - breaking
added the new required request property
////////// - breaking
added the new required request property
////////// - breaking
the request property
////became required - breaking
the request property
////became required - breaking
the
//////////request property type changed from no type toobject - breaking
the
//////////request property type changed from no type toobject - breaking
the
//////////request property type changed from no type toobject - breaking
the
///////////request property type changed from no type toobject - breaking
the
/////////request property type changed from no type toobject - breaking
the
/////////request property type changed from no type toobject - breaking
the
////////response's property type changed from no type toobjectfor status - breaking
the
////////response's property type changed from no type toobjectfor status - info
added the new optional request property
/////////// - info
added the new optional request property
/////////// - info
added the new optional request property
/////////// - info
added the required property
/////////to the response with the status - info
added the required property
/////////to the response with the status - info
added the required property
/////////to the response with the status - info
added the required property
/////////to the response with the status - info
added the required property
/////////to the response with the status - info
added the required property
/////////to the response with the status
- breaking