ChatGPT · JSON Structure

Chatgpt Chat Completions Create Chat Completion Request Structure

Type: object Properties: 21
AgentsAIChatGPTEmbeddingsFine-TuningGPT-4GPT-5Language ModelOpenAIRealtime

CreateChatCompletionRequest is a JSON Structure definition published by ChatGPT, describing 21 properties. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

model messages frequency_penalty logit_bias logprobs top_logprobs max_completion_tokens n presence_penalty seed stop stream stream_options temperature top_p tools tool_choice parallel_tool_calls user store metadata

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft/2020-12/schema",
  "name": "CreateChatCompletionRequest",
  "type": "object",
  "properties": {
    "model": {
      "type": "string"
    },
    "messages": {
      "type": "array"
    },
    "frequency_penalty": {
      "type": "number"
    },
    "logit_bias": {
      "type": "object"
    },
    "logprobs": {
      "type": "boolean"
    },
    "top_logprobs": {
      "type": "integer"
    },
    "max_completion_tokens": {
      "type": "integer"
    },
    "n": {
      "type": "integer"
    },
    "presence_penalty": {
      "type": "number"
    },
    "seed": {
      "type": "integer"
    },
    "stop": {
      "type": "string"
    },
    "stream": {
      "type": "boolean"
    },
    "stream_options": {
      "type": "object"
    },
    "temperature": {
      "type": "number"
    },
    "top_p": {
      "type": "number"
    },
    "tools": {
      "type": "array"
    },
    "tool_choice": {
      "type": "string"
    },
    "parallel_tool_calls": {
      "type": "boolean"
    },
    "user": {
      "type": "string"
    },
    "store": {
      "type": "boolean"
    },
    "metadata": {
      "type": "object"
    }
  }
}