POST
/v1/private/chat/completionsCreate chat completionsCreate chat completions
Request body
application/json
objectChatCompletionRequest
frequencyPenaltynumber · doublefunctionCallobjectShow child attributes
argumentsstringnamestringfunctionsarray of objectShow child attributes
Show array items
descriptionstringnamestringparametersobjectstrictbooleanlogitBiasobjectlogprobsbooleanmaxCompletionTokensinteger · int32maxTokensinteger · int32messagesarray of objectShow child attributes
Show array items
contentobjectrequiredrolestringrequiredmetadataobjectmodelstringninteger · int32parallelToolCallsbooleanpresencePenaltynumber · doublereasoningEffortstringresponseFormatobjectShow child attributes
jsonSchemaobjectShow child attributes
namestringschemaobjectstrictbooleantypestringseedinteger · int32serviceTierstringstoparray of stringShow child attributes
storebooleanstreambooleanstreamOptionsobjectShow child attributes
includeUsagebooleantemperaturenumber · doubletoolChoiceobjecttoolsarray of objectShow child attributes
Show array items
typestringtopLogprobsinteger · int32topPnumber · doubleuserstring{
"frequencyPenalty": 0,
"functionCall": {
"arguments": "string",
"name": "string"
},
"functions": [
{
"description": "string",
"name": "string",
"parameters": {
"additionalProp1": {}
},
"strict": true
}
],
"logitBias": {
"additionalProp1": 0
},
"logprobs": true,
"maxCompletionTokens": 0,
"maxTokens": 0,
"messages": [
{
"content": {},
"role": "string"
}
],
"metadata": {
"additionalProp1": "string"
},
"model": "string",
"n": 0,
"parallelToolCalls": true,
"presencePenalty": 0,
"reasoningEffort": "string",
"responseFormat": {
"jsonSchema": {
"name": "string",
"schema": {
"additionalProp1": {}
},
"strict": true
},
"type": "json_object"
},
"seed": 0,
"serviceTier": "string",
"stop": [
"string"
],
"store": true,
"stream": true,
"streamOptions": {
"includeUsage": true
},
"temperature": 0,
"toolChoice": {},
"tools": [
{
"function": {
"description": "string",
"name": "string",
"parameters": {
"additionalProp1": {}
},
"strict": true
},
"type": "function"
}
],
"topLogprobs": 0,
"topP": 0,
"user": "string"
}Responses
objectChatCompletionResponse
choicesarray of objectShow child attributes
Show array items
deltaobjectShow child attributes
contentstringreasoningContentstringrolestringtoolCallsarray of objectShow child attributes
Show array items
finishReasonstringindexinteger · int32logprobsobjectShow child attributes
contentarray of objectShow child attributes
Show array items
bytesarray of integer · int32Show child attributes
logprobnumber · doubletokenstringmessageobjectShow child attributes
contentstringnamestringreasoningContentstringrefusalstringrolestringtoolCallsarray of objectShow child attributes
createdinteger · int64idstringmodelstringserviceTierstringsystemFingerprintstringusageobjectShow child attributes
completionTokensinteger · int32completionTokensDetailsobjectShow child attributes
reasoningTokensinteger · int32promptTokensinteger · int32promptTokensDetailsobjectShow child attributes
cachedTokensinteger · int32totalTokensinteger · int32array of object
Show array items
anyOf · 2 options
Option 1objectChatCompletionResponse
choicesarray of objectShow child attributes
createdinteger · int64idstringmodelstringserviceTierstringsystemFingerprintstringOption 2objectErrorMessage
codeinteger · int32detailsstringmessagestring{
"choices": [
{
"delta": {
"content": "string",
"functionCall": {
"arguments": "string",
"name": "string"
},
"reasoningContent": "string",
"role": "string",
"toolCalls": [
{
"function": {
"arguments": "string",
"name": "string"
},
"id": "string",
"index": 0,
"type": "function"
}
]
},
"finishReason": "string",
"index": 0,
"logprobs": {
"content": [
{
"bytes": [
0
],
"logprob": 0,
"token": "string"
}
]
},
"message": {
"content": "string",
"functionCall": {
"arguments": "string",
"name": "string"
},
"name": "string",
"reasoningContent": "string",
"refusal": "string",
"role": "assistant",
"toolCalls": [
{
"function": {
"arguments": "string",
"name": "string"
},
"id": "string",
"index": 0,
"type": "function"
}
]
}
}
],
"created": 0,
"id": "string",
"model": "string",
"serviceTier": "string",
"systemFingerprint": "string",
"usage": {
"completionTokens": 0,
"completionTokensDetails": {
"reasoningTokens": 0
},
"promptTokens": 0,
"promptTokensDetails": {
"cachedTokens": 0
},
"totalTokens": 0
}
}