Reference Inpaint
Inpaint a region of a target photo using a reference image as the visual guide. Provide the target, a black-and-white mask of the area to fill, and a reference image. The model paints the masked region with content matching the reference.
By Runflow
Pricing: $0.55 per request
Overview
**Reference Inpaint** fills a masked region of a target photo using the contents of a reference image as the visual guide. Provide the target, a black-and-white mask of the area to fill, and a reference image; the model paints the masked region with content matching the reference.
How it works
Send a zip containing three images: a target photo, a black-and-white mask of the same dimensions (white = inpaint, black = keep), and a reference image whose visual content should fill the masked area. The model analyses the reference, blends its content into the masked region of the target, and returns the composited image at the original resolution.
Common use cases
- Product placement: drop a product into a clean scene shot
- Background or texture swap: replace a background or surface with a reference
- Element insertion: add a piece of furniture, signage, or branding to a layout
- Concept iteration: try different visual options without re-shooting
Examples
- slot-1
- slot-2
- slot-3
- slot-7
- slot-9
- slot-10
- slot-12
- slot-14
Frequently asked questions
- What is Reference Inpaint?
- A first-party Runflow workflow that fills a masked region of a target photo using the contents of a reference image as the visual guide. The model paints the masked area to match the reference and blends with the surrounding pixels.
- How much does Reference Inpaint cost on Runflow?
- Simple fixed pricing: $0.55 per image.
- What format should the inputs be?
- Package the target image, mask, and reference image into a single zip and send the zip URL. The mask is a standard black-and-white image (white = inpaint, black = keep) at the same dimensions as the target. PNG, JPG, and WEBP are all supported.
- How is this different from regular inpainting?
- Regular inpainting fills a masked region using only the surrounding context. Reference Inpaint additionally takes a reference image so you can control exactly what content goes into the masked area.
- Can I use the outputs commercially?
- Yes.
- How long does Reference Inpaint take?
- 60–150 seconds typically, depending on resolution and queue depth.
Related models
- Background Color — Replace the background of a portrait or product shot with a flat color. Pick any RGB value; shading_percent baked at 30% for soft falloff.
- Outpaint (Expand) — Expand the canvas of an image with AI-generated content that matches the existing scene. Specify percent expand on each side — required so the customer is intentional.
- Eye Color — Recolor the irises in a portrait. The customer describes the target eye color (e.g. "blue", "emerald green", "amber") — that drives the inpaint guidance. Optional RGB lets you tint the overlay precisely.
- Skin Fix — Cleanup pass for portrait photography. Smoothes skin texture, fixes blemishes, preserves natural detail.