Skip to content
中文

Chat Completion Object

ParameterTypeDescription
idstringUnique identifier of the chat completion
choicesarrayList of chat-completion choices. When n is greater than 1, multiple choices may be returned.
createdintegerUnix timestamp in seconds when the completion was created
modelstringModel used to generate the chat completion
system_fingerprintstringFingerprint of the backend configuration used by the model.
objectstringObject type, always chat.completion
usageobjectUsage statistics for the request
completion_tokensintegerNumber of tokens in the generated completion
prompt_tokensintegerNumber of tokens in the prompt
total_tokensintegerTotal tokens used by the request (prompt + completion)
{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"model": "gpt-3.5-turbo-0613",
"system_fingerprint": "fp_44709d6fcb",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "\n\nHello there, how may I assist you today?",
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}