ChatGPT · Schema

ChatCompletionContentPart

AgentsArtificial IntelligenceChatGPTEmbeddingsFine-TuningGPT-4GPT-5Language ModelOpenAIReal-Time

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-chatcompletioncontentpart-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ChatCompletionContentPart",
  "title": "ChatCompletionContentPart",
  "type": "object",
  "required": [
    "type"
  ],
  "properties": {
    "type": {
      "type": "string",
      "description": "The type of the content part.",
      "enum": [
        "text",
        "image_url",
        "input_audio"
      ],
      "example": "text"
    },
    "text": {
      "type": "string",
      "description": "The text content. Required when type is text.",
      "example": "example_value"
    },
    "image_url": {
      "type": "object",
      "description": "The image URL content. Required when type is image_url.",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Either a URL of the image or the base64 encoded image data.\n"
        },
        "detail": {
          "type": "string",
          "description": "Specifies the detail level of the image. low uses fewer\ntokens; high enables detailed image understanding.\n",
          "enum": [
            "auto",
            "low",
            "high"
          ],
          "default": "auto"
        }
      },
      "example": "https://www.example.com"
    },
    "input_audio": {
      "type": "object",
      "description": "The audio content. Required when type is input_audio.",
      "properties": {
        "data": {
          "type": "string",
          "description": "Base64 encoded audio data."
        },
        "format": {
          "type": "string",
          "description": "The format of the encoded audio data.",
          "enum": [
            "wav",
            "mp3"
          ]
        }
      },
      "example": "example_value"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/chatgpt-chatcompletioncontentpart"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.