Basic request shape
POST /v1/images
{
"model": "nano-banana-lite",
"prompt": "A clean product photo of a ceramic mug...",
"size": "1024x1024"
}
Production checklist
- Keep the user's original prompt and the final expanded prompt.
- Cache repeated generations for the same prompt and image size.
- Set a monthly image budget before opening public access.
- Add moderation for uploads, faces, brands, and copyrighted characters.
- Store generated images with clear usage rights and deletion controls.
Cost planning
Use the calculator on this site for a first estimate, then verify with the official Gemini API pricing page before launch because pricing can change.