Nano Banana API Documentation & Pricing (2025) — Try Gemini 2.5 Flash via PiAPI

Nano Banana is no longer just a buzzword in creator forums — it’s now confirmed as Google’s Gemini 2.5 Flash Image model. Fast, consistent, and tuned for natural editing, Nano Banana is changing how developers and creators approach image generation.
The best part? You can access the Nano Banana API for free via PiAPI, with transparent pricing and a no-code Playground. Here’s everything you need: documentation, pricing, and how to grab your free API key today.
Why Choose Nano Banana?
Nano Banana is Google’s dual-purpose image generator and editing model. Unlike most tools that force you to test endless prompt variations, the model understands plain, natural language.
This means you don’t have to spend your credits testing five different phrasings just to get one good result. Instead, you can simply say “remove the background and make this look like a studio product shot” or “make the character wave while staying in the same style” .
It’s faster, cheaper, and far more intuitive.
Nano Banana in Action: 3D Figurine Trend
One trend already taking off with Nano Banana? 3D figurine-style renders.

Example Prompt: “Create a 1/7 scale commercialized figure of the character in the photo. The style should be realistic, with clearly defined features, and placed in a real-world environment. The figure should be positioned on a computer desk, standing on a round transparent acrylic base with no text. On the computer screen, display the Adobe Illustrator modeling process of this figure. Next to the screen, place a BANDAI-style toy packaging box printed with the original photo."
This is the kind of product-style output that used to take hours of manual editing — now it’s just one prompt away. Explore more stunning images here, from text-to-image, anime, line art and creating characters.
Nano Banana API Documentation
Here’s how to start:
- 1. Get Your Free API Key
- Sign up at PiAPI (no billing required for the Free Plan).
- Access the Nano Banana API Docs.
- API Request Example
{ "model": "gemini", "task_type": "gemini-2.5-flash-image", "input": { "prompt": "An action shot of a black lab swimming in an inground suburban swimming pool. The camera is placed meticulously on the water line, dividing the image in half, revealing both the dogs head above water holding a tennis ball in it's mouth, and it's paws paddling underwater.", "num_images": 1, "output_format": "png" }, "config": { "webhook_config": { "endpoint": "https://webhook.site/8c547d77-8ff1-4cf0-8cd7-b66b18953a88", "secret": "" } } }
Visit the full Gemini 2.5 Flash docs for the full params with more accurate formatting for your use.
Nano Banana API Pricing (2025)
- 1. Free Plan → Includes Playground trial & basic API access.
- 2. Per Image Cost → $0.03 per image (JPEG/PNG).
- 3. Bulk Requests → Up to 4 images per request.
- 4. Credits Included → $10 FREE credits on Creator plan, $60 on Pro.
Transparent, no token leakage: you only pay for what you generate.
Why Use PiAPI for Nano Banana?
- 1. Free API key + Playground trial (no credit card needed)
- 2. Predictable pricing — $0.03 per image
- 3. No-code testing before integration
- 4. Webhook-ready for automation
- 5. Commercial rights included.
Try Nano Banana API for Free Today!
We make it simple to test and integrate Google Gemini’s Nano Banana model into your apps, workflows, or creative projects. Start with the free trial, explore the Playground and unlock consistency at scale.
Unlock the power of 20+ AI models with PiAPI — image, video, chat, music, and more. Sign up today and start building smarter, faster, and at scale.
Frequently Asked Questions
What is Gemini 2.5 Flash Image API?
Gemini 2.5 Flash is Google's latest AI image generation model, optimized for speed and quality. Our API provides easy access to this cutting-edge technology, allowing you to generate high-quality images from text prompts in seconds.
How much does it cost to generate images?
Our pricing is simple and transparent: $0.03 per image generated. You can generate up to 4 images per request, making it cost-effective for bulk generation. There are no subscription fees or hidden costs - you only pay for what you use.
What image formats are supported?
We support both JPEG and PNG output formats. You can specify your preferred format in the API request. JPEG is great for photographs and complex images, while PNG is ideal for graphics with transparency or sharp edges.
How fast is the image generation?
Gemini 2.5 Flash is optimized for speed. Most images are generated in under 10 seconds, making it perfect for real-time applications, interactive tools, and user-facing products that need immediate results.
Can I use generated images commercially?
Yes! All images generated through our Gemini 2.5 Flash API come with full commercial usage rights. You can use them in your products, marketing materials, websites, or any commercial application without additional licensing fees.
What is the no-code workspace?
Our no-code workspace at piapi.ai/workspace/nano-banana allows you to test the API without writing any code. Simply enter your prompts, adjust settings, and generate images directly in your browser. It's perfect for testing ideas before API integration.
Do you support webhooks?
Yes, we provide webhook support for asynchronous processing. You can specify a webhook endpoint in your request, and we'll notify you when your images are ready. This is ideal for long-running tasks and automated workflows.
How do I integrate the API into my application?
Integration is straightforward with our REST API. Simply make a POST request to our endpoint with your API key and image generation parameters. We provide comprehensive documentation and code examples for popular programming languages at our API docs.
What kind of prompts work best?
Gemini 2.5 Flash understands detailed, descriptive prompts. Include information about style, composition, lighting, colors, and mood. For example: 'A serene mountain landscape at sunset with vibrant orange and purple skies, photorealistic style' works better than just 'mountain'.
Is there a limit on image generation?
There are no hard limits on the number of images you can generate. However, you can generate up to 4 images per API request. For high-volume usage, we recommend implementing proper rate limiting and consider our enterprise plans for enhanced support.
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!