ChatGPT · Schema

ResponseInputContentPart

AgentsAIChatGPTEmbeddingsFine-TuningGPT-4GPT-5Language ModelOpenAIRealtime

Properties

Name Type Description
type string The type of the content part.
text string The text content. Used when type is input_text.
image_url string The URL of the image. Used when type is input_image.
detail string The detail level for image inputs.
file_id string The ID of the uploaded file. Used when type is input_file.
filename string The name of the file.
View JSON Schema on GitHub

JSON Schema

chatgpt-responseinputcontentpart-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ResponseInputContentPart",
  "title": "ResponseInputContentPart",
  "type": "object",
  "required": [
    "type"
  ],
  "properties": {
    "type": {
      "type": "string",
      "description": "The type of the content part.",
      "enum": [
        "input_text",
        "input_image",
        "input_file"
      ],
      "example": "input_text"
    },
    "text": {
      "type": "string",
      "description": "The text content. Used when type is input_text.",
      "example": "example_value"
    },
    "image_url": {
      "type": "string",
      "format": "uri",
      "description": "The URL of the image. Used when type is input_image.\n",
      "example": "https://www.example.com"
    },
    "detail": {
      "type": "string",
      "description": "The detail level for image inputs.\n",
      "enum": [
        "auto",
        "low",
        "high"
      ],
      "default": "auto",
      "example": "auto"
    },
    "file_id": {
      "type": "string",
      "description": "The ID of the uploaded file. Used when type is input_file.\n",
      "example": "500123"
    },
    "filename": {
      "type": "string",
      "description": "The name of the file.",
      "example": "example_value"
    }
  }
}