{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-generate-images-request-v3-schema.json",
  "title": "Generating images from prompt",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-firefly-openapi.yml#/components/schemas/GenerateImagesRequestV3",
  "properties": {
    "contentClass": {
      "$ref": "#/$defs/ContentClassV3",
      "description": "Directs the style of a generated image to be photographic or like fine art."
    },
    "customModelId": {
      "type": "string",
      "description": "Include the specific custom model ID when a custom model type is designated in the `x-model-version` header parameter."
    },
    "negativePrompt": {
      "description": "A negative prompt of things Firefly will try to avoid generating in the image. Not supported for Firefly Custom Models on Image Model 3 or Firefly Custom Models on Image Model 4.",
      "maxLength": 1024,
      "type": "string"
    },
    "numVariations": {
      "description": "The number of variations to generate. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify `seeds`.",
      "maximum": 4,
      "minimum": 1,
      "type": "integer"
    },
    "prompt": {
      "description": "A text prompt to support the generation of an image. The longer the prompt the better Firefly performs.",
      "maxLength": 1024,
      "minLength": 1,
      "type": "string"
    },
    "promptBiasingLocaleCode": {
      "description": "A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region (like en-US). When a locale is set, the prompt will be biased to generate more relevant content for that region. If not specified, the locale will be auto-detected based on your profile and the accepted language header.",
      "type": "string"
    },
    "seeds": {
      "description": "An array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, use the same seed to generate a similar image in different styles. If specified along with <code>numVariations</code>, the number of seeds provided must equal <code>numVariations</code>.",
      "items": {
        "type": "integer"
      },
      "maxItems": 4,
      "minItems": 1,
      "type": "array",
      "uniqueItems": true
    },
    "size": {
      "allOf": [
        {
          "$ref": "#/$defs/Size"
        }
      ],
      "default": {
        "height": 2048,
        "width": 2048
      },
      "description": "The desired width and height for the final image, in pixels. Supported sizes for the output images with `image3` are: <ul> <li>Square (1:1) - width 2048px, height 2048px </li> <li>Square (1:1) - width 1024px, height 1024px </li> <li>Landscape (4:3)  - width 2304px, height 1792px </li> <li>Portrait (3:4)  - width 1792px, height 2304px</li>  <li>Widescreen (16:9) - width 2688px, height 1536px </li> <li>Widescreen (16:9) - width 2688px, height 1512px </li> <li>(7:4)  - width 1344px, height 768px </li> <li>(7:4)  - width 1344px, height 756px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul> Supported sizes for the output images with `image4` are: <ul> <li>(1:1) - width 2048px, height 2048px</li> <li>(4:3) - width 2304px, height 1792px</li> <li>(3:4) - width 1792px, height 2304px</li> <li>(16:9) - width 2688px, height 1536px</li> <li>(9:16) - width 1440px, height 2560px</li> </ul>."
    },
    "structure": {
      "description": "An object with the reference image details for structure.",
      "$ref": "#/$defs/StructureReferenceV3"
    },
    "style": {
      "description": "An object with the reference image details for style.",
      "$ref": "#/$defs/StylesV3"
    },
    "upsamplerType": {
      "description": "Only supported with the model version `image4_custom`. The `default` setting upscales generated images to 2k. The `low_creativity` setting refines the image generation by removing distortions, smoothing textures, and sometimes adding details (like freckles to faces in close-up). This setting is recommended for generating images with human subjects.",
      "enum": [
        "default",
        "low_creativity"
      ],
      "default": "default",
      "type": "string"
    },
    "visualIntensity": {
      "description": "Adjust the overall intensity of your photo's characteristics, such as contrast, shadow, and hue. This is not supported with the model version `image4_custom`.",
      "maximum": 10,
      "minimum": 2,
      "type": "integer"
    }
  },
  "required": [
    "prompt"
  ],
  "type": "object",
  "$defs": {
    "ContentClassV3": {
      "description": "The content class of the image.",
      "enum": [
        "photo",
        "art"
      ],
      "type": "string"
    },
    "PublicBinaryInputV3": {
      "properties": {
        "uploadId": {
          "description": "The `uploadId` from the storage API response.",
          "format": "uuid4",
          "title": "The upload ID",
          "type": "string"
        },
        "url": {
          "description": "The pre-signed URL of an uploaded file. Use a URL or an `uploadID` as the source for the image. Firefly only allows these listed domains in the request: <ul> <li><code>amazonaws.com</code></li> <li><code>windows.net</code></li> <li><code>dropboxusercontent.com</code></li> <li><code>storage.googleapis.com</code></li> </ul>.",
          "format": "uri",
          "maxLength": 2083,
          "minLength": 1,
          "title": "The pre-signed URL",
          "type": "string"
        }
      },
      "title": "PublicBinaryInputV3",
      "type": "object"
    },
    "Size": {
      "properties": {
        "height": {
          "maximum": 4096,
          "minimum": 1,
          "type": "integer"
        },
        "width": {
          "maximum": 4096,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "width",
        "height"
      ],
      "type": "object"
    },
    "StructureImageReferenceV3": {
      "properties": {
        "source": {
          "$ref": "#/$defs/PublicBinaryInputV3"
        }
      },
      "type": "object"
    },
    "StructureReferenceV3": {
      "properties": {
        "imageReference": {
          "$ref": "#/$defs/StructureImageReferenceV3"
        },
        "strength": {
          "description": "Control how strictly Firefly adheres to the reference image when it generates the image variations. 0 means no adherence. 100 means full adherence.",
          "maximum": 100,
          "minimum": 0,
          "title": "Adherence Threshold",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "StylesImageReferenceV3": {
      "properties": {
        "source": {
          "$ref": "#/$defs/PublicBinaryInputV3"
        }
      },
      "type": "object"
    },
    "StylesV3": {
      "properties": {
        "imageReference": {
          "$ref": "#/$defs/StylesImageReferenceV3"
        },
        "presets": {
          "description": "The style presets. Specify an ID for a style of image to generate.",
          "items": {
            "type": "string"
          },
          "type": "array",
          "uniqueItems": true
        },
        "strength": {
          "description": "How strictly Firefly should adhere to the style you provide. 0 means no adherence. 100 means full adherence.",
          "exclusiveMinimum": 0,
          "maximum": 100,
          "type": "integer"
        }
      },
      "type": "object"
    }
  }
}