| Parameter | Type | Description |
|---|---|---|
| id | string | A unique identifier for the chat completion. |
| choices | array | A list of completion options for the chat. If n is greater than 1, multiple options may be present. |
| created | integer | The Unix timestamp (in seconds) when the chat completion was created. |
| model | string | The model used for the chat completion. |
| system_fingerprint | string | A fingerprint representing the backend configuration of the model. |
| object | string | The object type, always chat.completion. |
| usage | object | Usage statistics for the completion request. |
| completion_tokens | integer | The number of tokens generated in the completion. |
| prompt_tokens | integer | The number of tokens in the prompt. |
| total_tokens | integer | The total number of tokens used in 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
}
}