Generate image with Nano Banana 2 Lite
Google Nano Banana 2 Lite — budget Nano Banana 2: fast text-to-image and image editing with multi-reference composition from up to 14 reference images. Fixed 1K output at a flat 40 credits per image.
Asynchronous. Returns a job id (the image is not in this response). Poll GET /v1/images/{id} until status is succeeded — the generated image URLs are in that response’s images array (each { url, position }).
Authorizations
API key as a bearer token: Authorization: Bearer bpx_live_xxx
Body
Text description of the image to generate.
Output aspect ratio.
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 1:4, 4:1, 1:8, 8:1 Number of images to generate.
1 <= x <= 4Optional reference images (up to 14) for image editing and multi-reference composition. Each item is a public image URL, a data URI, raw base64, or an uploaded-file URL from POST /v1/uploads. Omit for text-to-image.
14