banana generate image
Gemini
banana generate image
create a task to generate image
POST
banana generate image
Body
application/json
The prompt words used to generate images
Minimum string length:
1Action type, edit (modify existing image) or generate (create new image)
Available options:
edit, generate only support generate 1 image
The model used to generate images
Available options:
nano-banana-fast, nano-banana-pro, nano-banana-2 The resolution used to generate images
Available options:
1K, 2K, 4K The image link that needs to be edited. It can be an accessible HTTP or HTTPS URL, with each image size not exceeding 10MB. If the action is edit, this parameter is required
The aspect ratio of the image is 1:1 by default
Available options:
21:9, 1:1, 4:3, 3:2, 2:3, 5:4, 4:5, 3:4, 16:9, 9:16, 1:4, 4:1, 1:8, 8:1 