Purpose

Complete guide to accessing and using Google’s Nano Banana and Nano Banana Pro image generation APIs, including setup, authentication, pricing, and capabilities.

What is Nano Banana?

“Nano Banana” is the community nickname for Google’s Gemini image generation models:

Model Versions

NameOfficial NameModel IDBest For
Nano BananaGemini 2.5 Flash Imagegemini-2.5-flash-imageFast, cost-effective generation
Nano Banana ProGemini 3 Pro Imagegemini-3-pro-image-previewHigh quality, advanced features

Relationship to NotebookLM

Important distinction: While NotebookLM’s Video Overview feature uses “Gemini Nano Banana” for image generation, that is NOT the same as these standalone APIs. NotebookLM’s Video Overview has no API access - it’s web UI only.

These standalone Gemini image APIs are available to all developers through Google AI Studio.

How to Get API Access

Step-by-step setup:

  1. Create Google Cloud Account

  2. Get API Key

    • Click “Get API key” button in left sidebar
    • Generate new API key or use existing project
  3. Enable Billing (Required for Nano Banana Pro)

    • Nano Banana Pro has no free tier
    • Navigate to Google Cloud Console
    • Enable billing on your project
  4. Install SDK (Optional)

    • Python: pip install google-generativeai
    • JavaScript: npm install @google/generative-ai
    • Also available: Java, Go, REST
  5. Start Making API Calls

    • Use model identifiers: gemini-2.5-flash-image or gemini-3-pro-image-preview

Method 2: Vertex AI (Enterprise)

Access through Google Cloud’s Vertex AI platform:

  • Better for enterprise deployments
  • Integrates with existing GCP infrastructure
  • Same models, different access layer

Method 3: Third-Party Platforms

Unified API Access:

  • Kie.ai - Unified API key for both Nano Banana and Nano Banana Pro
  • CometAPI - All AI models in one API
  • Puter.js - Frontend access without server setup

Benefits of third-party platforms:

  • Single API key for multiple providers
  • Simplified billing
  • Additional features (playground, model comparison)
  • Often provide free tiers or trials

Pricing

Official Google Pricing (2025)

TierAccessCostLimits
Free (2.5 Flash)Google AI Studio APIFree500 requests/day per project
Paid (2.5 Flash)Billing enabled~$0.15 per 4K genUsage-based
Gemini App (Consumer)Web UIFree3 low-res generations, then degraded quality
Nano Banana ProBilling required~$0.15 per 4K genNo free tier

Special Promotions

  • 48-hour free tier: Launched Sept 6, 2025 - 500 requests/day for free tier API keys
  • Check Google AI Studio for current promotions

Resolution Pricing

  • Low-res: Often free in Gemini app (first 3 generations)
  • 2K output: Requires paid plan or API billing
  • 4K output: ~$0.15 per generation (highest quality)

API Capabilities

Core Features

1. Text-to-Image Generation

  • Prompt with natural language
  • Generate images from scratch
  • Support for detailed descriptions

2. Image Editing

  • Modify existing images
  • Style transfers
  • Object addition/removal

3. Multi-Image Composition

  • Combine multiple images
  • Create collages
  • Blend styles and elements

4. High-Fidelity Text Rendering

  • Accurate text generation in images
  • Legible and well-placed text
  • Perfect for:
    • Logos
    • Diagrams
    • Posters
    • Infographics

Input Methods

You can prompt with:

  • Text only: Traditional text-to-image
  • Image only: Image-to-image editing
  • Text + Image: Combined prompts for precise control
  • Multiple images: Multi-image composition

Output Options

  • Resolutions: Up to 4K
  • Formats: Standard image formats (PNG, JPEG)
  • Iterations: Create, edit, and iterate on visuals

Nano Banana vs Nano Banana Pro

Feature Comparison

FeatureNano Banana (2.5 Flash)Nano Banana Pro (3 Pro)
Speed⚡ FasterSlower (higher quality processing)
Cost💰 LowerHigher
QualityGood⭐ Excellent
Free Tier✅ 500 req/day❌ No free tier
Best ForRapid prototyping, high-volumeProfessional work, maximum quality
ResolutionUp to 4KUp to 4K
Text RenderingGoodExcellent

When to Use Which

Use Nano Banana (2.5 Flash) when:

  • Prototyping and experimentation
  • High-volume generation needs
  • Cost is a primary concern
  • Speed matters more than perfect quality
  • You want to stay in free tier

Use Nano Banana Pro (3 Pro) when:

  • Professional/commercial projects
  • Highest quality is essential
  • Complex compositions required
  • Text accuracy is critical
  • Budget allows for premium quality

SDK Integration

Python Example

import google.generativeai as genai
# Configure API key
genai.configure(api_key="YOUR_API_KEY")
# Initialize model
model = genai.GenerativeModel('gemini-2.5-flash-image')
# Generate image
response = model.generate_content([
"A futuristic cityscape at sunset with flying cars"
])
# Access generated image
image = response.images[0]

