capabilities.work

Generative Fill from a Generated Mask

A 4-step recipe with Adobe Photoshop. We can help you get access.

Recipe · 4 steps

Generative Fill from a Generated Mask

Derive a mask via background removal and fill that region with generative AI.

  1. Run background removal in mask mode, which returns a grayscale mask of the detected subject rather than a cutout. That mask defines the region the generative fill step will replace.
  2. Poll the Sensei status endpoint until the mask is ready. The submit call returns the absolute status URL in _links.self.href; the jobId this operation requires is the final path segment of that URL, so a runner takes that segment from statu
  3. Submit the original image together with the generated mask so the generative service synthesizes new content into the masked region.
  4. Poll the Sensei status endpoint until the generative fill job reports succeeded and the filled image is available.
What you'll need to have ready
  • imageUrl: Pre-signed GET URL of the source image to fill.
For your developer

Arazzo workflow adobe-photoshop:generative-fill, 4 operations: removeBackgroundV2 → getSenseiJobStatus → fillMaskedAreas → getSenseiJobStatus. Specs on APIs.io.