Nano Banana 2 Lite API for Developers

Nano Banana 2 Lite API

Generate and edit production-ready images with Nano Banana 2 Lite via API. Stronger instruction following, subject consistency, and detail precision — no GPU setup required.

No watermarks on paid plans
Transparent per-credit pricing
Subscription or usage-based
Creator / Pro / Business
Auto-scaling
Nano Banana 2 Lite example: couple in a San Francisco cafe overlooking a park and skyline
SF cafe
Nano Banana 2 Lite example: dew-covered spider on a web against blurred foliage
Macro spider
Nano Banana 2 Lite example: close-up of a spiny lizard
Spiny lizard
Nano Banana 2 Lite example: paper wave sculpture in a library setting
Paper wave
Nano Banana 2 Lite example: orange car in fog
Foggy car
Nano Banana 2 Lite example: chibi fox diorama scene
Chibi fox
Nano Banana 2 Lite example: stylized spherical fox
Spherical fox
Nano Banana 2 Lite example: white arctic wolf with blue eyes on a mountain trail
Arctic wolf
Nano Banana 2 Lite example: character figure product shot
Character figure
Nano Banana 2 Lite example: gold-outline dog enamel pin on a beige background
Enamel pin
Nano Banana 2 Lite example: homemade cookies
Cookies

Trusted by teams at

meta
nba
loreal
puma
cisco
deel
shopify
decathlon
dallas-mavericks
pittsburgh-pirates
tala
dyson
dazn
wsc-sports

Everything You Need to Ship Nano Banana 2 Lite

Production-ready image generation with stronger instruction following.

Instruction Following
Stronger prompt adherence than Nano Banana — more precise control over output details.
Subject Consistency
Better consistency across multiple generations for campaigns and batch workflows.
Production-Ready Output
Higher fidelity results suitable for client delivery and commercial production.
Native Editing
Edit existing images with prompt-based modifications built into the model.
Auto-Scaling Infrastructure
Scales compute to match demand automatically. No GPU provisioning or cold starts.
Commercial-Ready
Paid plans support non-watermarked outputs for commercial delivery.

Integrate in 3 Steps

Add production-grade AI image generation to your app in minutes.

1
Get Your API Key
Sign up and generate an API key from the Developer dashboard. Nano Banana 2 Lite requires a Creator, Pro, or Business plan.
2
Send Your Request
Call /v1/ai-image-generator with a text prompt for text-to-image (up to 4 images per request). For editing, call /v1/ai-image-editor with reference images in assets.image_file_paths.
3
Get Results & Scale
Receive generated or edited images via response. Deploy to production — infrastructure scales automatically.
Get Started Free

Code Examples

Nano Banana 2 Lite in a few lines of code. Install an SDK or use the REST API directly.

from magic_hour import Client
from os import getenv

client = Client(token=getenv("API_TOKEN"))
res = client.v1.ai_image_generator.generate(
    image_count=1,
    style={
        "prompt": "A surreal landscape at golden hour with layered clouds",
        "tool": "general",
    },
    aspect_ratio="1:1",
    model="nano-banana-2-lite",
    name="Nano Banana 2 Lite",
    resolution="1k",
)
API Docs

Estimate Your API Costs

Build with model-specific APIs for video, image generation, and image editing. Compare inputs, examples, and capabilities across Magic Hour's supported models.
Images Per Month
10 images
images
Recommended plan
Pro Annual
$300
/year
300,000 credits per year
Up to 3.5 hours of video
Up to 30,000 images
PRO ANNUAL covers your usage
Estimated usage
25,000credits / month
Included
25,000credits / month
TOTAL BILL
$300
/year

Nano Banana 2 Lite API Pricing

Subscription plans for standard usage.

Prefer usage-based pricing?

Email us or message us in Intercom and we will set up your usage-based pricing.

Built for Builders

See how developers use the Nano Banana 2 Lite API to power real products.

Client-Ready Creative
Generate production-quality images for client delivery and commercial campaigns.
Product Photography
Create precise product images with strong instruction following for e-commerce.
Brand Consistency
Generate brand-consistent visual assets with repeatable quality across campaigns.
Marketing Production
Create polished marketing visuals with detail control for A/B testing and personalization.
Design Systems
Generate consistent UI and design assets with reliable instruction following.
Professional Portraits
Create detailed, consistent portrait images for professional use cases.
Try before integrating

Try Nano Banana 2 Lite Free — No Code Required

Test quality first with the free tool, then plug the same output quality into your app with the API when you are ready.

Nano Banana 2 Lite API — Frequently Asked Questions

Magic Hour's Nano Banana 2 Lite API lets developers generate and edit images via REST API with SDKs for Python, Node.js, Go, and Rust.

Lite prioritizes speed and cost at 1K for high-volume drafts. Nano Banana 2 is the stronger all-around default with 2K/4K options and more polish.

Nano Banana 2 Lite requires a paid plan (Creator, Pro, or Business).

640px and 1K for both generation and editing. 2K and 4K are not available.

Yes. Use /v1/ai-image-generator for text-to-image, or /v1/ai-image-editor with reference images for instruction-based edits.

Use Nano Banana 2 Lite for rapid ideation and high-volume drafts at 1K. Use Nano Banana Pro when fidelity, typography, and creative control matter most.

Official SDKs for Python, Node.js, Go, and Rust.

Nano Banana 2 Lite costs 50 credits per image at 1K. Magic Hour offers subscription plans starting at $15/month (Creator), $39/month (Pro), and $99/month (Business), each including a monthly credit allotment. You can also contact us to set up usage-based (pay-as-you-go) pricing. Nano Banana 2 Lite requires a paid plan (Creator, Pro, or Business) and is not available on the free tier.

Sign up at magichour.ai/developer — no credit card required — to get an API key instantly. The key works across all Magic Hour API endpoints, but Nano Banana 2 Lite itself requires a paid plan (Creator, Pro, or Business). Once subscribed, call it with our Python, Node.js, Go, or Rust SDKs.

Signing up is free and gives you an API key, but Nano Banana 2 Lite is not available on the free tier — it requires a paid plan (Creator, Pro, or Business). Paid plans unlock Nano Banana 2 Lite along with higher credit limits, concurrency, and commercial use rights.

Start Building with the Magic Hour Nano Banana 2 Lite API

Free credits on signup. SDKs for Python, Node.js, Go, and Rust. Production-ready in minutes.