{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mysiren-ai/json-schema/mysiren-ai-studio-generate-request-schema.json",
  "title": "StudioGenerateRequest",
  "description": "Fire a Studio render.\n\nTwo equally valid shapes:\n\n1. **design_id** (preferred, frictionless) — reference a saved Studio\n   design. Optional ``data`` shallow-merges over the saved body so event\n   values (pnl, price, handle…) can change without re-shipping the full\n   seed. One workspace API key + one Studio profile covers every design.\n2. **output_type + data** — legacy / explicit full body (wizard snippets).",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mysiren-ai-openapi.json#/components/schemas/StudioGenerateRequest",
  "properties": {
    "design_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 40
        },
        {
          "type": "null"
        }
      ],
      "title": "Design Id"
    },
    "output_type": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Type"
    },
    "data": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Data"
    },
    "caption": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Caption"
    },
    "delivery": {
      "type": "string",
      "pattern": "^(auto|download)$",
      "title": "Delivery",
      "default": "auto"
    },
    "channel": {
      "type": "string",
      "maxLength": 80,
      "title": "Channel",
      "default": "twitter"
    },
    "surface": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 40
        },
        {
          "type": "null"
        }
      ],
      "title": "Surface"
    }
  },
  "type": "object"
}