# Nano Banana > Gemini 2.5 Flash Image is optimized for image understanding and generation, offering a balance of price and performance with fast and efficient image generation and editing capabilities. ## Quick Reference - Model ID: gemini-2.5-flash-image - Creator: Google - Status: active - Family: gemini-2.5-flash-image - Base URL: https://api.lumenfall.ai/openai/v1 ## Specifications - Context Window: 32768 tokens - Max Output Images: 10 - Max Input Images: 3 - Max Output Tokens: 32768 - Input Modalities: text, image - Output Modalities: text, image - Capabilities: batch, system_prompt ## Model Identifiers - Primary Slug: gemini-2.5-flash-image - Aliases: gemini-2.5-flash-image-preview - Alternative Names: Nano Banana ## Dates - Released: October 2025 ## Tags image-generation, multimodal, fast ## Available Providers ### fal.ai - Config Key: fal/gemini-2.5-flash-image - Provider Model ID: fal-ai/gemini-25-flash-image - Pricing: - source: official - currency: USD - components: [{"type" => "output", "metric" => "image", "unit_price" => 0.039}] - source_url: https://fal.ai/models/fal-ai/gemini-25-flash-image/api - effective_at: 2026-01-26 ### Gemini API - Config Key: gemini/gemini-2.5-flash-image - Provider Model ID: gemini-2.5-flash-image - Regions: global - Pricing: - source: official - currency: USD - components: [{"type" => "input", "metric" => "token", "unit_size" => 1000000, "unit_price" => 0.3}, {"type" => "output", "metric" => "token_image", "unit_size" => 1000000, "unit_price" => 30}, {"type" => "input", "metric" => "token", "unit_size" => 1000000, "conditions" => {"batch" => true}, "unit_price" => 0.15}] - source_url: https://ai.google.dev/gemini-api/docs/pricing#gemini-2.5-flash-image - effective_at: 2025-10-02 ### Replicate - Config Key: replicate/gemini-2.5-flash-image - Provider Model ID: google/gemini-2.5-flash-image - Pricing: - source: official - currency: USD - components: [{"type" => "output", "metric" => "image", "unit_price" => 0.039}] - source_url: https://replicate.com/google/gemini-2.5-flash-image - effective_at: 2026-01-26 ### Vertex AI - Config Key: vertex/gemini-2.5-flash-image - Provider Model ID: gemini-2.5-flash-image - Regions: global - Pricing: - source: official - currency: USD - components: [{"type" => "input", "metric" => "token", "unit_size" => 1000000, "unit_price" => 0.3}, {"type" => "output", "metric" => "token_image", "unit_size" => 1000000, "unit_price" => 30}, {"type" => "input", "metric" => "token", "unit_size" => 1000000, "conditions" => {"batch" => true}, "unit_price" => 0.15}] - source_url: https://cloud.google.com/vertex-ai/generative-ai/pricing - effective_at: 2025-10-02 ## Performance Metrics Provider performance over the last 30 days. ### gemini - Median Generation Time (p50): 8845ms - 95th Percentile Generation Time (p95): 14071ms - Average Generation Time: 9369ms - Success Rate: 92.3% - Total Requests: 13 - Time to First Byte (p50): 8812ms - Time to First Byte (p95): 13267ms ## Arena Benchmarks ### Neutral Expression to Genuine Smile - Elo: 1262 - Record: 26W / 6L / 5T (37 battles) - Rank: #1 of 12 ### Heroic Super Hero Portrait - Elo: 1257 - Record: 13W / 14L / 5T (32 battles) - Rank: #1 of 19 ### Man and Car in California - Elo: 1252 - Record: 35W / 41L / 4T (80 battles) - Rank: #5 of 13 ### Bald man challenge - Elo: 1222 - Record: 19W / 4L / 6T (29 battles) - Rank: #2 of 14 ### Victorian Greenhouse Oasis - Elo: 1184 - Record: 8W / 4L / 0T (12 battles) - Rank: #8 of 17 ### Over-the-top cartoon caricature - Elo: 1181 - Record: 8W / 8L / 0T (16 battles) - Rank: #8 of 13 ### Golden Hour Stroll - Elo: 1176 - Record: 11W / 6L / 2T (19 battles) - Rank: #5 of 12 ### Geometric Composition - Elo: 1174 - Record: 7W / 11L / 10T (28 battles) - Rank: #9 of 22 ### Vintage Cafe Logo - Elo: 1173 - Record: 11W / 9L / 1T (21 battles) - Rank: #5 of 19 ### Modern Clean Menu - Elo: 1168 - Record: 15W / 14L / 1T (30 battles) - Rank: #10 of 19 ### Night Sky Transformation - Elo: 1153 - Record: 10W / 4L / 5T (19 battles) - Rank: #8 of 15 ### Candid Street Photography - Elo: 1148 - Record: 10W / 5L / 0T (15 battles) - Rank: #13 of 22 ### Apollo 11: Journey to Tranquility - Elo: 1142 - Record: 10W / 8L / 0T (18 battles) - Rank: #13 of 19 ### Intricate Floral Mandala - Elo: 1139 - Record: 5W / 5L / 3T (13 battles) - Rank: #10 of 15 ### Isometric Miniature Diorama Scenes - Elo: 1139 - Record: 8W / 11L / 3T (22 battles) - Rank: #16 of 19 ### Studio Ghibli Anime Style - Elo: 1080 - Record: 1W / 18L / 1T (20 battles) - Rank: #13 of 13 ### Fantasy Warrior - Elo: 1077 - Record: 4W / 8L / 4T (16 battles) - Rank: #19 of 19 ### Fantasy Warrior - Elo: 1061 - Record: 1W / 2L / 1T (4 battles) - Rank: #11 of 14 ## Use Cases & Category Performance ### Portrait (Image Editing) - Rank: #1 of 14 - Elo: 1279 - Record: 45W / 10L / 9T (64 battles) - Win Rate: 70.3% ### Photorealism (Image Editing) - Rank: #2 of 16 - Elo: 1254 - Record: 101W / 61L / 20T (182 battles) - Win Rate: 55.5% ### Photorealism (Text-to-Image) - Rank: #6 of 22 - Elo: 1209 - Record: 10W / 5L / 0T (15 battles) - Win Rate: 66.7% ### Product, Branding & Commercial (Text-to-Image) - Rank: #7 of 19 - Elo: 1188 - Record: 11W / 9L / 1T (21 battles) - Win Rate: 52.4% ### Text Rendering (Text-to-Image) - Rank: #11 of 21 - Elo: 1223 - Record: 36W / 31L / 2T (69 battles) - Win Rate: 52.2% ### Portrait (Text-to-Image) - Rank: #17 of 19 - Elo: 1103 - Record: 4W / 8L / 4T (16 battles) - Win Rate: 25.0% ### Anime (Image Editing) - Rank: #12 of 13 - Elo: 1159 - Record: 1W / 18L / 1T (20 battles) - Win Rate: 5.0% ## Image Gallery 22 images available for this model. - Curated examples: 4 - "Cinematic wide shot of a high-end, artisan glassblowing workshop. In the center, a master craftsman holds a long rod ..." - "Cinematic wide shot of an elderly artisan in a sun-drenched Mediterranean workshop, meticulously hand-painting intric..." - "A macro photography shot of an antique mechanical watch movement, intricate brass gears and silver escapements interl..." - "A cozy ceramic studio bathed in morning sunlight, focusing on a half-finished clay vase on a pottery wheel. In the so..." - Competition results: 18 - Neutral Expression to Genuine Smile: #1 of 12 (Elo 1262) - Heroic Super Hero Portrait: #1 of 19 (Elo 1257) - Man and Car in California: #5 of 13 (Elo 1252) - Bald man challenge: #2 of 14 (Elo 1222) - Victorian Greenhouse Oasis: #8 of 17 (Elo 1184) - Over-the-top cartoon caricature: #8 of 13 (Elo 1181) - Golden Hour Stroll: #5 of 12 (Elo 1176) - Geometric Composition: #9 of 22 (Elo 1174) - Vintage Cafe Logo: #5 of 19 (Elo 1173) - Modern Clean Menu: #10 of 19 (Elo 1168) - Night Sky Transformation: #8 of 15 (Elo 1153) - Candid Street Photography: #13 of 22 (Elo 1148) - Apollo 11: Journey to Tranquility: #13 of 19 (Elo 1142) - Intricate Floral Mandala: #10 of 15 (Elo 1139) - Isometric Miniature Diorama Scenes: #16 of 19 (Elo 1139) - Studio Ghibli Anime Style: #13 of 13 (Elo 1080) - Fantasy Warrior: #19 of 19 (Elo 1077) - Fantasy Warrior: #11 of 14 (Elo 1061) ## Example Prompt The following prompt was used to generate an example image in our playground: A cozy ceramic studio bathed in morning sunlight, focusing on a half-finished clay vase on a pottery wheel. In the soft-focus background, a small capybara sits patiently on a wooden stool, wearing a tiny blue bandana. Cinematic soft lighting. ## Code Examples ### Text to Image (Generation) #### cURL 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-2.5-flash-image", "prompt": "A serene mountain landscape at sunset", "size": "1024x1024" }' # Response: # { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] } #### JavaScript import OpenAI from 'openai'; const client = new OpenAI({ apiKey: 'YOUR_API_KEY', baseURL: 'https://api.lumenfall.ai/openai/v1' }); const response = await client.images.generate({ model: 'gemini-2.5-flash-image', prompt: 'A serene mountain landscape at sunset', size: '1024x1024' }); // { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } console.log(response.data[0].url); #### Python from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.lumenfall.ai/openai/v1" ) response = client.images.generate( model="gemini-2.5-flash-image", prompt="A serene mountain landscape at sunset", size="1024x1024" ) # { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } print(response.data[0].url) ### Image Editing #### cURL curl -X POST \ https://api.lumenfall.ai/openai/v1/images/edits \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -F "model=gemini-2.5-flash-image" \ -F "image=@source.png" \ -F "prompt=Add a starry night sky to this image" \ -F "size=1024x1024" # Response: # { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] } #### JavaScript import OpenAI from 'openai'; import fs from 'fs'; const client = new OpenAI({ apiKey: 'YOUR_API_KEY', baseURL: 'https://api.lumenfall.ai/openai/v1' }); const response = await client.images.edit({ model: 'gemini-2.5-flash-image', image: fs.createReadStream('source.png'), prompt: 'Add a starry night sky to this image', size: '1024x1024' }); // { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } console.log(response.data[0].url); #### Python from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.lumenfall.ai/openai/v1" ) response = client.images.edit( model="gemini-2.5-flash-image", image=open("source.png", "rb"), prompt="Add a starry night sky to this image", size="1024x1024" ) # { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } print(response.data[0].url) ## About ## Overview Gemini 2.5 Flash Image is a multimodal model developed by Google designed for high-velocity image generation and visual reasoning. It functions as an efficient mid-tier option in the Gemini lineup, prioritizing low latency and cost-effectiveness while maintaining the ability to process both text and image inputs. This model is distinctive for its dual-purpose nature, acting as both an image generator and a visual analysis tool within a single architecture. ## Strengths * **Rapid Iterative Generation:** Optimized for speed, the model excels at "flash" generation cycles where low latency is required for real-time applications or high-volume batch processing. * **Instruction Following:** Strong adherence to system prompts allows for precise control over stylistic constraints and compositional requirements during the image creation process. * **Multimodal Reasoning:** Unlike pure-play diffusion models, it can ingest existing images as context to perform editing, variations, or descriptive analysis. * **Resource Efficiency:** Offers a significantly lower price point ($0.039 starting price) compared to larger-parameter models, making it viable for large-scale production deployments. ## Limitations * **Visual Complexity:** While fast, it may lack the intricate fine-detail rendering (such as complex micro-textures or hyper-realistic human anatomy) found in larger, "Pro" tier models. * **Compositional Nuance:** In very dense scenes with numerous specific spatial requirements, the model may occasionally prioritize speed over exact adherence to complex spatial arrangements. * **Niche Stylization:** Without specialized LoRA support or fine-tuning, it may struggle with highly specific or avant-garde artistic styles compared to dedicated community-driven generation models. ## Technical Background Released in October 2025, Gemini 2.5 Flash Image is built on the Gemini 2.x transformer-based architecture family. It utilizes a unified multimodal training approach that treats visual tokens and text tokens within the same latent space, enabling seamless transitions between understanding an input image and generating a visual response. The model is specifically tuned for distilled inference, reducing the computational overhead typically associated with large-scale vision-language models. ## Best For This model shines in scenarios requiring high-throughput asset generation, such as e-commerce product background variations, social media content scaling, and rapid prototyping for UI/UX concepts. It is also well-suited for applications that combine image analysis with immediate visual feedback, such as describing a scene and then modifying it based on user feedback. Nano Banana (Gemini 2.5 Flash Image) is available for testing and deployment through Lumenfall's unified API and interactive playground, allowing you to integrate its fast generational capabilities into your existing workflows alongside other models in the Gemini family. ## Frequently Asked Questions ### How much does Nano Banana cost? Nano Banana starts at $0.039 per image through Lumenfall. Pricing varies by provider. Lumenfall does not add any markup to provider pricing. ### What can Nano Banana do? Nano Banana supports Batch and System prompt. It accepts text and image input and produces text and image output. ### How do I use Nano Banana via API? You can use Nano Banana through Lumenfall's OpenAI-compatible API. Send requests to the unified endpoint with model ID "gemini-2.5-flash-image". Code examples are available in Python, JavaScript, and cURL. ### Which providers offer Nano Banana? Nano Banana is available through fal.ai, Gemini API, Replicate, and Vertex AI on Lumenfall. Lumenfall automatically routes requests to the best available provider. ## Links - Model Page: https://lumenfall.ai/models/google/gemini-2.5-flash-image - About: https://lumenfall.ai/models/google/gemini-2.5-flash-image/about - Providers, Pricing & Performance: https://lumenfall.ai/models/google/gemini-2.5-flash-image/providers - API Reference: https://lumenfall.ai/models/google/gemini-2.5-flash-image/api - Benchmarks: https://lumenfall.ai/models/google/gemini-2.5-flash-image/benchmarks - Use Cases: https://lumenfall.ai/models/google/gemini-2.5-flash-image/use-cases - Gallery: https://lumenfall.ai/models/google/gemini-2.5-flash-image/gallery - Playground: https://lumenfall.ai/playground?model=gemini-2.5-flash-image - API Documentation: https://docs.lumenfall.ai