[ ABORT TO HUD ]
SEQ. 1
SEQ. 2
SEQ. 3
SEQ. 4

Native Image & Video Generation: Nano Banana & Omni Flash

Mastering the Gemini API 14m 300 BASE XP

Beyond Text: Native Media Generation

Gemini doesn't just understand images and video - it generates and edits them natively, conversationally, in the same API you already use for text. Google groups its native image models under the Nano Banana family.

The Nano Banana Family

ModelBest For
Nano Banana 2 Lite (gemini-3.1-flash-lite-image)Fastest, cheapest option - ultra-low latency, high-volume image generation (GA June 2026)
Nano Banana 2 (gemini-3.1-flash-image)Default all-rounder - 4K output, strong text rendering, up to 14 reference images
Nano Banana Pro (gemini-3-pro-image)Premium tier - deepest world knowledge, Google Search grounding, highest fidelity
Nano Banana (gemini-2.5-flash-image)Legacy model, still supported
from google import genai
import base64

client = genai.Client()

interaction = client.interactions.create(
    model="gemini-3.1-flash-image",
    input="Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme",
)

with open("generated_image.png", "wb") as f:
    f.write(base64.b64decode(interaction.output_image.data))
📢 Deprecation notice: Google's standalone Imagen models are being retired on August 17, 2026 - Nano Banana models are now the recommended path for all new image generation work.

Gemini Omni Flash: Native Video Generation

Gemini Omni Flash (gemini-omni-flash-preview) generates 3–10 second, 720p videos with audio from a text prompt or a still image, and supports conversational, multi-turn editing of the result - describe a change and it re-renders while preserving what you didn't mention.

res1 = client.interactions.create(
    model="gemini-omni-flash-preview",
    input="A woman playing violin outdoors."
)

# Conversational edit - references the previous generation
res2 = client.interactions.create(
    model="gemini-omni-flash-preview",
    previous_interaction_id=res1.id,
    input="Make the violin invisible."
)

All Nano Banana and Omni Flash outputs include an invisible SynthID watermark for programmatic provenance verification.

SYNAPSE VERIFICATION
QUERY 1 // 3
Which Nano Banana model is optimized for the lowest latency and cost?
Nano Banana Pro
Nano Banana 2
Nano Banana 2 Lite
Imagen 4 Ultra