Skip to main content
Make sure you add your s3 details for the qwen_edit_2_1 server, so you can receive the image generated in your bucket. Images generated without s3 details being added will be deleted after 24 hours.

Request

Make a POST 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 with a description of the things you want in the image to be generated.
string
Items you don’t want in the image.
number
default:"512"
Width of the generated image in pixels. Maximum is 2048.
number
default:"512"
Height of the generated image in pixels. Maximum is 2048.
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.