You're looking at a specific version of this model. Jump to the model overview.
stability-ai /stable-diffusion-inpainting:95b72231
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
|
a vision of paradise. unreal engine
|
Input prompt
|
image |
string
|
Initial image to generate variations of. Will be resized to height x width
|
|
mask |
string
|
Black and white image to use as mask for inpainting over the image provided. White pixels are inpainted and black pixels are preserved.
|
|
height |
integer
(enum)
|
512
Options: 64, 128, 192, 256, 320, 384, 448, 512, 576, 640, 704, 768, 832, 896, 960, 1024 |
Height of generated image in pixels. Needs to be a multiple of 64
|
width |
integer
(enum)
|
512
Options: 64, 128, 192, 256, 320, 384, 448, 512, 576, 640, 704, 768, 832, 896, 960, 1024 |
Width of generated image in pixels. Needs to be a multiple of 64
|
negative_prompt |
string
|
Specify things to not see in the output
|
|
num_outputs |
integer
|
1
Min: 1 Max: 4 |
Number of images to generate.
|
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
|
scheduler |
string
(enum)
|
DPMSolverMultistep
Options: DDIM, K_EULER, DPMSolverMultistep, K_EULER_ANCESTRAL, PNDM, KLMS |
Choose a scheduler.
|
seed |
integer
|
Random seed. Leave blank to randomize the seed
|
|
disable_safety_checker |
boolean
|
False
|
Disable safety checker for generated images. This feature is only available through the API. See [https://replicate.com/docs/how-does-replicate-work#safety](https://replicate.com/docs/how-does-replicate-work#safety)
|
Output schema
The shape of the response you’ll get when you run this model with an API.
{'items': {'format': 'uri', 'type': 'string'},
'title': 'Output',
'type': 'array'}