JavaScript Example

import { GoogleGenerativeAI } from "@google/generative-ai";
// Initialize client
const genAI = new GoogleGenerativeAI("YOUR_API_KEY");
// Get model
const model = genAI.getGenerativeModel({ model: "gemini-2.5-flash-image" });
// Generate image
const result = await model.generateContent([
"A futuristic cityscape at sunset with flying cars"
]);
// Access generated image
const image = result.response.images[0];

REST API Example

Terminal window
curl https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"contents": [{
"parts": [{
"text": "A futuristic cityscape at sunset with flying cars"
}]
}]
}'

Developer Resources

Official Documentation

Community Resources

Alternative Access Platforms

Free Access Options

1. Google AI Studio Free Tier

  • Model: Gemini 2.5 Flash Image only
  • Limit: 500 requests/day per project
  • Quality: Full quality (up to 4K)
  • Best for: Personal projects, testing

2. Gemini App (Consumer)

  • Access: Web UI at gemini.google.com
  • Limit: 3 low-res generations
  • After limit: Falls back to lower quality models
  • Best for: Casual experimentation

3. Puter.js User-Pays Model

  • Setup: No server required, frontend-only
  • Cost: Users cover their own usage
  • Best for: Web apps where users pay per use

4. Third-Party Free Trials

  • Many platforms offer initial free credits
  • Check Kie.ai, CometAPI for current promotions

Migration from NotebookLM

If you were looking for NotebookLM Video Overview API:

NotebookLM’s Video Overview feature (which uses Gemini Nano Banana internally) does not have API access. It’s web UI only.

Alternatives:

  1. Use these standalone APIs: Build your own video generation pipeline

    • Generate images with Nano Banana API
    • Combine with Google TTS API for narration
    • Use ffmpeg for video composition
  2. NotebookLM Enterprise API: Available for audio overviews only (not video)

    • Podcast API: podcasts method
    • Audio Overview: notebooks.audioOverviews.create
  3. Third-party alternatives:

    • AutoContent API - NotebookLM alternative
    • Podcastfy - Open source podcast generation

Common Use Cases

Professional Applications

  • Marketing: Social media graphics, ad creatives
  • Design: Logo concepts, poster designs
  • Education: Diagrams, infographics, visual aids
  • Content Creation: Blog illustrations, thumbnails
  • Product Design: Mockups, concept art

Developer Applications

  • Automated content generation: Bulk image creation
  • User-generated content: Let users create custom visuals
  • Data visualization: Transform data into visual stories
  • Game assets: Generate textures, sprites, concepts
  • Prototyping: Rapid UI mockup generation

Limitations and Considerations

Current Limitations

  • No free tier for Pro version - Billing required for Gemini 3 Pro Image
  • Rate limits - 500 req/day on free tier
  • Resolution caps - Maximum 4K output
  • Content policies - Subject to Google’s AI usage policies

Best Practices

  1. Start with free tier - Test with Gemini 2.5 Flash Image first
  2. Optimize prompts - Better prompts = better results, fewer retries
  3. Use appropriate model - Don’t pay for Pro if Flash suffices
  4. Monitor usage - Track API calls to avoid unexpected costs
  5. Cache results - Store generated images to avoid regeneration

Support and Community

Getting Help

Reporting Issues

Summary

TopicKey Points
AccessGoogle AI Studio, Vertex AI, or third-party platforms
ModelsNano Banana (2.5 Flash) for speed, Pro (3 Pro) for quality
Free Tier500 req/day for 2.5 Flash via Google AI Studio
Pricing~$0.15 per 4K generation for paid usage
CapabilitiesText-to-image, editing, composition, text rendering
SDKsPython, JavaScript, Java, Go, REST
Best ForProfessional image generation, automated content creation
NotebookLMSeparate product - Video Overview has no API

Sources

  1. Image generation with Gemini (aka Nano Banana & Nano Banana Pro)
  2. Developers can build with Nano Banana Pro (Gemini 3 Pro Image)
  3. Nano Banana Pro: Gemini 3 Pro Image model from Google DeepMind
  4. How to Use Nano Banana via API (Gemini-2-5-flash-image-preview)
  5. How to Access the Nano Banana Pro API
  6. Introducing Nano Banana Pro: Complete Developer Tutorial
  7. Nano Banana Hackathon Kit (GitHub)
  8. How to Use Nano Banana Pro for Free in 2025
  9. Is Nano Banana Free? How to Access Gemini 2.5 Flash Image (2025)
  10. Nano Banana Pro API: Gemini 3 Pro & 2.5 Flash Image Integration (Kie.ai)
  11. Free, Unlimited Nano Banana API (Puter.js)
  12. How to Use the Nano Banana Pro(Gemini 3 Pro Image) API - CometAPI
  13. How Much Is Nano Banana Pro? Full Pricing Breakdown
  14. How to Use Nano Banana Pro/Nano Banana 2 API - Step-by-Step Guide