Object Fields
A unique identifier for the chat completion. Each chunk has the same ID.
A list of chat completion choices. Can be more than one if
n is greater than 1.Each choice object contains:index(integer): The index of the choice in the listdelta(object): The delta content generated by the modelrole(string): The role of the message author (only in first chunk)content(string): The content fragment of the message
finish_reason(string | null): The reason the model stopped generating,nullif still streaming
The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp.
The model that generated the completion.
This fingerprint represents the backend configuration that the model runs with.
The object type, which is always
chat.completion.chunk.Example
Streaming Format
When streaming is enabled (stream: true), the response is sent as Server-Sent Events (SSE). Each event contains a chunk object prefixed with data: :
