SDXL Inpainting

byStability AI

High-speed localized image editing with seamless boundary blending and natural shadow propagation

SDXL Inpainting inserts an amber glass vase with white blossoms on a travertine table in a sunlit living room.

How SDXL Inpainting works

Swap objects, refine textures, and extend backgrounds through masked spatial guidance and targeted text prompts.

Real Fuser canvas showing separate image and binary mask inputs connected to SDXL Inpainting and the completed vase result.

Upload image and mask

Provide a sharp source image alongside a high-contrast binary mask defining the region to modify.

A focused vase-and-blossoms prompt connected from a Text node below the mask input in Fuser.

Describe target edits

Write a focused natural-language prompt describing only what should appear within the masked zone.

SDXL Inpainting controls in Fuser showing image and mask inputs, 35 steps, guidance 7.5, Image Strength 0.1 and the completed result.

Adjust strength and generate

Set your strength value between subtle retexturing and complete replacement, then generate in seconds.

What SDXL Inpainting is good at

Engineered with dedicated spatial inpainting channels and dual text encoders for seam-free modifications and exact lighting matching.

A teal ceramic teapot inserted into a cafe table photograph using SDXL Inpainting.

Contextual Boundary Blending

Dedicated mask-conditioning channels in the UNet architecture interpret scene boundaries accurately, eliminating harsh seams and mismatching edge artifacts.

SDXL Inpainting adds diamond quilting to a pale cushion while retaining its position on a terracotta chair.

Precision Retexturing Control

Adjust image strength between 0.4 and 0.7 to alter patterns and fabric finishes while strictly preserving underlying geometry, folds, and contours.

A sculptural ruby-red glass object inserted on a sunlit limestone plinth using SDXL Inpainting.

Coherent Shadow and Light Matching

Dual CLIP encoders interpret descriptive lighting cues to balance ambient illumination, directional shadows, and reflection vectors with the unmasked image.

Native 1024-pixel SDXL Inpainting result replacing a plain bowl with turquoise ceramic and yellow lemons.

High-Resolution Native Output

Generate high-detail replacements directly at native 1024x1024 resolution across standard aspect ratio presets without blurriness or downscaling artifacts.

Made with SDXL Inpainting

Explore precise object replacements, fabric retexturing, and environmental modifications integrated cleanly into source compositions.

SDXL Inpainting reshapes a cosmetic jar with faceted sides and a polished gold band on a pink pedestal.

Commercial product retexturing and replacement

A glowing brass lantern inserted onto a stone pedestal in a blue misty forest using SDXL Inpainting.

Atmospheric cinematic element insertion

A reflective chrome sphere inserted above a wooden chair in a pink desert with SDXL Inpainting.

Surreal album art object collision

SDXL Inpainting restores a detailed paneled wooden door in an archival-style monochrome storefront photograph.

Archival scene restoration and detail correction

SDXL Inpainting replaces a canvas tote with a structured cream-and-cognac handbag with leather handles and brass details.

High-fidelity apparel and accessory swapping

What people build with SDXL Inpainting

See how production teams and visual artists use fast localized diffusion to retouch photography and generate product variants.

Fashion and apparel retexturing

01

Swap garment textures, change textile patterns, and alter color palettes on existing studio models without compromising fabric folds or lighting.

Commercial product retouching

02

Replace props, remove background clutter, and insert updated product components while matching the original shadow angles and reflections.

Concept art scene extension

03

Paint cinematic props, environmental fixtures, and architectural elements directly into concept frames with automated perspective alignment.

E-commerce catalog staging

04

Generate seasonal background variants and stage props around catalog items at native 1024x1024 resolution without reshooting.

Editorial portrait cleanup

05

Correct facial features, remove stray elements, or replace accessories in editorial portraiture using feathered mask borders.

SDXL Inpainting specs

Plans and credits
Inputs
Input Image (image), Mask Image (image), Prompt (text), Negative Prompt (text)
Output
image
Cost
7 credits per run

Frequently Asked Questions

SDXL Inpainting excels at targeted object replacement, background swapping, fabric retexturing, and localized detail restoration in existing images. Because it integrates dedicated mask channels into the UNet architecture, it seamlessly matches the surrounding lighting, perspective, and shadow falloff.

Image strength controls how heavily the masked area is transformed, ranging from subtle modifications to total replacement. Set strength between 0.85 and 1.0 to generate entirely new objects or replace masked elements completely. Lower strength to 0.4–0.7 when recoloring or retexturing an item while strictly preserving its original contours and fold structures.

Use a high-contrast binary mask where pure white (RGB 255) marks the edit zone and black protects untouched pixels. Slightly feathering the mask edges by 4 to 12 pixels eliminates hard borders and ensures smooth alpha blending. When replacing an object, draw the mask slightly larger than the target element to give the model room to reconstruct clean background contours.

SDXL Inpainting struggles with tiny typography, intricate vector logos, and complex anatomical additions from scratch at low step counts. It is also not intended for full-image composition changes, where standard image-to-image workflows are more suitable.

SDXL Inpainting was developed by Stability AI and released on July 26, 2023. It enhances the base SDXL latent diffusion architecture with specialized mask-conditioning input channels for native 1024x1024 spatial editing.

Try SDXL Inpainting on Fuser

High-speed localized image editing with seamless boundary blending and natural shadow propagation