Qwen Image 2.0 Pro
Authorizations
API Key for API endpoints
Body
Text prompt describing the desired image. Supports Chinese and English.
Input images to transform or use as reference (supports up to 4 images).
Content to avoid in the generated image. Max 500 characters.
500The size of the generated image. If not provided, the size of the final input image will be used. Total number of pixels must be between 512x512 and 2048x2048.
square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9 Aspect ratio for the generated image.
1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3 Enable LLM prompt optimization for better results.
Random seed for reproducibility (0-2147483647).
0 <= x <= 2147483647Number of images to generate (1-4).
1 <= x <= 4The format of the generated image.
jpeg, png, webp Number of results to generate (1-4)
1 <= x <= 4Response
Generation submission accepted
Generation id.
Queue status
IN_QUEUE, IN_PROGRESS, COMPLETED, FAILED, CANCELED Normalized input payload for the generation task.
Credit usage breakdown for the request
Machine-readable generation error code. Present when status is FAILED.
Sanitized human-readable failure message. Present when status is FAILED.