zylim0702 / stable-diffusion-xl-base-1.0-inpainting

Stable diffusion XL with flexible image width and height

  • Public
  • 129 runs

Run zylim0702/stable-diffusion-xl-base-1.0-inpainting with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
image
string
input Image for inpainting
mask
string
mask Image for inpainting
prompt
string
Input prompt for inpainting
guidance_scale
number
8

Max: 20

guidance scale fot inpainting
num_inference_steps
integer
20

Max: 50

number of inference steps for inpainting
strength
number
0.99

Max: 1

strength fot inpainting
resize
boolean
False
resize to 1024x1024 fot inpainting

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "string",
  "title": "Output",
  "format": "uri"
}