Nano Banana image generation, capable of image creation and editing.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The prompt which used to generate the images
Action type: edit (modify existing images) or generate (create new images)
edit, generate "generate"
only support generate 1 image, default is 1
Link to the picture that needs to be edited. It can be a accessible http or https url, The image size should not exceed 10MB for each. If the action is edit, this parameter is required.
[
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
]The aspect ratio of the image
21:9, 1:1, 4:3, 3:2, 2:3, 5:4, 4:5, 3:4, 16:9, 9:16 "1:1"
The model of the image, default is NanoBananaFast
nano-banana-fast, nano-banana-pro "nano-banana-fast"
The resolution of the image, only valid when model is NanoBananaPro
1K, 2K, 4K "1K"
task id, used to get task result later