Completion object
Represents a completion response from the API. Note: streaming and non-streaming completions share the same shape (unlike the chat endpoint).| Field | Type | Description |
|---|---|---|
| id | string | Unique completion id |
| choices | array | Generated completions for the prompt |
| created | integer | Unix timestamp (seconds) |
| model | string | Model used |
| system_fingerprint | string | Backend fingerprint |
| object | string | Always text_completion |
| usage | object | Token usage |
| completion_tokens | integer | Tokens in the completion |
| prompt_tokens | integer | Tokens in the prompt |
| total_tokens | integer | Total tokens (prompt + completion) |

