{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/jamframe-com/json-schema/jamframe-com-design-generate-request-schema.json",
  "title": "DesignGenerateRequest",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/jamframe-com-openapi.yml#/components/schemas/DesignGenerateRequest",
  "type": "object",
  "required": [
    "prompt"
  ],
  "additionalProperties": false,
  "properties": {
    "prompt": {
      "type": "string",
      "maxLength": 4000,
      "description": "What to design (purpose, content, audience, style). Also the design's name unless `name` is given."
    },
    "size": {
      "type": "string",
      "description": "A size preset id (`instagram-post`, `instagram-portrait`,\n`instagram-story`, `linkedin-post`, `linkedin-carousel`,\n`youtube-thumbnail`, `og-image`, `a4-portrait`…), a short alias\n(`square`, `portrait`, `story`, `landscape`) or `WIDTHxHEIGHT`.\nDefault 1080x1350. Or send `width` and `height`.\n"
    },
    "width": {
      "type": "integer",
      "minimum": 16,
      "maximum": 10000
    },
    "height": {
      "type": "integer",
      "minimum": 16,
      "maximum": 10000
    },
    "pages": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10,
      "description": "Pages to design (a carousel). Default 1."
    },
    "video": {
      "type": "boolean",
      "description": "Make an animated video template (page durations, transitions, enter animations); render it as `mp4`."
    },
    "brand": {
      "description": "`true` (default): the workspace's brand library (colours, fonts,\nlogo); `false`: no brand; or explicit values. Fonts must be\nbrand-library fonts or Google fonts the editor offers.\n",
      "oneOf": [
        {
          "type": "boolean"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "colors": {
              "type": "array",
              "maxItems": 12,
              "items": {
                "type": "string"
              },
              "description": "Hex colours, primary first."
            },
            "fonts": {
              "type": "array",
              "maxItems": 4,
              "items": {
                "type": "string"
              },
              "description": "Font families, heading first."
            },
            "logo": {
              "type": "string",
              "description": "A brand-library image URL or any https image URL."
            }
          }
        }
      ]
    },
    "referenceImageUrl": {
      "type": "string",
      "description": "A public https PNG, JPEG, GIF or WebP to recreate or take inspiration from (a screenshot, a mood board)."
    },
    "name": {
      "type": "string",
      "maxLength": 120,
      "description": "The design's name."
    },
    "async": {
      "type": "boolean",
      "description": "Answer `202` with the job at once instead of waiting."
    },
    "webhookUrl": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "description": "With `\"async\": true`: POSTed `{ event, job }` when the job ends\n(see the `designGenerateCallback` webhook). Public http(s) URLs\nonly (`WEBHOOK_URL_INVALID` otherwise).\n"
    }
  }
}