API

Nano Banana 2 Lite

other

Nano Banana 2 Lite API delivers fast, efficient image generation with reliable character consistency, smooth multi-image blending, and natural language editing for everyday creative workflows. Integrate Nano Banana 2 Lite API for lightweight, high-quality visual generation.

Authorizations

Bearerstringheaderrequired

API key to authorize requests

Body

application/json
modelstringrequired
nano-banana-2-lite
input.promptstringrequired

Describe the image to create, or the changes to make to your reference images. Whitespace is trimmed.

Maximum length: 5,000 characters

input.imagesstring[]optional

Optional reference images. Use publicly accessible HTTPS URLs or data:image/* base64 URIs. Omit for text-to-image.

Maximum items: 14

input.aspect_ratiostringoptional

Output width-to-height ratio. Auto lets the model choose.

Default: auto

auto1:12:33:23:44:34:55:49:1616:921:91:44:11:88:1

Response

Successful response

task_idstringrequired
statusstringrequired
Available options: waiting, succeed, failed, processing