API Key for API endpoints
Text prompt describing the desired image. Supports Chinese and English.
Number of results to generate (1-4)
1 <= x <= 4Input 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 <= 2147483647Enable content moderation for input and output.
If true, return media as data URI and skip output history.
Number of images to generate (1-4).
1 <= x <= 4The format of the generated image.
jpeg, png, webp