
Request
Make aPOST
request to below endpoint and pass the required parameters as a request body.
Body
Body
The ID of the model to be used. It can be a public model or one you have trained.
URL of the initial image.
URL of the mask image for inpainting.
Your API Key used for request authorization.
Prompt strength when using the initial image. Range from 0 to 1.
0 <= x <= 1
A text description of what you want in the generated image.
Items you don't want in the image.
The width of the image in pixels.
x <= 1024
The height of the image in pixels.
x <= 1024
The number of images to be returned in response. Maximum is 4.
x <= 4
The number of denoising steps. Values range from 1 to 20, and any value above 20 will be capped at 20.
1 <= x <= 20
A checker for NSFW images. If detected, such images will be replaced by a blank image.
How to modify the image if NSFW content is found.
blur
, sensitive_content_text
, pixelate
, black
Seed for reproducible results. The same seed generates the same image. Pass null for a random number.
Scale for classifier-free guidance.
1 <= x <= 20
Use Karras sigmas to generate images. Produces nice results.
Used in DPMSolverMultistepScheduler scheduler.
none
, dpmsolver+++
Use a custom VAE for generating images. Default is null.
Strength of the LoRa model(s). If multiple LoRa models, provide comma-separated values (0.1 to 1).
LoRa model ID(s). Multiple LoRa models are supported; pass comma-separated values (e.g., 'contrast-fix,yae-miko-genshin').
Number of CLIP layers to skip.
1 <= x <= 8
If true, response output is base64 string. Input images can also be base64.
If true, stores image in temporary storage (cleaned every 24 hours).
URL to receive a POST API call once image generation is complete.
Unique ID used in webhook response to identify the request.
IP adapter ID.
ip-adapter_sdxl
, ip-adapter_sd15
, ip-adapter-plus-face_sd15
, ip-adapter-plus_sdxl_vit-h
, ip-adapter-plus-face_sdxl_vit-h
Scale for the IP adapter (0 to 1).
0 <= x <= 1
Valid image URL for IP adapter.
Available schedulers for image generation.
DDPMScheduler
, DDIMScheduler
, PNDMScheduler
, LMSDiscreteScheduler
, EulerDiscreteScheduler
, EulerAncestralDiscreteScheduler
, DPMSolverMultistepScheduler
, HeunDiscreteScheduler
, KDPM2DiscreteScheduler
, DPMSolverSinglestepScheduler
, KDPM2AncestralDiscreteScheduler
, UniPCMultistepScheduler
, DDIMInverseScheduler
, DEISMultistepScheduler
, IPNDMScheduler
, KarrasVeScheduler
, ScoreSdeVeScheduler
, LCMScheduler
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.
Status of the webhook notification.
Additional information or tips for the user.