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

anhappdev /test:4a60a684

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
method
string (enum)
replace

Options:

replace, remove

The method to use
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
num_outputs
integer
3

Min: 1

Max: 8

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'}