ChatCompletionResponse schema

FieldType and description
id
Required
string

Chat completion id: chatcmpl- followed by a UUID. Streamed chunks of the same completion carry the same id.

object
Required
string

Allowed values: ["chat.completion"]

created
Required
integer

Unix timestamp of the response.

model
Required
string

The model used.

service_tierstring | null

The tier that processed the request (priority, flex, or default). Requests are billed at Priority or Flex prices only when this reports that tier.

choices
Required
array of object
Array itemsobject
FieldType and description
indexinteger
messageChatMessage

ChatMessage

finish_reasonstring

Allowed values: ["stop","length","tool_calls","content_filter"]

usageTokenUsage

TokenUsage

_devup
Required
DevUpBilling

DevUpBilling