Create chat completions

Create chat completions

Request

This endpoint expects an object.
modelstringOptional
messageslist of maps from strings to anyOptional
temperaturedoubleOptional
top_pdoubleOptional
nintegerOptional
streambooleanOptional
stream_optionsobjectOptional
stoplist of stringsOptional
max_tokensintegerOptional
max_completion_tokensintegerOptional
presence_penaltydoubleOptional
frequency_penaltydoubleOptional
logit_biasmap from strings to integersOptional
userstringOptional
response_formatobjectOptional
seedintegerOptional
toolslist of objectsOptional
tool_choicemap from strings to anyOptional
parallel_tool_callsbooleanOptional
functionslist of objectsOptional
function_callobjectOptional

Response

Chat completions response

idstringOptional
createdintegerOptional
modelstringOptional
choiceslist of objectsOptional
usageobjectOptional
system_fingerprintstringOptional