ComfyUI

Inpaint or edit part of an image

Run a ComfyUI inpainting workflow to regenerate a masked region of an image — object removal, replacement, or targeted edits — while keeping the rest of the image untouched.

Estimated $0.05–$0.25 per edit · 1–2 min per edit

What inputs you need

  • Source image
  • Mask (drawn or auto-generated)
  • Edit prompt
  • ComfyUI workflow JSON

What Badgr returns

  • Edited image
  • Mask used for the edit
  • Run log

Recommended GPU routes

Estimated cost: $0.05–$0.25 per edit · Estimated runtime: 1–2 min per edit

Example command

badgr run "comfyui --workflow inpaint.json --input photo.png --mask mask.png" \
  --gpu RTX_4090 \
  --max-cost 2

Common setup failures Badgr avoids

Visible seam around the inpainted region — default workflow feathers the mask edge before compositing.

Edit bleeding outside the masked area on low-denoise settings — denoise strength is clamped to a range validated per checkpoint.

Ready to run this?

Launch from the dashboard, CLI, or Compute API. Max-cost protection included.