Nano Banana 2 AI Image Editing Model

Gemini 3.1 Flash with image generation capabilities. High-efficiency image generation model with support for text rendering, reference images, search grounding, and thinking mode. The efficient counterpart to Gemini 3 Pro Image.

1.0M
Context Window
Input / Output
Text Image Audio Video File Text Image
Active

Capabilities

Function calling Structured output Batch Streaming System prompt Tool use Grounding Thinking Code execution Json mode

Details

Model ID
gemini-3.1-flash-image-preview
Also known as: gemini-3.1-flash-image
Creator
Google
Family
gemini-3.1-flash
Released
February 2026
Max Input Images
14
Max Output Tokens
65,536
Tags
multimodal image-generation fast
// Get Started

Ready to integrate?

Access gemini-3.1-flash-image-preview via our unified API.

Create Account

Providers & Pricing (4)

Nano Banana 2 is available from 4 providers, with per-image pricing starting at $0.0225 through fal.ai.

fal.ai
fal/gemini-3.1-flash-image-preview
Provider Model ID: fal-ai/nano-banana-2

Output

Image 0.5K
$0.060 per image
Image 1K
$0.080 per image
Image 2K
$0.120 per image
Image 4K
$0.160 per image
Pricing Notes (5)
  • $0.08 per image at 1K (standard rate)
  • 0.5K outputs charged at 0.75x ($0.06)
  • 2K outputs charged at 1.5x ($0.12)
  • 4K outputs charged at 2x ($0.16)
  • Web search adds $0.015 per request
View official pricing • As of Feb 26, 2026
Replicate
replicate/gemini-3.1-flash-image-preview
Provider Model ID: google/nano-banana-2

Output

Image 1K
$0.067 per image
Image 2K
$0.101 per image
Image 4K
$0.151 per image
Pricing Notes (3)
  • $0.067 per output image at 1K
  • $0.101 per output image at 2K
  • $0.151 per output image at 4K
View official pricing • As of Feb 26, 2026
Gemini API
gemini/gemini-3.1-flash-image-preview
Provider Model ID: gemini-3.1-flash-image-preview

Input

Token
$0.250 per 1M

Output

Token text
$1.50 per 1M
Image 0.5K
$0.045 per image
Image 1K
$0.067 per image
Image 2K
$0.101 per image
Image 4K
$0.151 per image
Image 0.5K
$0.022 per image
Image 1K
$0.034 per image
Image 2K
$0.050 per image
Image 4K
$0.076 per image
Pricing Notes (4)
  • $0.045 per output image at 512px (0.5K) (747 tokens)
  • $0.067 per output image at 1024x1024px (1K) (1120 tokens)
  • $0.101 per output image at 2048x2048px (2K) (1680 tokens)
  • $0.151 per output image at 4096x4096px (4K) (2520 tokens)
View official pricing • As of Feb 26, 2026
Vertex AI
vertex/gemini-3.1-flash-image-preview
Provider Model ID: gemini-3.1-flash-image-preview

Input

Token
$0.250 per 1M

Output

Token text
$1.50 per 1M
Image 0.5K
$0.045 per image
Image 1K
$0.067 per image
Image 2K
$0.101 per image
Image 4K
$0.151 per image
Image 0.5K
$0.022 per image
Image 1K
$0.034 per image
Image 2K
$0.050 per image
Image 4K
$0.076 per image
Pricing Notes (4)
  • $0.045 per output image at 512px (0.5K) (747 tokens)
  • $0.067 per output image at 1024x1024px (1K) (1120 tokens)
  • $0.101 per output image at 2048x2048px (2K) (1680 tokens)
  • $0.151 per output image at 4096x4096px (4K) (2520 tokens)
View official pricing • As of Feb 26, 2026

Provider Performance

Fastest generation through gemini at 13,298ms median latency with 91.6% success rate.

Aggregated from real API requests over the last 30 days.

Generation Time

gemini
13,298ms p95: 24,656ms
vertex
29,915ms p95: 59,391ms

Success Rate

gemini
91.6%
218 / 238 requests
vertex
76.7%
23 / 30 requests

Time to First Byte

gemini
13,167ms
p95: 24,410ms
vertex
29,412ms
p95: 59,209ms

Provider Rankings

# Provider p50 Gen Time p95 Gen Time Success Rate TTFB (p50)
1 gemini 13,298ms 24,656ms 91.6% 13,167ms
2 vertex 29,915ms 59,391ms 76.7% 29,412ms
Data updated every 15 minutes. Based on all API requests through Lumenfall over the last 30 days.

gemini-3.1-flash-image API OpenAI-compatible

Connect to Nano Banana 2 via the Lumenfall OpenAI-compatible API to integrate high-speed text-to-image generation and image editing into your workflow. The unified endpoint allows for programmatic creation of visual assets and precise modifications to existing images through a single interface.

