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-responses-response-input-content-part-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ResponseInputContentPart",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "The type of the content part."
    },
    "text": {
      "type": "string",
      "description": "The text content. Used when type is input_text."
    },
    "image_url": {
      "type": "string",
      "description": "The URL of the image. Used when type is input_image.\n"
    },
    "detail": {
      "type": "string",
      "description": "The detail level for image inputs.\n"
    },
    "file_id": {
      "type": "string",
      "description": "The ID of the uploaded file. Used when type is input_file.\n"
    },
    "filename": {
      "type": "string",
      "description": "The name of the file."
    }
  }
}