{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/plusai-com/json-schema/plusai-com-create-presentation-request-schema.json",
  "title": "CreatePresentationRequest",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/plusai-com-openapi.json#/components/schemas/CreatePresentationRequest",
  "properties": {
    "attachments": {
      "description": "Files to use as content sources for the deck. In `IMAGES` mode,\nPNG/JPEG attachments additionally steer the generated images as\nstyle references. Each `fileId` comes from\n`PUT /r/v0/files/upload`.\n",
      "items": {
        "properties": {
          "fileId": {
            "type": "string"
          }
        },
        "required": [
          "fileId"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "design": {
      "description": "`IMAGES` mode only. Free-form deck-wide design direction (as\nproduced by the writer agent), threaded into every per-slide image\nprompt so the deck stays visually cohesive. Rejected with `400` in\n`SLIDES` mode.\n",
      "type": "string"
    },
    "generationMode": {
      "default": "SLIDES",
      "description": "Generation pipeline to use. `SLIDES` (default) produces a\ntext-based deck; `IMAGES` produces an image-per-slide deck.\n",
      "enum": [
        "SLIDES",
        "IMAGES"
      ],
      "type": "string"
    },
    "includeUserTips": {
      "default": false,
      "type": "boolean"
    },
    "language": {
      "default": "en",
      "type": "string"
    },
    "numberOfSlides": {
      "type": "integer"
    },
    "prompt": {
      "type": "string"
    },
    "slides": {
      "description": "`IMAGES` mode only. A caller-supplied outline, matching what the\nweb app's writer agent produces. When provided, the deck is\ngenerated from these slides rather than from the prompt alone.\nMust contain between 1 and 40 slides; rejected with `400` in\n`SLIDES` mode.\n",
      "items": {
        "properties": {
          "keyPoints": {
            "description": "The main ideas this slide must communicate.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "referenceFileIds": {
            "description": "Reference image file IDs targeted at this slide. Each id must\nalso appear in `attachments` (from `PUT /r/v0/files/upload`).\n",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "supportingInformation": {
            "description": "Supporting data, facts, quotes, or context the slide can\ndraw on.\n",
            "type": "string"
          },
          "title": {
            "description": "The slide title. Required and must be non-empty.",
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "templateId": {
      "type": "string"
    },
    "textHandling": {
      "description": "How existing text content should be handled.",
      "type": "string"
    }
  },
  "required": [
    "prompt"
  ],
  "type": "object"
}