Completion Object
Fields
| Field | Type | Description |
|---|---|---|
| id | string | Unique identifier for the completion |
| choices | array | Completion choices generated for the prompt |
| created | integer | Unix timestamp in seconds |
| model | string | Model used for the completion |
| system_fingerprint | string | Fingerprint of the backend configuration |
| object | string | Object type, typically chat.completion |
| usage | object | Usage statistics for the request |
| completion_tokens | integer | Output token count |
| prompt_tokens | integer | Input token count |
| total_tokens | integer | Total token count |
Example
{
"id": "chatcmpl-AFNKwYwdb3KmPV3MT7yT0TBylkuH5",
"object": "chat.completion",
"created": 1728227990,
"model": "gpt-4o-2024-08-06",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "This is a test!"
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 13,
"completion_tokens": 5,
"total_tokens": 18
},
"system_fingerprint": "fp_67802d9a6d"
}