runcomfy-com/skills

image-inpainting

Mask-driven image inpainting on RunComfy via the `runcomfy` CLI.

  • SKILL.md 已保存
  • 英文来源资料
  • 安装与运行未实测
先判断是否解决你的问题

image-inpainting 是什么?

Mask-driven image inpainting on RunComfy via the runcomfy CLI. Routes to Tongyi MAI Z-Image Turbo Inpainting (the dedicated inpainting endpoint with mask, strength, and control-scale) and to identity-preserving edit models (Nano Banana 2 Edit, GPT Image 2 Edit, FLUX Kontext Pro) when a mask isn't available and the region must be described instead. Use for object removal, watermark removal, region replacement, blemish cleanup, and any controlled local edit where a binary mask defines the target area. Triggers on "inpaint", "inpainting", "image inpaint", "remove from image", "fill region", "mask-driven edit", "remove watermark", "remove object", "patch the photo", "fill the hole", or any explicit ask to edit a specific masked region of a still.

以上为来源原文,中文用途说明尚待整理。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 image-inpainting,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 image-inpainting

请在 Codex 的当前工作环境中安装并检查 image-inpainting 这个 Skill。

项目身份:runcomfy-com/skills / image-inpainting
来源:https://github.com/runcomfy-com/skills/blob/f28664df57dc6dff8a4ddbc458b5c2bfff6d9f63/image-inpainting/SKILL.md
已定位的源文件:image-inpainting/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-19T19:32:10.677Z
中文使用说明
尚待整理,保留英文来源内容
安装与任务测试
本站未执行安装或任务测试
来源复核
已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料

image-inpainting/SKILL.md · 抓取时间 2026-11-19T19:32:10.677Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Mask-driven image inpainting on RunComfy via the `runcomfy` CLI. Routes to Tongyi MAI Z-Image Turbo Inpainting (the dedicated inpainting endpoint with mask, strength, and control-scale) and to identity-preserving edit models (Nano Banana 2 Edit, GPT Image 2 Edit, FLUX Kontext Pro) when a mask isn't available and the region must be described instead. Use for object removal, watermark removal, region replacement, blemish cleanup, and any controlled local edit where a binary mask defines the target area. Triggers on "inpaint", "inpainting", "image inpaint", "remove from image", "fill region", "mask-driven edit", "remove watermark", "remove object", "patch the photo", "fill the hole", or any explicit ask to edit a specific masked region of a still.

查看源文件章节 / Source sections
  • 原文:Image Inpainting
  • 原文:Powered by the RunComfy CLI
  • 原文:Pick the right model
  • 原文:Route 1: Z-Image Turbo Inpainting — default
  • 原文:Schema
  • 原文:Invoke
  • 原文:Prompting tips
  • 原文:Route 2: Description-based fallback (no mask)
  • 原文:Common patterns
  • 原文:Watermark removal
  • 原文:Background full-swap
  • 原文:Object addition into a hole
  • 原文:Brand-style-locked inpainting
  • 原文:Complex layout repositioning (move element from X to Y)
  • 原文:What this skill doesn't do
  • 原文:Browse the full catalog
  • 原文:Exit codes
  • 原文:How it works
  • 原文:Security & Privacy
  • 原文:See also
原文: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 except X" style local edits without a mask. > Avoid for: explicit mask-driven workflows — use Z-Image Inpainting. ---

原文:Route 1: Z-Image Turbo Inpainting — default

**Model**: `tongyi-mai/z-image/turbo/inpainting` **Catalog**: [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)

原文:Schema

| Field | Type | Required | Notes | |---|---|---|---| | `prompt` | string | yes | What fills the masked region; describe preservation constraints for the surround | | `image` | string | yes | Source image URL | | `mask_image` | string | yes | **Grayscale mask URL** (white = inpaint, black = preserve) | | `strength` | float | no | 0.3–0.6 for retouching, 0.7–1.0 for full replacement | | `control_scale` | float | no | 0.6–0.9 typical | | `aspect_ratio` | enum | no | W:H output ratio | | `seed` | int | no | Reproducibility |

原文:Invoke

**Object removal (low strength):** ```bash runcomfy run tongyi-mai/z-image/turbo/inpainting \ --input '{ "prompt": "Remove overhead cables; preserve rooflines and sky gradient; thin clean sky.", "image": "https://your-cdn.example/street.jpg", "mask_image": "https://your-cdn.example/cables-mask.png", "strength": 0.5, "control_scale": 0.8 }' \ --output-dir ./out ``` **Region replacement (high strength):** ```bash runcomfy run tongyi-mai/z-image/turbo/inpainting \ --input '{ "prompt": "Replace busy backdrop with smooth light gray studio paper; mask background only.", "image": "https://your-cdn.example/product.jpg", "mask_image": "https://your-cdn.example/bg-mask.png", "strength": 0.9 }' \ --output-dir ./out ```

文件 SHA256:ac0654910addb44b1ceaeda38d8e2f0d66c337d0f2bfb6acd15ce74b39cba0b3

仓库许可证记录:MIT;skill-declaration-captured-not-interpreted,查看来源。

SKILL.md原文description · 2026-11-19T19:32:10.677Z

Mask-driven image inpainting on RunComfy via the `runcomfy` CLI. Routes to Tongyi MAI Z-Image Turbo Inpainting (the dedicated inpainting endpoint with mask, strength, and control-scale) and to identity-preserving edit models (Nano Banana 2 Edit, GPT Image 2 Edit, FLUX Kontext Pro) when a mask isn't available and the region must be described instead. Use for object removal, watermark removal, region replacement, blemish cleanup, and any controlled local edit where a binary mask defines the target area. Triggers on "inpaint", "inpainting", "image inpaint", "remove from image", "fill region", "mask-driven edit", "remove watermark", "remove object", "patch the photo", "fill the hole", or any explicit ask to edit a specific masked region of a still.

查看历史简介来源

历史收录数据

来源仓库runcomfy-com/skills
Skill源路径image-inpainting/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源