ControlNet Main
Control Stable Diffusion generations with ControlNet.
POST
Generate images using ControlNet
The ControlNet models are available in this API.
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 the controlnet_model parameter with “inpaint” value.
Request
Send aPOST request to below endpoint.
curl
Models
ControlNet API using ControlNet 1.1 as the default: Supported ControlNet Models:For Flux ControlNet, usewhich supports following controlnet types:
canny, tile, depth , blur, pose, gray and low_quality.ControlNet Types Overview
Key Parameters
- controlnet_type & controlnet_model: Must match the desired control method
- auto_hint: Set to “yes” to automatically process input images
- controlnet_conditioning_scale: Controls strength (0.1-2.0, default 0.5-1.0)
- init_image: Source image for control guidance
- mask_image: Required only for inpainting
Body
You can also use multi ControlNet. Just make sure to pass comma separated controlnet models to the
controlnet_model as canny,depth and init_image in the request body.ControlNet API Examples
- SD1.5
- SDXL
- Canny
- Depth
- Hed
- MLSD
- Normal
- Scribble
- In-Paint
- Soft Edge
- Line Art
Body
application/json
ControlNet model ID. Can be single model or comma-separated for multi-ControlNet (e.g., 'canny,depth,openpose')
Available options:
canny, depth, hed, mlsd, normal, openpose, scribble, segmentation, inpaint, softedge, lineart, shuffle, tile, face_detector, qrcode, blur, pose, gray, low_quality Scheduler to use for image generation
Available options:
DDPMScheduler, DDIMScheduler, PNDMScheduler, LMSDiscreteScheduler, EulerDiscreteScheduler, EulerAncestralDiscreteScheduler, DPMSolverMultistepScheduler, HeunDiscreteScheduler, KDPM2DiscreteScheduler, DPMSolverSinglestepScheduler, KDPM2AncestralDiscreteScheduler, UniPCMultistepScheduler, DDIMInverseScheduler, DEISMultistepScheduler, IPNDMScheduler, KarrasVeScheduler, ScoreSdeVeScheduler, LCMScheduler Response
ControlNet generation response

