image-inpainting

Perform mask-driven image inpainting to remove or replace image regions.

31|9|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/agentspace-so/runcomfy-agent-skills --skill image-inpainting-agentspace-so
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-inpainting
Source: https://github.com/agentspace-so/runcomfy-agent-skills/tree/main/image-inpainting
Command: npx skills add https://github.com/agentspace-so/runcomfy-agent-skills --skill image-inpainting-agentspace-so

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It eliminates time-consuming manual retouching by letting you precisely edit specific parts of an image using a mask.

Core Features & Use Cases

  • Mask-driven inpainting: Replace or remove objects using a grayscale mask where white is regenerated and black is preserved.
  • Description-based fallback: When you do not have a mask, route the edit using spatial instructions to target regions in the photo.
  • Identity/style preserving edits: Support for inpainting via dedicated endpoints plus edit-model fallbacks for different levels of control.
  • Use cases: object removal, watermark removal, region replacement, blemish cleanup, and controlled local edits where the target area is defined by a binary mask.

Quick Start

Use the image-inpainting skill to remove a watermark by running it with your source image URL, a grayscale mask URL for the watermark region, and a prompt that states what should be preserved outside the mask.

Frequently Asked Questions about image-inpainting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I remove an object from a photo using a mask?

To remove objects from a photo, mask-driven image inpainting regenerates specified regions using a grayscale mask where white indicates areas to replace. You provide the source image, mask image, and a prompt describing what should be preserved outside the masked region.

Can I do watermark removal without creating a grayscale mask?

Watermark removal without a mask is possible using a description-based fallback that routes edits via spatial instructions. This allows targeted region cleanup by describing the watermark location in the prompt rather than providing an explicit mask image.

What is mask-driven image inpainting and how does the grayscale format work?

Mask-driven image inpainting is a localized photo retouching technique where a grayscale mask dictates region replacement. White pixels in the mask identify areas to regenerate, while black pixels preserve the original image content.

Does image inpainting work for blemish retouching and localized edits?

Yes, image inpainting works for blemish retouching and localized edits by targeting small regions with a mask. It performs controlled local edits to clean up blemishes while preserving the identity and style of the surrounding photo.

What do I need to run image inpainting for region replacement?

To run image inpainting for region replacement, you need to invoke the RunComfy CLI with your source image URL, a mask image URL, and a prompt. The system routes the request to the tongyi-mai/z-image/turbo/inpainting model using a required JSON schema.