Skip to main content

Request

Make a POST request to below endpoint and pass the required parameters as a request body.
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.

Body

json

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

string
required
Your enterprise API Key used for request authorization.
string
required
The ID of the model to be used. It can be public or your trained model.
string
required
Text prompt with description of the things you want in the image to be generated.
string
Items you don’t want in the image.
string
Link to the initial image.
number
default:"512"
Width of the image. Maximum: 1024.
number
default:"512"
Height of the image. Maximum: 1024.
number
default:"1"
Number of images to return. Maximum: 4.
number
default:"21"
Number of denoising steps. Allowed values: 21, 31, or 41.
string
default:"yes"
NSFW image checker. If detected, replaces the image with blank. Options: yes/no.
string
default:"sensitive_content_text"
Action to apply if NSFW content is detected. Options: blur, sensitive_content_text, pixelate, black.
number
default:"7.5"
Scale for classifier-free guidance (range: 1-20).
number
default:"0.7"
Prompt strength when using init_image. 1.0 fully overrides the init image.
number
Clip Skip value. Range: 1-8.
number
Seed for reproducibility. Pass null for random generation.
string
URL to receive a POST callback once the image generation is complete.
string
ID returned in webhook callback to identify the request.