Fill image
generative_fillGenerate content for selected areas of an image using Adobe Firefly, producing output URLs and optional variations.
Instructions
Fill image. Consumes Firefly Services credits. Returns Adobe output URLs. Set wait=false to return an async job.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Compatibility alias for numVariations. Do not supply both. | |
| mask | No | Required. Selected areas of a background image that Firefly uses to fill the source image. | |
| size | No | The desired width and height for the final expanded image in pixels. The supported sizes for the output images are: Square (1:1) - width 2048px, height 2048px Square (1:1) - width 1024px, height 1024px Landscape (4:3) - width 2304px, height 1792px Portrait (3:4) - width 1792px, height 2304px Widescreen (16:9) - width 2688px, height 1536px (7:4) - width 1344px, height 768px (9:7) - width 1152px, height 896px (7:9) - width 896px, height 1152px . | |
| wait | No | Wait for completion, default true. Set false to return the job immediately. | |
| image | No | The image to expand. Use a URL or an uploadID as the source for the image. Firefly only allows these listed domains for input URLs in the request: amazonaws.com windows.net dropboxusercontent.com storage.googleapis.com . | |
| seeds | No | 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 numVariations, the number of seeds must equal numVariations. | |
| width | No | Compatibility alias: provide together with height instead of size. | |
| height | No | Compatibility alias: provide together with width instead of size. | |
| prompt | No | An optional text prompt up to 1024 characters. The longer the prompt the better Firefly performs. | |
| confirm | No | Must be true to spend Firefly Services credits for the operation the user requested. | |
| maskUrl | No | Compatibility URL alias for mask.source.url. | |
| download | No | Download completed media to FIREFLY_OUTPUT_DIR, default false. Requires wait=true. | |
| imageUrl | No | Compatibility URL alias for image.source.url. | |
| numVariations | No | Generate this number of variations. numVariations defaults to the number of seed images, or to 1 if you do not specify seeds. | |
| negativePrompt | No | 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. | |
| promptBiasingLocaleCode | No | 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. |