Nano Banana 2 API - lightning fast image generation and image edit model API!
Released by Google, Nano Banana 2 is a superb lightning fast image generation and image edit model. Perfect for creative projects, content creation, and AI-powered applications. Get started with Nano Banana 2 API now with PiAPI!

Nano Banana 2 Playground
Google's Gemini 3.1 Flash Image powered image generation with free demo.
Configuration
Select the model for content generation.
The prompt for image generation. Describe the image you want to create.
Upload Files
Click or drag files (0/14)
Upload images for image-to-image generation or editing. Leave empty for text-to-image generation. You can upload up to 14 images.
Result
Idle
This shows preset sample previews. Sign in and click 'Generate image' to create your own.
Logs
Why choose Nano Banana 2 API?
A developer-first image generation and editing model, available via PiAPI with a playground and unified integration.
- SOTA Performance
- Advanced Real-World Knowledge
- Precise Text Rendering & Translation
- Precise Instruction Following
- Flexible configuration
- Subject Consistency
- Lightning Fast Speed
- Upgraded Visual Fidelity
Nano Banana 2 AI achieves state-of-the-art results against top models in the industry for image generation and image editing.
Nano Banana AI API grounds generations in real-time information to create accurate diagrams and data-driven visuals.
Nano Banana 2 API excels in text rendering capabilities with support for multilingual use cases.
Nano Banana API features high precision in instruction adherence giving creators more control over image generation tasks.
Nano Banana 2 API generates production ready outputs with customizable aspect ratio and resolutions up to 4K.
Nano Banana 2 API supports up to 5 character references and 14 object references for more robust subject consistency.
Nano Banana 2 API produces output at lightning fast speed, suitable for rapid workflows.
Nano Banana 2 API has upgraded visual fidelity, bringing more vibrant lighting, richer textures and sharper details in every output.
See Nano Banana 2 in Action
Explore example generations and edits. Start in the playground, then integrate via PiAPI.

Prompt:
A real-life photo of a whiteboard with a hand-drawn workflow diagram showing labeled steps: "User Input" -> "Web Research API" -> "AI Processing" -> "Content Generation" -> "Final Output", arrows drawn with marker, slightly messy handwriting but readable text, office environment, natural lighting, realistic shadows, candid photo style.
Candid office photo of a whiteboard showing a hand-drawn workflow from User Input through Web Research API and AI Processing to Final Output, with realistic lighting and shadows.
Try This Prompt with Nano Banana 2Text-to-ImageCreate any image from your description
Image-to-ImageTransform and enhance your photos
Ready to build with Nano Banana 2?
Start creating images and edits in the playground, then ship with PiAPI.
Start with Nano Banana 2 APINano Banana 2 API Pricing
Choose the right resolution tier for your Nano Banana 2 image generation workloads.
Nano Banana 2 - 1K
Lightning fast image generation & editing at 1K resolution using Nano Banana 2.
- $0.06 per image (1K)
- Upload up to 14 images per request
- JPEG & PNG output formats
- Commercial usage rights included
- Webhook notifications
- No-code workspace access
- Comprehensive API documentation
- 24/7 technical support
Nano Banana 2 - 2K
Higher fidelity image generation & editing at 2K resolution using Nano Banana 2.
- $0.08 per image (2K)
- Upload up to 14 images per request
- JPEG & PNG output formats
- Commercial usage rights included
- Webhook notifications
- No-code workspace access
- Comprehensive API documentation
- 24/7 technical support
Nano Banana 2 - 4K
Ultra-high resolution 4K image generation & editing with Nano Banana 2.
- $0.12 per image (4K)
- Upload up to 14 images per request
- JPEG & PNG output formats
- Commercial usage rights included
- Webhook notifications
- No-code workspace access
- Comprehensive API documentation
- 24/7 technical support
Want to find out more about Nano Banana 2 API?
- What is Nano Banana 2 API?
Released by Google, Nano Banana 2 is the successor of Nano Banana and Nano Banana Pro. The Nano Banana 2 API provides image generation and editing capabilities via PiAPI, including T2I and I2I workflows with configurable formats, aspect ratios and resolutions. Start with PiAPI today!
- Can I edit existing images with Nano Banana 2?
Yes. Upload one or more reference images and describe the change you want. Nano Banana 2 supports controlled transformations while keeping key elements consistent.
- Where can I find the Nano Banana 2 API documentation?
Full reference and examples are available in the Nano Banana 2 API docs.
- Is there free access to try Nano Banana 2?
When you first sign up on PiAPI's Workspace, you can use free credits to try Nano Banana 2 in the playground.
- Are there refunds?
No, we do not offer refunds. But when you first sign up for an account on PiAPI‘s Workspace, you will be given free credits to try our Nano Banana 2 API (specifically the "Pay-as-you-go" service) before making payments!
- How can I get in touch with your team?
Please email us at contact@piapi.ai - we'd love to talk more regarding our product offering!