Nano Banana Lite API
1K image generation, reference-image editing, and asynchronous tasks.
Nano Banana Lite API
Open the Nano Banana Lite playground.
Use an API key from this group with POST https://app.apipool.dev/v1/images/generations. The model ID is gemini-3.1-flash-lite-image.
{
"model": "gemini-3.1-flash-lite-image",
"prompt": "A blue cup on a white table",
"resolution": "1K",
"size": "1:1",
"n": 1
}For editing, provide image_urls and describe the changes. You can also upload multipart image files to POST /v1/images/edits. Supply up to 14 JPG, PNG, or WebP files, with a 10 MB limit per file and 48 MB combined.
Parameters
promptis required and accepts up to 4,000 characters.resolutiondefaults to 1K, the only supported resolution.sizesupports auto, 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 5:4, 4:5, and 21:9. Auto uses the reference images or prompt.nranges from 1 to 4. Search, extra moderation, automatic fallback, masks, and streaming image output are unavailable.
Pricing
The Official Group bills actual input, text output, and image output tokens. Reference images count toward image input. See the model page for the current rates.
Get results
Save the task ID returned on submission. Use the same key to call GET /v1/tasks/{id}. When the task completes, save the returned images. Confirmed failures are free. When submission is uncertain, the task is processing, or usage is pending, keep checking the original task. See asynchronous image tasks.