Nano Banana 2

Nano Banana 2 API - lightning-fast image generation and image editing

Released by Google, Nano Banana 2 is a fast image generation and image editing model built for creative projects, content workflows, and AI-powered applications. Start with Nano Banana 2 on PiAPI today.

*High-quality generation and edits
*Multi-image referencing
*JPEG and PNG output
*No-code workspace
Nano Banana 2 preset image

Nano Banana 2 Playground

Google's Gemini 3.1 Flash Image powered image generation with free demo.

Configuration

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
Nano Banana 2 café preset image sample

This shows preset sample previews. Sign in and click 'Generate image' to create your own.

Logs

No logs yet

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
Nano Banana 2 achieves state-of-the-art results against leading models for image generation and image editing.
Advanced Real-World Knowledge
Nano Banana 2 grounds generations in current information to create more accurate diagrams, layouts, and data-driven visuals.
Precise Text Rendering and Translation
Nano Banana 2 performs strongly on text rendering and multilingual use cases, helping teams create cleaner visual assets with embedded text.
Precise Instruction Following
Nano Banana 2 follows creative instructions closely, giving teams more control over image generation and editing tasks.
Flexible Configuration
Generate production-ready outputs with flexible aspect ratios, multiple formats, and resolutions up to 4K.
Subject Consistency
Support for up to 5 character references and 14 object references helps preserve consistency across complex scenes.
Lightning Fast Speed
Nano Banana 2 produces output at lightning-fast speed, making it a strong fit for rapid creative and production workflows.
Upgraded Visual Fidelity
Expect richer textures, stronger lighting, and sharper details across outputs, from quick previews to polished assets.

See Nano Banana 2 in Action

Explore example generations and edits. Start in the playground, then integrate via PiAPI.

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.
Text-to-ImageDiagramPresentationInformation

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 2

Text-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 API

Nano Banana 2 API Pricing

Choose the right resolution tier for your Nano Banana 2 image generation workloads.

Nano Banana 2 - 1K

$0.06per image

Lightning-fast image generation and editing with production-ready outputs via PiAPI.

  • Upload up to 14 images per request
  • JPEG and PNG output formats
  • Commercial usage rights included
  • Webhook notifications
  • No-code workspace access
  • Comprehensive API documentation
  • 24/7 technical support
  • Flexible aspect ratios and resolutions

Nano Banana 2 - 2K

$0.08per image

Lightning-fast image generation and editing with production-ready outputs via PiAPI.

  • Upload up to 14 images per request
  • JPEG and PNG output formats
  • Commercial usage rights included
  • Webhook notifications
  • No-code workspace access
  • Comprehensive API documentation
  • 24/7 technical support
  • Flexible aspect ratios and resolutions

Nano Banana 2 - 4K

$0.12per image

Lightning-fast image generation and editing with production-ready outputs via PiAPI.

  • Upload up to 14 images per request
  • JPEG and PNG output formats
  • Commercial usage rights included
  • Webhook notifications
  • No-code workspace access
  • Comprehensive API documentation
  • 24/7 technical support
  • Flexible aspect ratios and resolutions

Our blog

Check out our blog for related contents!

Nano Banana 2 API guide blog cover
Nano Banana 2 API

Nano Banana 2 API Guide

Learn how to use the Nano Banana 2 API for image generation and editing with PiAPI, including playground usage, workflow ideas, and integration guidance.

March 2026

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 to Nano Banana and Nano Banana Pro. The Nano Banana 2 API provides image generation and editing capabilities via PiAPI, including text-to-image and image-to-image workflows with configurable formats, aspect ratios, and resolutions.

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 in 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. New users receive free credits first, so you can test Nano Banana 2 before making payments.

What is the no-code workspace?

Our no-code workspace at piapi.ai/workspace/nano-bananalets you test the model directly in your browser before integration.

Do you support webhooks?

Yes, webhook notifications are available for asynchronous workflows.

How do I integrate the API into my application?

Integration is straightforward with our REST API. We provide request details and examples in the Nano Banana 2 API docs.

How can I get in touch with your team?

Please email us at contact@piapi.ai and we would be happy to help.