Skip to content

Chat Completion Object

ParameterTypeDescription
idstringUnique identifier for the chat completion
choicesarrayList of chat completion choices. If n is greater than 1, there can be multiple choices
createdintegerUnix timestamp (in seconds) when the chat completion was created
modelstringModel used for the chat completion
system_fingerprintstringFingerprint representing the backend configuration the model ran on
objectstringObject type, always chat.completion
usageobjectUsage statistics for the completion request
completion_tokensintegerNumber of tokens in the generated completion
prompt_tokensintegerNumber of tokens in the prompt
total_tokensintegerTotal tokens used in the request (prompt + completion)
JSON
{
  "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
  }
}