
PNG
and JPG
.Request
Make aPOST
request to below endpoint and pass the required parameters as a request body.
Body
Body
Link to the initial image.
Link to the mask image for inpainting.
Your API Key used for request authorization.
Text prompt with description of the things you want in the image to be generated.
Prompt strength when using the initial image. 1.0 corresponds to full destruction of information in the init image.
0 <= x <= 1
Items you don't want in the image.
Width of the generated image in pixels. Max: 1024.
x <= 1024
Height of the generated image in pixels. Max: 1024.
x <= 1024
Number of images to be returned in response. Maximum value is 4.
x <= 4
A checker for NSFW images. If such an image is detected, it will be replaced by a blank image.
Seed is used to reproduce results; the same seed will give you the same image in return. Pass 'null' for a random number.
Queue response instantly before processing finishes instead of waiting a minimum amount of time.
Get response as base64 string.
URL to get a POST API call once the image generation is complete.
This ID is returned in the response to the webhook API call and is used to identify the webhook request.
Response
Inpainting generation response
Status of the image generation.
success
Time taken to generate the image in seconds.
Unique identifier for the image generation request.
Array of generated image URLs.
Array of proxy image URLs.
Metadata about the image generation including all parameters used.
Indicates if NSFW content was detected in the generated image.