Skip to main content
Runflow
Live
On-Model / FashionProduct ImageryAd Creative

Fill in the gaps with reference-guided AI

Reference Based Inpainting API

Inpaint image regions using a reference image as guidance. Match style, texture, and context from your reference with one API call.

Start with $10 in free GPU credits on signup — no commitment

Reference Based Inpainting demo - after
Reference Based Inpainting demo - before
Before
After
Rated 5/5 by early access developers

Trusted by teams shipping AI-powered products

ImagehostVisualIDMarkedBetterStudio

Try it yourself

Input
Input preview
Your request will cost $0.55
Output
Example output
Example output
<5s
Average processing time
$0.55
Per image, fixed pricing
Ref-guided
Style-matched inpainting
Batch
Bulk processing with webhooks

How it works

No pipeline to build, no models to configure.

1

Send image, mask, and reference

Provide the source image, a mask defining the area to fill, and a reference image to guide the output.

2

AI inpaints from reference

Runflow's pipeline fills the masked region using the reference image as a style and content guide, blending seamlessly with the surrounding context.

3

Get your result

Receive the inpainted image with reference-matched content. Typically under 5 seconds.

Inpaint with a reference image as guide

Unlike standard inpainting that guesses what to fill, reference-based inpainting uses a second image to guide the output. The result matches the style, texture, and context of your reference.

Reference image drives the inpainted content
Matches texture, color, and style from the guide
Far more predictable than prompt-only inpainting

Seamless blending with surrounding context

The filled region blends naturally with the rest of the image. Lighting, shadows, and perspective are preserved so the edit is invisible.

Lighting and shadow consistency
Perspective-aware fill
No visible seams or color mismatch

Fashion and product workflows

Swap patterns, fix damaged regions, or extend product shots using a reference. Ideal for catalog consistency, virtual try-on pipelines, and creative asset generation.

Swap fabric patterns using a reference swatch
Fix damaged or occluded regions in product photos
Extend or modify garments with reference guidance

Simple mask + reference input

Send the source image, a mask defining the inpaint region, and a reference image. The API handles the rest: no model training, no prompt engineering.

Source image + mask + reference = result
No prompt engineering required
Works with any standard image format

Reference-based inpainting for every workflow

From fashion catalogs to creative pipelines. Guide your inpainting with a reference instead of guessing.

Fashion & Apparel

Swap fabric patterns, fix garment defects, or extend clothing using reference swatches. Maintain catalog consistency across product variations.

Product Photography

Fix damaged or incomplete product shots by inpainting from a reference. Ensure every product image meets listing standards.

Creative & Advertising

Generate creative variations of campaign imagery using reference-guided fills. Maintain brand consistency while exploring new compositions.

Virtual Try-On Pipelines

Use reference garment images to fill clothing regions on model photos. Build virtual try-on experiences with accurate fabric rendering.

Working with Runflow changed how we build. Our developers can integrate a new AI feature by calling an endpoint, they don’t need machine learning expertise, infrastructure knowledge, or DevOps skills. We just focus on making the best product, and Runflow handles everything underneath.
Thibaut Hennau
Thibaut Hennau
CEO, BetterPic

Your data stays yours

Images are processed in isolated environments with automatic cleanup. Zero data retention by default.

SOC 2 Type II
ISO 27001· In progress (Q3 2026)
GDPR

SOC 2 Type II compliant.

AES-256 encryptionIsolated processingEU data residency available
Visit Trust Center

Frequently asked questions

Inpaint with a reference, not a guess. In one API call.

$0.55/image. Reference-guided inpainting that matches style, texture, and context, no prompt engineering. Start with $10 in free GPU credits on signup.

First-in-line access: onboarding slots limited this month