inpaint_image
Replace masked areas of an image with AI-generated content using Stable Diffusion. Provide an image, mask, and prompt to paint the selected region and wait for the completed result.
Instructions
Inpaint an image using Stable Diffusion. Waits for completion and returns the result.
Args:
pipeline: Pipeline to use — "sd15", "sdxl", or "illustrious"
positive_prompt: Text prompt describing what to paint in the masked region
model_checkpoint: Model checkpoint filename to use
image_base64: Base64-encoded input image
mask_base64: Base64-encoded mask image (white = inpaint region)
negative_prompt: Negative prompt (things to avoid)
steps: Number of inference steps (1-150)
cfg_scale: Classifier-free guidance scale (1-30)
seed: Random seed (-1 for random)
scheduler: Noise scheduler name
loras: Optional list of LoRA configs, each with "name" (str) and optional "strength" (float 0-1)
custom_vae: Optional custom VAE checkpoint filename
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| loras | No | ||
| steps | No | ||
| pipeline | Yes | ||
| cfg_scale | No | ||
| scheduler | No | DPM++ 2M | |
| custom_vae | No | ||
| mask_base64 | Yes | ||
| image_base64 | Yes | ||
| negative_prompt | No | ||
| positive_prompt | Yes | ||
| model_checkpoint | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |