Skip to content
Back to skills

Qwen Image Inpaint

ASecurity

BF16 inpaint via GPU host ComfyUI-video adapter (qwen-image-edit-bf16-inpaint-v1). Use when the user has source + mask PNGs and a fill prompt — masked completion, whiteboard erase, etc.

  • 61 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 29, 2026
ai-agentspythonbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 29, 2026

npx -y skills add Elumenotion/GuideAnts --skill qwen-image-inpaint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Qwen Image Inpaint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Qwen Image Inpaint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/elumenotion-qwen-image-inpaint/badge)](https://www.skillsdirectory.com/skills/elumenotion-qwen-image-inpaint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: qwen-image-inpaint
description: "BF16 inpaint via GPU host ComfyUI-video adapter (qwen-image-edit-bf16-inpaint-v1). Use when the user has source + mask PNGs and a fill prompt — masked completion, whiteboard erase, etc."
metadata:
  guideants:
    enabled: true
    display_order: 43
    requires_toolsets: [sandbox]
---

# Qwen Image inpaint (BF16)

Paths — fixed layout, do not probe or re-derive. The sandbox CWD is the
notebook's **output directory**. This skill's scripts live under
`Skills/qwen-image-inpaint/scripts/` relative to it. Write deliverables with
**bare filenames** (e.g. `-o inpaint.png`); never prefix with `Output/`.

Source + mask + prompt → PNG. Mask: **white = editable**, **black = preserve**.

Workflow (required): `qwen-image-edit-bf16-inpaint-v1`

## GPU host gateway (env-configured)

The scripts read `QWEN_IMAGE_SKILL_BASE_URL` and `QWEN_IMAGE_SKILL_TOKEN` from the
guide Environment automatically — do **not** hardcode or export them inline.

Verify before running:

```bash
printenv QWEN_IMAGE_SKILL_BASE_URL >/dev/null && printenv QWEN_IMAGE_SKILL_TOKEN >/dev/null && echo "env ok" || echo "env missing"
```

If either is missing, stop and ask the user to set it in the guide's Environment
variables. Never scan the LAN or guess the GPU host's IP.


## Sampler profile (locked — tested Lightning)

Always use the CLI defaults. Do **not** pass `--steps`, `--cfg`, or `--lora-strength`.
`image_tool.py` forces:

| Parameter | Value |
|-----------|-------|
| steps | 4 |
| cfg | 1 |
| lora_strength | 1 |
| denoise | 1 |
| shift | 3.1 |
| megapixels | 1.6 |

This is the whiteboard / background profile that passed AC-I1. Never invent `steps=20`.

## Preflight

```bash
python3 Skills/qwen-image-inpaint/scripts/preflight.py --for inpaint-bf16
```

Requires `image_edit_bf16_inpaint_ready`.

## Inpaint

```bash
python3 Skills/qwen-image-inpaint/scripts/image_tool.py inpaint \
  uploads/source.png uploads/mask.png "prompt…" -o inpaint.png
```

In ComfyUI: Workflows → `guideants/` (templates) or `guideants-jobs/` (exact submitted graph for this job).

## Job control

Same as edit skill (`status`, `cancel`, `result` on `image_tool.py`). Status includes
`comfy_workflow_file` when published.

## Reporting

Mask is required. Quote preflight evidence when blocked.

Files in this skill

  • SKILL.md2.3 KB
  • scripts/image_tool.py14.4 KB
  • scripts/preflight.py4.3 KB
  • scripts/skill_gateway_client.py6.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.