image-inpainting

Inpaint masked image regions via RunComfy CLI with JSON input.

12|2|Updated May 18, 2026
One-click install
npx skills add https://github.com/runcomfy-com/skills --skill image-inpainting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-inpainting
Source: https://github.com/runcomfy-com/skills/tree/main/image-inpainting
Command: npx skills add https://github.com/runcomfy-com/skills --skill image-inpainting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of precisely editing or removing unwanted regions in an image, such as deleting objects or watermarks without disturbing the rest of the photo.

Core Features & Use Cases

  • Mask-driven inpainting: Replace regions defined by a grayscale mask while preserving unmasked areas.
  • Fallback when no mask exists: Use description-based edit models to target a region described in words.
  • Controlled model routing: Automatically selects the best inpainting or edit model depending on whether a mask is available.
  • Use cases: Object removal, watermark removal, blemish cleanup, region replacement, and any controlled local edit defined by a binary mask.

Quick Start

Use the image-inpainting skill to replace a masked object by providing the source image URL, a grayscale mask URL, and a prompt describing what should appear in the masked area.

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 an image using a mask?

You can remove unwanted objects by providing the source image URL alongside a valid grayscale mask URL, where white areas indicate regions to inpaint and black areas preserve original content, routing the payload via the runcomfy CLI.

Can I edit a specific region in a photo without a mask?

Yes, you can edit a specific region without a mask by using the description-based fallback. This allows you to target a region described in words, automatically routing the request to an appropriate edit model instead of relying on a grayscale mask.

What is the best way to remove watermarks from photos programmatically?

The best way to remove watermarks programmatically is using mask-driven inpainting via the runcomfy CLI. You provide a JSON input payload containing the image URL and a grayscale mask URL defining the watermark area to clean up while preserving surrounding content.

Do I need a specific mask format for image inpainting?

Yes, you need a valid grayscale mask URL for image inpainting. The mask must use white to define the regions you want to inpaint or replace, and black to indicate the surrounding content that should be preserved during the local edit.

How does the inpainting model selection work?

Model selection works through controlled routing based on input availability. The system automatically selects the best inpainting model when a grayscale mask is provided, or switches to a description-based edit model when masks are unavailable.

What are the limitations of description-based image editing?

The limitation of description-based image editing is that it relies on a fallback model when a grayscale mask is unavailable. Without a precise binary mask, the edit model targets regions based on word descriptions, which may offer less controlled local replacements compared to exact masking.