You're looking at a specific version of this model. Jump to the model overview.
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 photo of an astronaut++ riding a horse on mars
|
The prompt to guide the image generation. Use ++ to emphasize and -- to de-emphasize parts of the sentence
|
negative_prompt |
string
|
|
Specify things to not see in the output
|
image |
string
|
The image which will be inpainted. Parts of the image will be masked out with `mask_image` and repainted according to `prompt`.
|
|
mask_image |
string
|
A black and white image to use as mask for inpainting over the image provided. White pixels in the mask will be repainted, while black pixels will be preserved
|
|
preprocessing |
string
(enum)
|
pad
Options: crop, pad |
Max image size is 512x512. Bigger image will be resized.
|
num_outputs |
integer
|
2
Min: 1 Max: 4 |
Number of images to output. Higher number of outputs may cause OOM.
|
num_inference_steps |
integer
|
30
Min: 1 Max: 50 |
The number of denoising steps. More denoising steps usually lead to a higher quality image at the expense of slower inference
|
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'}