{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nativeads-ai/json-schema/nativeads-ai-scene-forge-input-schema.json",
  "title": "SceneForgeInput",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nativeads-ai-openapi.yml#/components/schemas/SceneForgeInput",
  "type": "object",
  "required": [
    "blendingPrompt",
    "promptIsEnhanced"
  ],
  "properties": {
    "blendingPrompt": {
      "type": "string",
      "minLength": 1,
      "maxLength": 10000,
      "description": "Scene composition prompt (original or enhanced). Up to 10000 characters. A prompt longer\nthan 2500 characters is condensed by the pipeline before the image model reads it; once\nthe job completes, the scene forge returns the text the model rendered as `blendingPrompt`\n(as it returns the enhanced prompt today), and `authoredPrompt` keeps the text you sent.\n"
    },
    "promptIsEnhanced": {
      "type": "boolean",
      "description": "Whether the prompt has been AI-enhanced. Set to true only when the current prompt text exactly matches an accepted enhancement result. Undo and manual edits set this to false.\n"
    },
    "partner": {
      "$ref": "#/$defs/Partner"
    },
    "theme": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500,
      "description": "Theme from preview (when promptIsEnhanced=true and preview was accepted)"
    },
    "aspectRatio": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "1:1",
        "2:3",
        "3:2",
        "3:4",
        "4:3",
        "9:16",
        "16:9",
        "21:9"
      ],
      "description": "Target aspect ratio for generation (optional)"
    },
    "productAssetIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "maxItems": 5,
      "description": "Array of product asset UUIDs (max 5 products)"
    },
    "environmentAssetId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Optional environment asset UUID (from environment generation or uploaded)"
    },
    "useBrandDna": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether to apply Brand DNA to scene generation (defaults to true if omitted)"
    },
    "transparentBackground": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Render the subject on a transparent background, with no backdrop. Each variation is a\nPNG with an alpha channel. Cannot be combined with `environmentAssetId`. Every later round of\nthe scene forge (extend, refine) keeps it. Omitted (or null) means false.\n"
    },
    "authoredPrompt": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 10000,
      "description": "If you called the prompt-enhancement endpoint and are submitting its output as\n`blendingPrompt`, pass the text you wrote before enhancement here. Omit it otherwise;\nthe server stores `blendingPrompt`. Stored write-once as `authoredPrompt`. Not the same\nas `originalPrompt`, which is the prompt as submitted.\n"
    },
    "adverteyesScoring": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether AdverEyes scores this generation's variations. Omitted (or\nnull) means false. A scored round takes one Creative Optimization;\nwhen none is left it is refused with 400 USAGE_LIMIT_EXCEEDED and\nnothing starts. An extend sent\nwithout its own adverteyesScoring reuses the value of the scene\nforge's most recent generate or extend round, or false when that\nround stored none.\n"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Partner": {
      "type": "string",
      "description": "Partner (retail-media network) slug. `default` means no partner.",
      "enum": [
        "default",
        "walmart",
        "chewy",
        "instacart"
      ],
      "x-enum-varnames": [
        "PARTNER_DEFAULT",
        "PARTNER_WALMART",
        "PARTNER_CHEWY",
        "PARTNER_INSTACART"
      ]
    }
  }
}