{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-generate-similar-images-request-v3-schema.json",
  "title": "Generating similar images from a reference image",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-firefly-openapi.yml#/components/schemas/GenerateSimilarImagesRequestV3",
  "properties": {
    "image": {
      "$ref": "#/$defs/BaseInputImageV3",
      "description": "Firefly will create similar variations. Use a URL or an <code>uploadID</code> as the source for the image. Firefly only allows these listed domains: <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>."
    },
    "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"
    },
    "seeds": {
      "description": "Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. 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 image for 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 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"
  ],
  "type": "object",
  "$defs": {
    "BaseInputImageV3": {
      "properties": {
        "source": {
          "$ref": "#/$defs/PublicBinaryInputV3",
          "description": "Source image that Firefly expands, fills, uses to generate similar images, or upscales."
        }
      },
      "required": [
        "source"
      ],
      "title": "BaseInputImageV3",
      "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"
    }
  }
}