↓ Skip to main content

Nano Banana 2 Lite (gemini-3.1-flash-lite-image) Model Card #

Overview #

Nano Banana 2 Lite (gemini-3.1-flash-lite-image) is Google’s ultra-high-velocity, cost-efficient image generation model designed for real-time consumer applications, conversational image editing, and high-volume generation pipelines.


Technical Specifications #

PropertyValue
Input ModalitiesText, Image / PDF
Output ModalitiesImage and Text (Interleaved)
Input Token Limit65,536 tokens
Output Token Limit4,096 tokens
Max Resolution1K only (1024px bounding box; 2K/4K unsupported)
Generation LatencySub-2 seconds (< 2s) end-to-end
Function CallingSupported
Thinking ModeSupported (minimal [default], high)
Search Grounding❌ Not Supported
WatermarkingSynthID (Always On) + C2PA Metadata

Supported Aspect Ratios & Resolutions (1K Fixed) #

Nano Banana 2 Lite generates images within a 1K bounding box across 14 discrete aspect ratios:

Aspect RatioOutput ResolutionDescription / Best For
1:11024 × 1024Standard square, avatars, profile icons
2:3848 × 1264Classic portrait photography
3:21264 × 848Classic landscape photography
3:4896 × 1200Vertical mobile screens, social stories
4:31200 × 896Standard landscape monitor display
4:5928 × 1152Social media feed portrait
5:41152 × 928Medium format display
9:16768 × 1376Vertical video stills, mobile wallpaper
16:91376 × 768Widescreen presentations, YouTube thumbnails
21:91584 × 672Ultrawide cinematic banners
1:4512 × 2048Tall vertical bookmarks and sidebars
4:12048 × 512Wide horizontal headers and website banners
1:8384 × 3072Extreme tall vertical infographics
8:13072 × 384Extreme wide horizontal panorama headers

Capabilities & Limitations #

Strengths #

  1. Ultra-Low Latency: Optimized for real-time interaction, UI mockups, stickers, and fast conversational iteration.
  2. Cost Efficiency: Lowest compute and token consumption in the Nano Banana family.
  3. Conversational Multi-Turn Edits: Fast local modifications (e.g. “change hair color to blue”, “add sunglasses”).
  4. Function Calling: Fully integrated with tool-calling workflows.

Limitations #

  • Resolution Capped at 1K: Cannot generate 2K (2048px) or 4K (4096px) images. Use Nano Banana 2 or Nano Banana Pro for 2K/4K.
  • No Search Grounding: Does not support real-time web or image search grounding tools.
  • Single/Local Reference Focus: Best for single-image edits; not optimized for complex multi-character cross-scene consistency.

API Code Examples #

1. Python SDK (google-genai) - Interactions API #

python
import base64
from google import genai

client = genai.Client()

# Ultra-fast text-to-image generation
interaction = client.interactions.create(
    model="gemini-3.1-flash-lite-image",
    input="A vibrant sticker of a cute robot drinking bubble tea, white background",
    response_format={
        "type": "image",
        "aspect_ratio": "1:1",
        "image_size": "1K",
    },
)

if interaction.output_image:
    with open("robot_sticker.png", "wb") as f:
        f.write(base64.b64decode(interaction.output_image.data))

2. Python SDK (google-genai) - Models API (generate_content) #

python
from google import genai
from PIL import Image

client = genai.Client()

response = client.models.generate_content(
    model="gemini-3.1-flash-lite-image",
    contents="A kawaii watercolor illustration of a sleeping kitten in a teacup",
)

for part in response.candidates[0].content.parts:
    if part.inline_data:
        with open("kitten.png", "wb") as f:
            f.write(part.inline_data.data)
        break

3. JavaScript / TypeScript SDK (@google/genai) #

typescript
import { GoogleGenAI } from "@google/genai";
import * as fs from "node:fs";

const ai = new GoogleGenAI({});

async function generate() {
  const interaction = await ai.interactions.create({
    model: "gemini-3.1-flash-lite-image",
    input: "Minimalist geometric icon of a rocket launching",
    response_format: {
      type: "image",
      aspect_ratio: "1:1",
      image_size: "1K",
    },
  });

  if (interaction.output_image) {
    fs.writeFileSync("rocket.png", Buffer.from(interaction.output_image.data, "base64"));
  }
}

generate();

4. REST / cURL #

bash
curl -s -X POST \
  "https://generativelanguage.googleapis.com/v1beta/interactions" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-flash-lite-image",
    "input": "A clean flat design icon of a coffee cup with steam",
    "response_format": {
      "type": "image",
      "aspect_ratio": "1:1",
      "image_size": "1K"
    }
  }'