Request
Make aPOST
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.
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 find a list of the public models available and their IDs here.
Schedulers
This endpoint also supports schedulers. Use the “scheduler” 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
json
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 describing the image you want to generate.
Items you don’t want in the image.
Width of the generated image. Maximum: 1024.
Height of the generated image. Maximum: 1024.
Number of images to return. Maximum: 4.
Number of denoising steps. Allowed values: 21, 31, or 41.
NSFW checker. If detected, replaces the image with blank. Default: yes.
Action if NSFW content is detected. Default: sensitive_content_text.
Enhance prompts for better results. Default: yes.
Seed for reproducibility. Pass null for random generation.
Scale for classifier-free guidance.
Generate a panorama image. Default: no.
Enable self-attention for higher quality images (slower). Default: no.
Upscale generated images 2×. Default: no.
Enable ToMeSD for faster generation. Default: yes.
Use Karras sigmas for improved results. Default: yes.
Algorithm type used in DPMSolverMultistepScheduler. Default: none.
Custom VAE to use. Default: null.
LoRa strength(s). Multiple values supported, comma-separated. Range: 0.1–1.
LoRa model(s) to use. Multiple supported, comma-separated. Example: contrast-fix,yae-miko-genshin.
Scheduler to use. See Schedulers.
URL to receive a POST callback once image generation is complete.
ID returned in webhook callback to identify the request.
Clip Skip value. Range: 1–8.
Return response as base64 string. Default: no.
Apply high-resolution fix for generated images. Default: no.
Generate a temporary image link valid for 24 hours. Default: no.