ChatGPT · Schema

ChatCompletionContentPart

AgentsAIChatGPTEmbeddingsFine-TuningGPT-4GPT-5Language ModelOpenAIRealtime

Properties

Name Type Description
type string The type of the content part.
text string The text content. Required when type is text.
image_url object The image URL content. Required when type is image_url.
input_audio object The audio content. Required when type is input_audio.
View JSON Schema on GitHub

JSON Schema

chatgpt-chat-completions-chat-completion-content-part-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ChatCompletionContentPart",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "The type of the content part."
    },
    "text": {
      "type": "string",
      "description": "The text content. Required when type is text."
    },
    "image_url": {
      "type": "object",
      "description": "The image URL content. Required when type is image_url."
    },
    "input_audio": {
      "type": "object",
      "description": "The audio content. Required when type is input_audio."
    }
  }
}