Mistral AI · Schema

ContentPart

Properties

Name Type Description
type string
text string Text content
image_url object
View JSON Schema on GitHub

JSON Schema

mistral-contentpart-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ContentPart",
  "title": "ContentPart",
  "type": "object",
  "required": [
    "type"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "text",
        "image_url"
      ]
    },
    "text": {
      "type": "string",
      "description": "Text content"
    },
    "image_url": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "description": "URL or base64 data URI of the image"
        }
      }
    }
  }
}