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 multi Lora. Just make sure to pass comma saparated lora model ids to the
lora_model
as "more_details,animie"
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:
- DDPMScheduler
- DDIMScheduler
- PNDMScheduler
- LMSDiscreteScheduler
- EulerDiscreteScheduler
- EulerAncestralDiscreteScheduler
- DPMSolverMultistepScheduler
- HeunDiscreteScheduler
- KDPM2DiscreteScheduler
- DPMSolverSinglestepScheduler
- KDPM2AncestralDiscreteScheduler
- UniPCMultistepScheduler
- DDIMInverseScheduler
- DEISMultistepScheduler
- IPNDMScheduler
- KarrasVeScheduler
- ScoreSdeVeScheduler
- LCMScheduler
Body Attributes
Your enterprise API Key used for request authorization.
The ID of the model to be used. It can be a public model or your trained model.
Auto hint image. Options: yes/no.
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.Text prompt describing required image modifications. Make it detailed for best results.
Items you don’t want in the image.
Link to the initial image.
Link to the ControlNet image.
Link to the mask image for inpainting.
Width of the image. Maximum: 1024.
Height of the image. Maximum: 1024.
Number of images to return in the response. Maximum: 4.
The scheduler to use. See Schedulers.
Enable ToMeSD for faster results. Default: yes.
Use Karras sigmas for improved results. Default: yes.
Used in DPMSolverMultistepScheduler. Default: none.
Custom VAE to use. Default: null.
Strength values for LoRa models (comma-separated). Range: 0.1–1.
LoRa models to use (comma-separated). Example: contrast-fix,yae-miko-genshin
Number of denoising steps. Allowed values: 21 or 31.
NSFW checker. If detected, replaces image with blank. Default: yes.
Enhance prompts for better results. Default: yes.
Enable multilingual input. Default: yes.
Scale for classifier-free guidance.
Scale for ControlNet guidance.
Prompt strength when using
init_image
. 1.0 fully overrides the init image.Seed for reproducibility. Pass null for random generation.
URL to receive a POST callback when image generation is complete.
ID returned in webhook callback to identify the request.
Set to yes to upscale the generated image 2x.
Clip skip value. Range: 1–8.
Return response as base64. You can also pass init_image, mask_image, and control_image as base64. Default: no.
Generate a temporary image link valid for 24 hours. Default: no.