Request
Make aPOST request to below endpoint and pass the required parameters as a request body.
curl
Body
json
Body Attributes
string
required
Your API Key used for request authorization.
string
required
Text prompt describing the edit you want, or how to combine the reference images.
string | array
required
The reference image, as a single URL or a list of up to
10 URLs. With base64 set to true, send base64 strings instead of URLs.string
Items you don’t want in the image.
number
Width of the generated image in pixels. Maximum is
2048. Leave out to follow the size of the reference image.number
Height of the generated image in pixels. Maximum is
2048. Leave out to follow the size of the reference image.string
Shorthand for a width and height pair, used only when
width and height are not both set.number
default:"1"
Number of images to return in the response. Maximum is
4.number
default:"40"
Number of denoising steps. Minimum is
30, maximum is 40.number
default:"4"
How closely the image follows the prompt. Minimum is
0, maximum is 10.number
Seed is used to reproduce results. The same seed will give you the same image again. Pass null for a random number.
boolean
default:"true"
Speeds up generation at the cost of GPU memory. Turn it off if a large request runs out of memory. options:
true or false.boolean
default:"false"
Generate the image with a transparent background. options:
true or false.boolean
default:"false"
Check the generated image for NSFW content. options:
true or false.string
default:"black"
What to do with an image the safety checker flags. options:
black, blur or sensitive_content_text.boolean
default:"false"
Whether to watermark the generated image. options:
true or false.boolean
default:"false"
If true, stores the image in temporary storage which is cleaned every 24 hours. options:
true or false.boolean
default:"false"
Set to
true when you are sending or expecting base64 rather than URLs. options: true or false.string
Set a URL to get a POST API call once the image generation is complete.
string
This ID is returned in the response to the webhook API call. This will be used to identify the webhook request.

