Enterprise: Inpainting

This endpoint does inpainting on enterprise plan.


--request POST 'https://stablediffusionapi.com/api/v1/enterprise/inpaint' \

Make a POST request to https://stablediffusionapi.com/api/v1/enterprise/inpaint endpoint and pass all appropriate parameters.

How to Video Guide
Click HERE to watch a how to video.

key : Your API Key
prompt : Your Prompt
samples : number of images you want in response
negative_prompt : Items you don't want in the image
width : Width of output image. Maximum size is 1024x768 or 768x1024 because of memory limits
height : Height of output image. Maximum size is 1024x768 or 768x1024 because of memory limits
prompt_strength : Prompt strength when using init image. 1.0 corresponds to full destruction of information in init image
num_inference_steps : Number of denoising steps (minimum: 1; maximum: 50)
init_image : link of Initial Image
model_id : The id of model
mask_image : link of mask image for inpainting
guidance_scale : Scale for classifier-free guidance (minimum: 1; maximum: 20)
seed : Random seed. Leave blank to randomize the seed
webhook : webhook to call when image generation is completed
track_id : tracking id to track this api call
loadbalancer : yes/no, default : no

To use load balancer you need to have more than 1 server. Pass 1st server apikey, and it will handle the load balancing with other servers.

Request Body and Example Response

Body Raw
{
"key": "enterprise_api_key",
 "prompt": "ultra realistic close up portrait ((beautiful pale cyberpunk female with heavy black eyeliner)), blue eyes, shaved side haircut, hyper detail, cinematic lighting, magic neon, dark red city, Canon EOS R3, nikon, f/1.4, ISO 200, 1/160s, 8K, RAW, unedited, symmetrical balance, in-frame, 8K",
 "negative_prompt": "((out of frame)), ((extra fingers)), mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), (((tiling))), ((naked)), ((tile)), ((fleshpile)), ((ugly)), (((abstract))), blurry, ((bad anatomy)), ((bad proportions)), ((extra limbs)), cloned face, (((skinny))), glitchy, ((extra breasts)), ((double torso)), ((extra arms)), ((extra hands)), ((mangled fingers)), ((missing breasts)), (missing lips), ((ugly face)), ((fat)), ((extra legs)), anime",
 "width": "512",
 "init_image": "https://firebasestorage.googleapis.com/v0/b/image-generate.appspot.com/o/init_images%2F0RX4OhLRbcqGmrlLC0fa.jpeg?alt=media&token=a50843cd-7ced-4408-bc6c-b707ccaf875a",
 "mask_image": "https://firebasestorage.googleapis.com/v0/b/image-generate.appspot.com/o/init_images%2F0RX4OhLRbcqGmrlLC0fa.jpeg?alt=media&token=a50843cd-7ced-4408-bc6c-b707ccaf875a",
 "height": "512",
 "samples": "1",
 "num_inference_steps": "20",
 "model_id": "anything-v3",
 "enhance_prompt": "yes",
 "scheduler": null,
 "seed": null,
 "guidance_scale": 7.5,
 "webhook": null,
 "track_id": null
}