stable-image/inpaint
POST
/v2alpha/generation/stable-image/inpaintInpaint an existing image, with or without a mask, using our latest-and-greatest inpainting model.
Search-and-Replace Mode
This mode is ideal for individuals of all levels of skill in design. It can be used for straightforward
adjustments to images. The service will automatically mask the most appropriate object based on the contents
of the search_prompt
, and replace it with a generated result based on the prompt
.
How to use: set the mode
parameter to search
and provide a short description of what to
search-and-replace in the search_prompt
parameter.
Mask Mode
This mode allows for precise control of generative fill tasks on an image, down to the level of
individual pixels. Design professionals can provide a mask
for the section of the image to be replaced,
and use standard image prompting to describe the full image as it should appear after the editing.
The resulting image will incorporate all of the elements described in the prompt
.
How to use: set the mode
parameter to mask
and either pass in an image
with an alpha channel
or provide an explicit mask image to the mask
parameter. If both are present the mask
parameter will
take precedence.
Request
Request samples
Responses
{}