Image model API
Nano Banana 2 Lite API
google/gemini-3.1-flash-lite-image is Google's fast and cost-efficient multimodal image generation and editing model, designed to create high-quality visuals from text prompts while supporting powerful image editing capabilities. Built on the Gemini 3.1 Flash architecture, it combines low-latency performance with strong prompt understanding, making it ideal for high-volume creative workflows, rapid prototyping, and real-time image applications. The model supports text-to-image generation, image editing, and reference-guided transformations, enabling users to generate new artwork, modify exist
- Model id
nano-banana-2-lite- Takes
- Text (required)
- Makes
- Image
- Endpoint
POST /api/v1/images/generations- Made by
- Mode
- Synchronous
Call Nano Banana 2 Lite
https://payload.rentprompts.com/api/v1. Replace the placeholder with your key.Model nano-banana-2-lite
POST /api/v1/images/generations
curl https://payload.rentprompts.com/api/v1/images/generations \
-H "Authorization: Bearer rp_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-2-lite",
"prompt": "A lighthouse at dusk, watercolor",
"n": 1
}'Replace rp_live_YOUR_KEY with your key, ideally via the RENTPROMPTS_API_KEY environment variable. Keys are shown only once, so they are never filled in here. Get your API key →
What a typical call costs
- 1 image3.9 Joules
- 4 images15.6 Joules
Send requests to POST /api/v1/images/generations. Nano Banana 2 Lite answers synchronously: the result comes back in the response to the same request.