Base URL
https://api.lumenfall.ai/openai/v1
Model
gemini-3.1-flash-image-preview

Text to Image Generate

Create images from text descriptions

curl -X POST \
  https://api.lumenfall.ai/openai/v1/images/generations \
  -H "Authorization: Bearer $LUMENFALL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-flash-image-preview",
    "prompt": "A serene mountain landscape at sunset",
    "size": "1024x1024"
  }'
# Response:
# { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] }

Image Editing Edit

Transform existing images with text instructions

curl -X POST \
  https://api.lumenfall.ai/openai/v1/images/edits \
  -H "Authorization: Bearer $LUMENFALL_API_KEY" \
  -F "model=gemini-3.1-flash-image-preview" \
  -F "[email protected]" \
  -F "prompt=Add a starry night sky to this image" \
  -F "size=1024x1024"
# Response:
# { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] }

Benchmarks

Nano Banana 2 (Gemini 3.1 Flash Image) ranks #1 in text-to-image generation with an Elo of 1302 and #6 in image editing with an Elo of 1223. This high-efficiency model demonstrates top-tier performance against competitors, maintaining competitive rankings across both creative and technical generation tasks.

Lumenfall Arena
#6
Image Editing · 1225 Elo
Lumenfall Arena
#1
Text-to-Image · 1299 Elo

Competition Results

Studio Ghibli Anime Style

Image Editing
#1/13
Edit instruction

“Transform this photo into a Studio Ghibli–inspired illustration. Use soft pastel colors, hand-painted textures, gentle lighting, dreamy backgrounds, and a warm, nostalgic mood”

Source
Result
3 attempts – showing best result

Man and Car in California

Image Editing
#7/13
Edit instruction

“Make a photo of the man driving the car down the California coastline”

Source
Result
3 attempts – showing best result

Modern Clean Menu

Text-to-Image
#4/19
Prompt

“Modern minimalist restaurant menu design, white background with colorful food photos in grid, sections for appetizers/pizza/mains, bold sans-serif fonts, vibrant accents, clean professional layout for casual dining.”

Generated
3 attempts – showing best result

Adorable Baby Animals in Sunny Meadow

Text-to-Image
#3/23
Prompt

“Hyper-photorealistic scene of fluffy baby animals—a golden retriever puppy, tabby kitten, baby bunny, and red fox kit—with big expressive eyes and ultra-detailed soft fur, playfully chasing butterflies and tumbling together in a lush wildflower meadow, warm golden sunrise light with god rays and dew sparkles, joyful wholesome vibe, 8K masterpiece.”

Generated
3 attempts – showing best result

Vintage Cafe Logo

Text-to-Image
#3/19
Prompt

“Vintage minimalist restaurant logo for "Caffè Florian", retro cloche dome with steam and "Est. 1720" banner, classic typography, warm brown and cream tones, subtle texture on light background, vector emblem style.”

Generated
3 attempts – showing best result

Over-the-top cartoon caricature

Image Editing
#5/13
Edit instruction

“Create a caricature of me and my job. Make it exaggerated and humorous, incorporating my profession as a tv show anchor and my love for dogs and hockey.”

Source
Result
3 attempts – showing best result

Geometric Composition

Text-to-Image
#5/22
Prompt

“A glass cube on a wooden table. Inside the cube is a small blue sphere. On top of the cube sits a red book. A green plant is behind the cube, partially visible through the glass. Soft window light from the left.”

Generated
3 attempts – showing best result

Bald man challenge

Image Editing
#4/14
Edit instruction

“Give the person a full, thick head of natural hair with realistic texture, density, and a natural hairline. Preserve facial features and lighting.”

Result
Nano Banana 2 edited result for Bald man challenge
Original image before Nano Banana 2 editing
Before After
3 attempts – showing best result

Apollo 11: Journey to Tranquility

Text-to-Image
#9/19
Prompt

“Create a clean, modern vector infographic poster about the Apollo 11 mission. NASA-inspired palette (navy, white, muted red, light gray). Flat-vector style, crisp lines, consistent iconography, subtle gradients only. Steps (stop at landing): 1. Launch (Saturn Vicon) 2. Earth Orbit (Earth + orbit ring icon) 3. Translunar (trajectory arc icon) 4. Lunar Orbit (Moon + orbit ring icon) 5. Descent (lunar module descending icon) 6. Landing (lunar module on the surface icon) Small supporting elements (minimal text): • Crew strip: three silhouette icons with only last names: Armstrong, Aldrin, Collins. • Landing site marker: Moon pin labeled "Tranquility" only. Layout constraints: generous margins, large readable labels, clean background with subtle stars. Vector-only, print-poster look, high resolution.”

Generated
3 attempts – showing best result

Isometric Miniature Diorama Scenes

Text-to-Image
#10/19
Prompt

