Request
Send aPOST request to below endpoint.
curl
To use the load balancer, you need to have more than 1 server. Pass the first server’s API key, and it will handle the load balancing with the other servers.
You can also use multi ControlNet. Just make sure to pass comma saparated controlnet models to the
controlnet_model as “canny,depth” and init_image in the request body.You can also use this endpoint to inpaint images with ControlNet. Just make sure to pass the link to the
mask_image in the request body. and use controlnet_model as inpaint.Body
json
ControlNet Models
ControlNet API using Controlnet 1.1 as default: Suported controlnet_model:- canny
- depth
- hed
- mlsd
- normal
- openpose
- scribble
- segmentation
- inpaint
- softedge
- lineart
- shuffle
- tile
- face_detector
- qrcode
Schedulers
This endpoint also supports schedulers. Use thescheduler parameter in the request body to pass a specific scheduler from the list below:
- EulerDiscreteScheduler
- EulerAncestralDiscreteScheduler
- LMSDiscreteScheduler
- HeunDiscreteScheduler
- KDPM2DiscreteScheduler
- KDPM2AncestralDiscreteScheduler
- DPMSolverMultistepScheduler
- DPMSolverSinglestepScheduler
- DDIMScheduler
- DDPMScheduler
- PNDMScheduler
- UniPCMultistepScheduler
- DEISMultistepScheduler
- LCMScheduler
- IPNDMScheduler
Body Attributes
ControlNet model ID. It can be from the models list or user trained.
ControlNet model type. It can be from the models list.
If set to yes and no prompt is passed, the model will attempt to guess what’s in the
init_image and create variations. Options: yes/no.The scheduler to use. See Schedulers.
Return response as base64. You can also pass init_image, mask_image, and control_image as base64. Default: no.

