Skip to content
Reduced motion is on. Play a preview to watch it.
Explore models

Image

Inpainting sdxl and sd

Replace a masked part of an image with the Inpainting route.

  • Image editing
Create with Inpainting sdxl and sd
Preview for Inpainting sdxl and sd

Catalog preview for Inpainting sdxl and sd. Review your own result before publishing.

A starting point.

Replace a masked part of an image with the Inpainting route. Prepare a mask aligned with the source before writing the replacement brief.

Before you publish.

Check the edited boundary and surrounding texture for seams or unintended changes.

Review the quote before running. A failed generation releases its reserved credits. Download the results you want to keep; stored media is retained for 30 days.

How credits work · Use the API · Content guidelines

Settings and model questionsCheck the available settings and guidance when preparing your input.

Inputs and settings

Supply image_url, mask_url, model_name and prompt. White mask areas are edited; black areas are preserved.

Choose a compatible base model through model_name. Keep source and mask dimensions aligned; inspect guidance and seed separately.

Inputs, all modes and APIModel IDs, current input limits and the API generation workflow.

Supported inputs

These fields come from the current studio form for inpaint. Other modes may require different inputs.

Input types, requirements and limits for inpaint
InputTypeRequirementOptions and limits
image_urlTextRequired—
mask_urlTextRequired—
model_nameTextRequired—
promptTextRequired—
guidance_scaleNumberOptional≥ 0 · ≤ 20
negative_promptTextOptional—
num_inference_stepsWhole numberOptional≥ 0 · ≤ 150
seedWhole numberOptional—

Check the full model schema for all options and cross-field rules. Request a quote for your selected settings before generating.

Use Inpainting sdxl and sd through the API.

Start with this model ID for the endpoint featured on this page:

inpaint

Input requirements belong to this model ID. Check a different mode’s schema separately when switching modes.

Check the current model schema for supported inputs and options. Other tasks may use different model IDs.

From quote to result.

Request a credit quote for your input and settings before submitting a generation. A sample output or the price of another model is not a quote for your request.

Follow the generation workflow, then poll the job for its status and result. The API and studio use the same balance.