You're looking at a specific version of this model. Jump to the model overview.

andreasjansson /stable-diffusion-inpainting:4c1f3962

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
prompt
string
Input prompt
image
string
Input image to in-paint. Width and height should both be divisible by 8. If they're not, the image will be center cropped to the nearest width and height divisible by 8
mask
string
Black and white image to use as mask. White pixels are inpainted and black pixels are preserved.
num_outputs
integer
1

Min: 1

Max: 4

Number of images to output. NSFW filter in enabled, so you may get fewer outputs than requested if flagged
num_inference_steps
integer
50

Min: 1

Max: 500

Number of denoising steps
guidance_scale
number
7.5

Min: 1

Max: 20

Scale for classifier-free guidance
seed
integer
Random seed. Leave blank to randomize the seed

Output schema

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

Schema
{'items': {'format': 'uri', 'type': 'string'},
 'title': 'Output',
 'type': 'array'}