Nano Banana 2
Authorizations
API Key for API endpoints
Body
A text description of the image you want to generate
Resolution of the generated image
1K, 2K, 4K Input images to transform or use as reference (supports up to 14 images)
Aspect ratio of the generated image
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 his will allow the model to use the latest information from the web to generate the image
Format of the output 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.