API Key for API endpoints
Text prompt for image generation
Number of results to generate (1-4)
1 <= x <= 4Random seed. Set for reproducible generation
-9007199254740991 <= x <= 9007199254740991Number of inference steps
1 <= x <= 50Width of the generated image. Only used when aspect_ratio=custom. Must be a multiple of 32 (if it's not, it will be rounded to nearest multiple of 32).
256 <= x <= 2048Height of the generated image. Only used when aspect_ratio=custom. Must be a multiple of 32 (if it's not, it will be rounded to nearest multiple of 32).
256 <= x <= 2048Guidance scale for generation. Controls how closely the output follows the prompt
1.5 <= x <= 10Resolution in megapixels. Up to 4 MP is possible, but 2 MP or below is recommended. The maximum image size is 2048x2048, which means that high-resolution images may not respect the resolution if aspect ratio is not 1:1.
Resolution is not used when aspect_ratio is 'custom'. When aspect_ratio is 'match_input_image', use 'match_input_image' to match the input image's resolution (clamped to 0.5-4 MP).
match_input_image, 0.5 MP, 1 MP, 2 MP, 4 MP Aspect ratio for the generated image. Use 'match_input_image' to match the first input image's aspect ratio.
match_input_image, custom, 1:1, 16:9, 3:2, 2:3, 4:5, 5:4, 9:16, 3:4, 4:3 List of input images for image-to-image generation. Maximum 10 images. Must be jpeg, png, gif, or webp.
Format of the output images.
webp, jpg, png Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs
0 <= x <= 100Safety tolerance, 1 is most strict and 5 is most permissive
1 <= x <= 5Automatically modify the prompt for more creative generation