Skip to main content

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.

Est. $0.06

Nano Banana 2 API Pricing

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

Nano Banana 2 API

$0.06-$0.12/img per image

Developer-ready API access

Why choose Nano Banana 2 API?

A developer-first image generation and editing model, available via PiAPI with a playground and unified integration.

Lightning Fast Speed

Nano Banana 2 produces output at lightning-fast speed, making it a strong fit for rapid creative and production workflows.

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.

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.

Precise Instruction Following

Nano Banana 2 follows creative instructions closely, giving teams more control over image generation and editing tasks.

Upgraded Visual Fidelity

Expect richer textures, stronger lighting, and sharper details across outputs, from quick previews to polished assets.

SOTA Performance

Nano Banana 2 achieves state-of-the-art results against leading models for image generation and image editing.

Production-Ready Workflow

Use the PiAPI playground for testing, then ship the same model through a unified API for real product workflows.

Integrate in Minutes

Create your API key

Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.

Top up credits

Add credits on the billing page when you are ready to scale beyond the free tier.

Call the API

POST your first task following the API docs, then poll the task until the result is ready.

Iterate in the playground

Prototype prompts and settings in the the playground above before wiring them into your product.

curl -X POST 'https://api.piapi.ai/api/v1/task' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "gemini",
    "task_type": "nano-banana-2",
    "input": {
      "prompt": "A modern smartphone on a reflective surface with water droplets.",
      "resolution": "1K"
    }
  }'

# → { "task_id": "9d5a…", "status": "pending" }

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-banana lets 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.

What kind of prompts work best?

Clear, descriptive prompts and well-chosen reference images usually produce the best results.

Is there a limit on image generation?

There are no hard total generation limits, but request-level constraints depend on the selected model configuration.

How can I get in touch with your team?

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

More questions? See the API docs.

Our blog

Nano Banana 2 API