
Image Inpainting
Remove objects or watermarks from still images using a mask,Fill or replace a masked region with Z-Image Turbo or edit models,Run inpainting jobs through the runcomfy CLI from an agent workflow
Install
npx skills add https://github.com/agentspace-so/runcomfy-agent-skills --skill image-inpaintingWhat is this skill?
- Mask-driven Z-Image Turbo Inpainting plus fallback edit models when no mask exists
- Covers removal, region fill, blemish cleanup, and watermark/object removal
- Explicit trigger phrases and MIT-licensed RunComfy homepage links in skill front matter
Adoption & trust: 151k installs on skills.sh; 15 GitHub stars; 2/3 security scanners passed (skills.sh audits).
Recommended Skills
Journey fit
These are production integration skills for agents that call RunComfy inpainting endpoints during build workflows. The skill is defined for allowed-tools Bash(runcomfy *) and routes models via CLI—classic agent-tooling rather than hand-authored app code.
Common Questions / FAQ
Is Image Inpainting safe to install?
skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Image Inpainting
# Image Inpainting Mask-driven region edits — remove objects, fill gaps, replace masked areas — on RunComfy via the `runcomfy` CLI. This skill routes to Z-Image Turbo Inpainting when a mask is available, and to instruction-driven edit models when the region must be described in prose. [runcomfy.com](https://www.runcomfy.com/?utm_source=skills.sh&utm_medium=skill&utm_campaign=image-inpainting) · [Z-Image Inpainting](https://www.runcomfy.com/models/tongyi-mai/z-image/turbo/inpainting?utm_source=skills.sh&utm_medium=skill&utm_campaign=image-inpainting) · [CLI docs](https://docs.runcomfy.com/cli/introduction?utm_source=skills.sh&utm_medium=skill&utm_campaign=image-inpainting) ## Powered by the RunComfy CLI ```bash # 1. Install (see runcomfy-cli skill for details) npm i -g @runcomfy/cli # or: npx -y @runcomfy/cli --version # 2. Sign in runcomfy login # or in CI: export RUNCOMFY_TOKEN=<token> # 3. Inpaint runcomfy run tongyi-mai/z-image/turbo/inpainting \ --input '{"image": "...", "mask_image": "...", "prompt": "..."}' \ --output-dir ./out ``` CLI deep dive: [`runcomfy-cli`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/runcomfy-cli) skill. --- ## Pick the right model Listed by precision of region targeting (mask-required first, then description-based). **Z-Image Turbo Inpainting** — `tongyi-mai/z-image/turbo/inpainting` *(default — mask required)* > Dedicated inpainting endpoint with mask, strength, and control-scale. Open-weights, sub-second to a few seconds. > Pick for: precise region edits with a binary mask — object removal, watermark cleanup, full-region replacement. > Avoid for: edits without a mask — use Nano Banana 2 Edit (description-based). **Z-Image Turbo Inpainting LoRA** — [`tongyi-mai/z-image/turbo/inpainting/lora`](https://www.runcomfy.com/models/tongyi-mai/z-image/turbo/inpainting/lora?utm_source=skills.sh&utm_medium=skill&utm_campaign=image-inpainting) > Inpainting endpoint with LoRA adapter support — apply a fine-tuned style during inpainting. > Pick for: brand-style-locked inpainting (LoRA captures the look, mask defines the region). > Avoid for: generic inpainting — use the base inpainting endpoint. **Nano Banana 2 Edit** — `google/nano-banana-2/edit` *(description-based fallback)* > Identity-preserving edit driven by spatial language ("the watermark in the bottom-right", "the cables overhead"). No mask required. > Pick for: when no mask is available and the region can be described. > Avoid for: precise pixel-level region edges — use Z-Image Inpainting. **GPT Image 2 Edit** — `openai/gpt-image-2/edit` > Multi-ref edit with layout-precise instructions; honors "remove only the X" directives. > Pick for: complex prompt + reference composition where the masked region needs context from other images. > Avoid for: simple single-image mask-driven jobs — use Z-Image Inpainting. **FLUX Kontext Pro** — `blackforestlabs/flux-1-kontext/pro/edit` > Single-instruction local edit with maximum preservation of everything else. > Pick for: "keep everything exce