{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-fill-image-request-v3-schema.json",
  "title": "Fill images payload",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-firefly-openapi.yml#/components/schemas/FillImageRequestV3",
  "properties": {
    "image": {
      "$ref": "#/$defs/InputImageV3",
      "description": "The image to expand. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains for input URLs 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>."
    },
    "mask": {
      "$ref": "#/$defs/InputMaskV3",
      "description": "Required. Selected areas of a background image that Firefly uses to fill the source image."
    },
    "negativePrompt": {
      "description": "An optional text prompt up to 1024 characters. Avoid these characteristics in the generated image. Not supported for Firefly Custom Models on Image Model 3 or Firefly Custom Models on Image Model 4.",
      "maxLength": 1024,
      "title": "Avoid prompt",
      "type": "string"
    },
    "numVariations": {
      "description": "Generate this number of variations. <code>numVariations</code> defaults to the number of seed images, or to 1 if you do not specify seeds.",
      "maximum": 4,
      "minimum": 1,
      "title": "The number of variations",
      "type": "integer"
    },
    "prompt": {
      "description": "An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs.",
      "maxLength": 1024,
      "minLength": 1,
      "title": "The prompt",
      "type": "string"
    },
    "promptBiasingLocaleCode": {
      "description": "A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as en-US. When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on your profile and the accepted language header.",
      "title": "The locale used to generate an image",
      "type": "string"
    },
    "seeds": {
      "description": "Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified along with <code>numVariations</code>, the number of seeds must equal <code>numVariations</code>.",
      "items": {
        "type": "integer"
      },
      "maxItems": 4,
      "minItems": 1,
      "title": "The seed of each variation",
      "type": "array",
      "uniqueItems": true
    },
    "size": {
      "allOf": [
        {
          "$ref": "#/$defs/Size"
        }
      ],
      "default": {
        "height": 2048,
        "width": 2048
      },
      "description": "The desired width and height for the final expanded image in pixels. The supported sizes for the output images 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>(7:4)  - width 1344px, height 768px </li> <li>(9:7) - width 1152px, height 896px </li> <li>(7:9) - width 896px, height 1152px</li> </ul>.",
      "title": "The size"
    }
  },
  "required": [
    "image",
    "mask"
  ],
  "type": "object",
  "$defs": {
    "InputImageV3": {
      "properties": {
        "mask": {
          "allOf": [
            {
              "$ref": "#/$defs/PublicBinaryInputV3"
            }
          ],
          "deprecated": true,
          "description": "This is a deprecated property. Use <code>mask</code> instead.",
          "title": "Deprecated mask image"
        },
        "source": {
          "$ref": "#/$defs/PublicBinaryInputV3",
          "description": "Source image that Firefly expands, fills, or uses to generate similar images."
        }
      },
      "required": [
        "source"
      ],
      "title": "InputImageV3",
      "type": "object"
    },
    "InputMaskV3": {
      "properties": {
        "invert": {
          "description": "Invert mask is an optional boolen property, use <code>true</code> if you want take an image mask, invert it and apply it.",
          "title": "Invert mask",
          "type": "boolean"
        },
        "source": {
          "$ref": "#/$defs/PublicBinaryInputV3"
        }
      },
      "required": [
        "source"
      ],
      "title": "InputMaskV3",
      "type": "object"
    },
    "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"
    }
  }
}