“Create a clear, 45° top-down isometric miniature 3D cartoon scene of Japan's signature dish: sushi, with soft refined textures, realistic PBR materials, gentle lighting, on a small raised diorama base with minimal garnish and plate. Solid light blue background. At top-center: 'JAPAN' in large bold text, 'SUSHI' below it, small flag icon. Perfectly centered, ultra-clean, high-clarity, square format.”

Generated
3 attempts – showing best result

Fantasy Warrior

Text-to-Image
#13/19
Prompt

“Close portrait of a battle-worn paladin in ornate engraved plate armor, hair braided with small beads, faint scars and dirt on the skin, warm torchlight reflecting off metal, shallow depth of field, bokeh sparks, lifelike eyes, highly detailed texture on leather straps and cloth underlayer.”

Generated
3 attempts – showing best result

Candid Street Photography

Text-to-Image
#19/22
Prompt

“A candid street photo of an elderly Japanese man repairing a red bicycle in light rain, reflections on wet pavement, shallow depth of field, 50mm lens, natural skin texture, imperfect framing, motion blur from passing cars, cinematic but realistic, no stylization.”

Generated
3 attempts – showing best result

Night Sky Transformation

Image Editing
#14/15
Edit instruction

“Change the scene to night: a deep, dark sky with subtle, glistening stars visible behind the mountain.”

Result
Nano Banana 2 edited result for Night Sky Transformation
Original image before Nano Banana 2 editing
Before After
3 attempts – showing best result
Help rank Nano Banana 2 Vote in blind head-to-head matchups
Start Voting

Nano Banana 2 FAQ

How much does Nano Banana 2 cost?

Nano Banana 2 starts at $0.0225 per image through Lumenfall. Pricing varies by provider. Lumenfall does not add any markup to provider pricing.

What can Nano Banana 2 do?

Nano Banana 2 supports Function calling, Structured output, Batch, Streaming, System prompt, Tool use, Grounding, Thinking, Code execution, and Json mode. It accepts text, image, audio, video, and file input and produces text and image output.

How do I use Nano Banana 2 via API?

You can use Nano Banana 2 through Lumenfall's OpenAI-compatible API. Send requests to the unified endpoint with model ID "gemini-3.1-flash-image-preview". Code examples are available in Python, JavaScript, and cURL.

Which providers offer Nano Banana 2?

Nano Banana 2 is available through Gemini API, fal.ai, Vertex AI, and Replicate on Lumenfall. Lumenfall automatically routes requests to the best available provider.

Overview

Nano Banana 2 (slug: gemini-3.1-flash-image-preview) is a high-efficiency multimodal model developed by Google that bridges the gap between reasoning and visual synthesis. As the streamlined counterpart to the Gemini 3 Pro Image, it provides a unified interface for complex text generation and fast image creation. It is distinctive for its “Thinking Mode,” allowing the model to perform internal reasoning cycles before generating an image or structured text response.

Strengths

  • High-Efficiency Generation: Optimized for speed and low latency, making it suitable for real-time applications where rapid image iteration is required.
  • Complex Text Rendering: Excels at incorporating legible, accurate typography within generated images, a common failure point for many diffusion-based models.
  • Deep Reasoning Integration: Features a native thinking mode that allows the model to process complex prompts, spatial relationships, and logical constraints before producing visual or textual output.
  • Grounding and Tool Use: Supports search grounding and code execution, enabling the model to verify facts or perform calculations prior to generating content.
  • Reference Image Support: Capable of using existing images as structural or stylistic guides to maintain consistency across generated assets.

Limitations

  • Efficiency vs. Fidelity: While fast, it may lack the extreme aesthetic refinement and intricate textural detail found in the larger Gemini 3 Pro Image model.
  • Preview Status: As a preview release, the model may exhibit occasional inconsistencies in following highly nuanced stylistic prompts compared to more mature, production-stable versions.
  • Context Overhead: The use of internal reasoning (Thinking Mode) can increase processing time for simple tasks where a direct generation would have sufficed.

Technical Background

Part of the Gemini 3.1 Flash family, this model utilizes a multimodal transformer architecture trained for both discriminative and generative tasks. It integrates a latent diffusion-based image generation head directly into the language model pipeline, allowing for seamless transitions between modalities. By employing a “distilled” training approach, Google has optimized the model for high throughput while retaining the core reasoning capabilities of the Gemini 3.1 architecture.

Best For

Nano Banana 2 is ideal for building interactive design tools, rapid prototyping of social media assets, and automated content pipelines where both text and imagery are required. Its support for structured output and JSON mode makes it an excellent choice for developers needing to programmatically control visual attributes. You can experiment with these multimodal features and integrate them into your workflow through Lumenfall’s unified API and playground.

Top Matchups

See how Nano Banana 2 performs head-to-head against other AI image models, ranked by community votes in blind comparisons.

Try Nano Banana 2 in Playground

Generate images with custom prompts — no API key needed.

Open Playground