OptionalcompletionsOrdered accepted provider completions, including empty records for unknown identities.
The reason the model stopped generating. Common values include "stop" (natural end), "length" (token limit reached), and "tool_calls" (the model invoked a tool).
The final assistant message produced by the completion.
The complete message history for the conversation, including all user, assistant, and tool messages in order.
Optionalresponse_Final accepted completion provider-reported identity; absent when unknown.
Optionaltoken_Token consumption keyed by model ID. Each value has input (all prompt tokens, including cache reads and writes) and output counts. When reported, fresh_input, cache_read, and cache_creation are disjoint input buckets; missing cache counts remain unknown. null when usage data is unavailable.
The result of an AI chat completion request. Returned by chat completion endpoints after the model finishes generating.