ChatGPT · Schema

CreateChatCompletionResponse

AgentsAIChatGPTEmbeddingsFine-TuningGPT-4GPT-5Language ModelOpenAIRealtime

Properties

Name Type Description
id string A unique identifier for the chat completion.
object string The object type, always chat.completion.
created integer The Unix timestamp (in seconds) of when the chat completion was created.
model string The model used for the chat completion.
choices array A list of chat completion choices. Can be more than one if n is greater than 1.
usage object
system_fingerprint string This fingerprint represents the backend configuration that the model runs with. Can be used with the seed parameter to understand when backend changes have been made.
service_tier string The service tier used for processing the request.
View JSON Schema on GitHub

JSON Schema

chatgpt-createchatcompletionresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateChatCompletionResponse",
  "title": "CreateChatCompletionResponse",
  "type": "object",
  "required": [
    "id",
    "object",
    "created",
    "model",
    "choices"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "A unique identifier for the chat completion.",
      "example": "abc123"
    },
    "object": {
      "type": "string",
      "description": "The object type, always chat.completion.",
      "enum": [
        "chat.completion"
      ],
      "example": "chat.completion"
    },
    "created": {
      "type": "integer",
      "description": "The Unix timestamp (in seconds) of when the chat completion\nwas created.\n",
      "example": 10
    },
    "model": {
      "type": "string",
      "description": "The model used for the chat completion.",
      "example": "example_value"
    },
    "choices": {
      "type": "array",
      "description": "A list of chat completion choices. Can be more than one\nif n is greater than 1.\n",
      "items": {
        "$ref": "#/components/schemas/ChatCompletionChoice"
      },
      "example": []
    },
    "usage": {
      "$ref": "#/components/schemas/CompletionUsage"
    },
    "system_fingerprint": {
      "type": "string",
      "description": "This fingerprint represents the backend configuration that\nthe model runs with. Can be used with the seed parameter\nto understand when backend changes have been made.\n",
      "nullable": true,
      "example": "example_value"
    },
    "service_tier": {
      "type": "string",
      "description": "The service tier used for processing the request.",
      "nullable": true,
      "example": "example_value"
    }
  }
}