Nano Banana 2 image editing tutorial (2027)

Runbo Li
Runbo Li
·
· 5 min read
Nano Banana AI Editing Guide

Quick answer

Nano Banana is Google’s Gemini image-generation family; Nano Banana 2.1 is its current API workhorse. To edit, upload a permitted source, request one bounded change, specify what must remain, and inspect the full result before continuing. Record the exact model ID because API versions and Gemini Apps can differ. Nano Banana 2 and the original Gemini 2.5 Flash Image remain distinct older models with separate lifecycle and migration guidance.

This guide was checked against Google’s documentation on September 13, 2026. Google’s model lineup, app access, quotas and pricing can change, so use the live model selector and API documentation before a production run. The API model lineup and lifecycle below were rechecked October 10, 2026; that check does not establish the model selected in every Gemini Apps account.

Nano Banana model names explained

Name

Gemini API model

Use when

Important limit

Nano Banana 2.1

gemini-nano-banana-2.1

A new API generation or conversational-editing workflow

Verify the exact endpoint and returned asset; an API model recommendation does not establish Gemini Apps rollout

Nano Banana 2 Lite

gemini-3.1-flash-lite-image

Speed and cost matter most for basic generation or editing

Google says it is not optimized for multiple references or sequential multi-turn edits

Nano Banana 2

gemini-3.1-flash-image

An existing Nano Banana 2 generation, editing or multi-reference workflow

Previous-generation API model; Google recommends Nano Banana 2.1 for new projects

Nano Banana Pro

gemini-3-pro-image

Complex professional assets, grounding, localization and precise control

Premium access and higher cost; verify current plan and endpoint

Nano Banana

gemini-2.5-flash-image

A legacy workflow that still depends on the original model

Gemini API earliest shutdown March 15, 2027; Google recommends Nano Banana 2 Lite as replacement

Google’s current image-generation guide identifies five Nano Banana API models and recommends Nano Banana 2.1 for new projects. Google launched Nano Banana 2 as Gemini 3.1 Flash Image on February 26, 2026. All images generated by the documented Gemini image models include SynthID.

How to edit an image with Nano Banana

  1. Choose the model and surface. In the Gemini app, use a current model that exposes image generation; in the API, select the exact documented image model ID.

  2. Upload the source. Use an image you are allowed to process and avoid unnecessary personal or confidential material.

  3. Request one bounded change. State the edit, its location and the properties that must remain fixed.

  4. Generate and inspect the entire frame. Check the target area plus faces, hands, text, logos, edges, geometry, reflections and background.

  5. Continue from an approved version. Save the good result before asking for another change; do not stack edits on an unnoticed error.

  6. Export and document. Record the model, prompt, reference images, selected output, human edits, rights and date.

Try one controlled image edit

Upload a non-sensitive source image, request one bounded change, and compare the result against a preservation checklist before adding another edit.

Edit an Image

A prompt structure that makes edits easier to review

Use four parts: the change, the location, the preservation constraints and the output requirement.

Change the jacket to matte forest green. Edit only the jacket. Preserve the person’s face, hair, pose, hands, body proportions, lighting, background, crop and all existing text. Return the same aspect ratio with no new logos or accessories.

Workflow recipe output preview: Pastel Sky Portrait

Workflow recipe

Create a high-definition close-up photographic portrait of the subject, an adult Asian person with short pink hair, wearing a white shirt with the collarbone subtly visible, a tattoo on the left side of the neck, and silver necklace and earrings. The subject extends the right hand toward the camera with the palm facing the lens and fingers slightly curved, creating a natural foreground perspective. Frame the face and upper body prominently, positioning the subject slightly right of center, with a soft blue sky and white clouds in the background. Use shallow depth of field with gentle background blur, realistic natural lighting, fine skin and fabric texture, and a dreamy pastel palette of soft pink and blue. Photorealistic, clean composition, balanced three-quarter framing, natural proportions and authentic photographic detail.

Model
gpt-image-2
Format
9:16

A detailed preservation list does not guarantee perfect fidelity. Its value is that it gives the reviewer an explicit checklist and makes the next correction more precise.

Useful edit patterns

  • Product cleanup: remove a small background distraction while preserving the product silhouette, label, color and reflections.

  • Background replacement: specify the new environment and preserve the subject, camera angle, crop, lighting direction and contact shadow.

  • Wardrobe or color change: identify the exact garment or object and preserve skin, pose, fabric boundaries and the rest of the palette.

  • Multi-reference composition: assign each uploaded image a role and state which identity, object, style or layout should come from each one.

  • Text inside images: provide the exact copy, hierarchy and placement, then proof every character at full resolution.

  • Style exploration: describe materials, medium, era, palette, light and composition instead of asking to copy a living artist.

