Request
Make a POST request to below endpoint and pass the required parameters as a request body.
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.
Body
Schedulers
This endpoint also supports schedulers. Use the “scheduler” 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
Your enterprise API Key used for request authorization.
The ID of the model to be used. It can be public or your trained model.
Text prompt with description of the things you want in the image to be generated.
Items you don’t want in the image.
Link to the initial image.
Width of the image. Maximum: 1024.
Height of the image. Maximum: 1024.
Number of images to return. Maximum: 4.
Number of denoising steps. Allowed values: 21, 31, or 41.
NSFW image checker. If detected, replaces the image with blank. Options: yes/no.
safety_checker_type string
default: "sensitive_content_text"
Action to apply if NSFW content is detected. Options: blur, sensitive_content_text, pixelate, black.
Scale for classifier-free guidance (range: 1-20).
Prompt strength when using init_image. 1.0 fully overrides the init image.
Clip Skip value. Range: 1-8.
Seed for reproducibility. Pass null for random generation.
URL to receive a POST callback once the image generation is complete.
ID returned in webhook callback to identify the request.