{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-image-generate-request-v3-schema.json",
  "title": "ImageGenerateRequestV3",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-firefly-openapi.yml#/components/schemas/ImageGenerateRequestV3",
  "type": "object",
  "required": [
    "prompt"
  ],
  "properties": {
    "prompt": {
      "type": "string",
      "title": "The prompt",
      "description": "The prompt used to generate the image. The longer the prompt, the better.",
      "minLength": 1,
      "maxLength": 1500
    },
    "aspectRatio": {
      "$ref": "#/$defs/AspectRatio",
      "description": "The aspect ratio of the requested generations. This controls the size of the generated image. When <code>referenceBlobs</code> is included in the request, this property should be omitted or set to <code>auto</code>."
    },
    "resolutionLevel": {
      "type": "string",
      "title": "Resolution level",
      "description": "The resolution level.",
      "enum": [
        "1MP",
        "2.4MP",
        "4MP"
      ],
      "default": "2.4MP"
    },
    "modelId": {
      "$ref": "#/$defs/FireflyModelId",
      "description": "The specific model to use for image generation. Available options: 'firefly_image' for Firefly Image model."
    },
    "modelSpecificPayload": {
      "$ref": "#/$defs/ModelSpecificPayloadV3",
      "description": "Additional model-specific parameters for controlling the generation process."
    },
    "numVariations": {
      "type": "integer",
      "maximum": 1,
      "title": "The number of variations",
      "description": "The number of image variations to generate. Greater than 1 is not supported. Only one image per variation is allowed. For multiple variations, send separate requests."
    },
    "referenceBlobs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReferenceBlobV3"
      },
      "title": "Reference blobs",
      "description": "List of reference blobs that will be used as additional input for the generation process. Only one reference image is supported. When this array is not empty, <code>aspectRatio</code> must be omitted or set to <code>auto</code>. [Pre-signed URLs can be used from supported domains](https://developer.adobe.com/firefly-services/docs/firefly-api/getting-started/usage-notes/#image-api-usage).",
      "default": [],
      "maxItems": 1
    },
    "seeds": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "maxItems": 1,
      "title": "The seeds for the generations",
      "description": "The seed value to vary the image generation. Only one seed per variation is allowed. If specified alongside with numVariations, the number of seeds must be equal to numVariations."
    }
  },
  "$defs": {
    "AspectRatio": {
      "type": "string",
      "title": "AspectRatio",
      "enum": [
        "1:1",
        "4:3",
        "3:4",
        "16:9",
        "9:16",
        "auto"
      ]
    },
    "FireflyModelId": {
      "type": "string",
      "title": "FireflyModelId",
      "enum": [
        "firefly_image"
      ]
    },
    "ModelSpecificPayloadV3": {
      "type": "object",
      "title": "ModelSpecificPayloadV3",
      "description": "Model-specific payload parameters for V3 generation workflows.",
      "properties": {
        "localeCode": {
          "type": "string",
          "title": "The locale code used for image generations",
          "description": "The locale code (following RFC 5646 format, e.g., 'en-US') will be used to generate content that is more relevant for user's country and language."
        },
        "prompt_reasoner": {
          "type": "string",
          "title": "Prompt reasoner mode",
          "description": "Controls the prompt reasoning strategy used during image generation. When set to <code>quality</code>, the response includes a populated <code>altText</code> field with a generated description of the image. When set to <code>speed</code>, prompt reasoning is optimized for speed and the <code>altText</code> field is returned empty.",
          "enum": [
            "quality",
            "speed"
          ],
          "default": "speed"
        }
      }
    },
    "ReferenceBlobSourceV3": {
      "type": "object",
      "title": "ReferenceBlobSourceV3",
      "description": "Source specification for a reference blob input asset. Input images must meet these requirements: file size must be 10 MB or less; image area must be between 512×512 and 2048×2048 pixels (inclusive); aspect ratio must be between 1:5 and 5:1 (inclusive).",
      "properties": {
        "uploadId": {
          "type": "string",
          "format": "uuid",
          "title": "Upload ID",
          "description": "The ID of an asset previously uploaded to the Firefly Upload Image API."
        },
        "url": {
          "type": "string",
          "title": "URL",
          "description": "URL of the reference image."
        }
      }
    },
    "ReferenceBlobUsageV3": {
      "type": "string",
      "title": "ReferenceBlobUsageV3",
      "enum": [
        "general"
      ]
    },
    "ReferenceBlobV3": {
      "type": "object",
      "title": "ReferenceBlobV3",
      "description": "Reference blob for V3 API. Style Guide compliant: The <code>source</code> property specifies the input location, and other properties like <code>usage</code> are peers of <code>source</code>.",
      "required": [
        "source"
      ],
      "properties": {
        "source": {
          "$ref": "#/$defs/ReferenceBlobSourceV3",
          "description": "The source location of the reference image."
        },
        "usage": {
          "$ref": "#/$defs/ReferenceBlobUsageV3",
          "description": "The usage of the reference blob. Available options: 'general' for general reference."
        }
      }
    }
  }
}