/api/v1/images/generations with model: qwen-image-2-1; leave out image_list to generate, include it to edit. Every job returns a single PNG at a flat price per resolution tier./api/v1/images/generations with model: qwen-image-2-1; leave out image_list to generate, include it to edit. Every job returns a single PNG at a flat price per resolution tier.
image_list at 1K, or up to 3 at 2K. Refer to them in the prompt as <image1>, <image2> and so on, in array order; image1 is the image being edited and the rest are references.
background: transparent for a PNG with an alpha channel, for both generation and editing. Send one image with background: transparent and no prompt to remove its background. Composite onto your own backdrop before converting to JPEG.

qwen-image-2-1.<image1> … <image10>. Can be omitted only for background removal.[{"url": "https://…"}]. Up to 10 images at 1K, up to 3 at 2K. The first image is the one edited. PNG references are read with their alpha channel.auto (default), 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9. auto follows image1 when editing and means 1:1 for text to image.1K (default, about 1 megapixel) or 2K (about 4 megapixels, native). Case-insensitive; also the price tier.background: opaque (default) or transparent. seed: 0 to 2147483647 for more reproducible results. custom_callback_url: optional HTTPS URL for status callbacks.image_size.image_list to edit; add background: transparent for alpha; one image plus transparent and no prompt removes the background.{"model": "qwen-image-2-1", "prompt": "…", "image_size": "1K"} to /api/v1/images/generations and store img_uuid.GET /api/v1/jobs/detail or use your callback, and save the PNG from json[0].value within 24 hours.POST https://api.goenhance.ai/api/v1/images/generations with model: qwen-image-2-1.
1 token ($0.02) at 1K and 4 tokens ($0.08) at 2K, for any mode and any number of reference images.
At 2K every reference is also encoded at 2K, so the limit drops from 10 to 3.
Send one image in image_list with background: transparent and no prompt. The result is a PNG with an alpha channel.
Fully transparent pixels carry an arbitrary color underneath. Composite the PNG over your own background before converting it. Glass and lenses come out opaque.
The docs give about 30 to 60 seconds of processing at 1K and about 3 to 7 minutes at 2K, plus queue time. Use polling or custom_callback_url.