How to edit an image in the Gemini app

Google’s current Gemini Apps help page says users can generate an image, upload an image to edit, or upload multiple images and ask for a new image based on them. In the current workflow, open the image in the Gemini library or upload it, choose Chat, enter the edit request and submit.

Availability varies by account, age, language, country and plan. Google says image editing in Gemini Apps is unavailable to users under 18 and tells users to respect copyright and privacy rights before relying on, publishing or using generated content.

How to use Nano Banana through the API

For a new API workflow, Google’s current guide selects gemini-nano-banana-2.1. Use the exact documented model ID, pass text and image inputs through its supported request, and retain the response with the prompt and source references. Do not use “Nano Banana” as an ambiguous model identifier in code or cost reports.

  • Prototype with representative inputs. Include the number and type of references used in production.

  • Separate retries from approvals. A successful response is not an approved asset.

  • Track cost by exact model. Nano Banana 2.1, 2 Lite, 2, Pro and the legacy model have different roles and pricing.

  • Preserve provenance. Keep source asset IDs, prompt, model ID, date and human edits with the delivered file.

  • Handle migration explicitly. Google’s Gemini API deprecation table lists March 15, 2027 as the earliest shutdown date for stable gemini-2.5-flash-image and recommends gemini-3.1-flash-lite-image. The stable Nano Banana 2 endpoint has no shutdown date announced, but its recommended replacement is Nano Banana 2.1. This is Gemini API guidance; check other providers separately.

Common failures and fixes

  • The subject changed: return to the last approved source and narrow the edit area and preservation list.

  • Text is misspelled: supply exact copy and placement; proof the output character by character or add final typography in a deterministic editor.

  • Several references were blended incorrectly: number the references and describe one responsibility for each.

  • Repeated edits degraded the image: restart from the best approved version instead of continuing the damaged branch.

  • A product detail was invented: replace it with a verified source image or correct it manually before commercial use.

  • Output dimensions are wrong: state the aspect ratio and delivery size, then verify the downloaded file rather than the preview.

When to use Magic Hour instead

Use Magic Hour’s AI Image Editor when you want a guided edit inside the broader Magic Hour workflow, or the AI Image Generator when the job starts from a prompt rather than an existing source. After approving the still image, use Image-to-Video when the deliverable needs motion.

Frequently asked questions

Nano Banana is the product nickname for Gemini’s native image-generation family. Google’s current API guide lists five models; identify the exact Gemini model when discussing features, cost or results.

Google’s Gemini API guide now recommends Nano Banana 2.1 for new projects, with model ID gemini-nano-banana-2.1. Its API lifecycle table records an October 6, 2026 release. Nano Banana 2, launched February 26, 2026 as Gemini 3.1 Flash Image, is the previous generation. Verify the selected model separately in Gemini Apps.

Yes. Google documents multiple-reference processing for Nano Banana 2. Assign each reference a clear role and check identity, object and style boundaries in the result.

No generative edit should be assumed exact. State preservation constraints, change one element at a time and compare the whole output with the approved source.

Compare current AI image editors for workflow selection or use the retro photo prompt guide for a bounded style-edit example.

Runbo Li
Runbo Li
CEO of Magic Hour
Runbo Li is the Co-founder and CEO of Magic Hour, where he builds AI video and image tools for content creation. He is a Y Combinator W24 founder and former Data Scientist at Meta, where he worked on 0-1 consumer social products in New Product Experimentation. He writes about AI video generation, AI image creation, creative workflows, and creator tools.
View author →

Continue Reading

AI Image Upscalers

6 best AI image upscalers (2027): free, local & pro

6 best AI image upscalers (2027): free, local & pro
The Best AI Image Editors

6 best AI image editors in 2027: choose the right one

6 best AI image editors in 2027: choose the right one
openai chatgpt 4o cover

GPT-4o image generation review: what changed since 2025

GPT-4o image generation review: what changed since 2025
Collage of the best AI image generator logos

10 best AI image generators: features, costs and examples (2027)

10 best AI image generators: features, costs and examples (2027)
AI Batch Image Gen

8 best AI batch image editors (2027): automate bulk edits

8 best AI batch image editors (2027): automate bulk edits
Imagen

Google Imagen 4 guide: capabilities, current access, and alternatives

Google Imagen 4 guide: capabilities, current access, and alternatives