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

zeke /sd3-inpainting-with-differential-diffusion:bde02b23

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
negative_prompt
string
Input negative prompt
image
string
Input image for img2img mode
mask
string
Mask for inpainting. White pixels will be inpainted and black pixels will be preserved. Gray pixels will be partially inpainted. If using a `mask` input, you must also provide an `image` input. A `prompt_strength` setting of >0.8 usually works well. Note that Stable Diffusion 3 was not trained for inpainting, so your mileage may vary.
aspect_ratio
string (enum)
1:1

Options:

1:1, 16:9, 21:9, 2:3, 3:2, 4:5, 5:4, 9:16, 9:21

Aspect ratio for the generated image
num_outputs
integer
1

Min: 1

Max: 4

Number of images to output.
guidance_scale
number
7

Max: 50

Scale for classifier-free guidance
prompt_strength
number
0.6

Max: 1

Prompt strength when using img2img. 1.0 corresponds to full destruction of information in image
seed
integer
Random seed. Leave blank to randomize the seed
output_format
string (enum)
webp

Options:

webp, jpg, png

Format of the output images
output_quality
integer
80

Max: 100

Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs
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.

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