Blog

Nano Banana AI Image Editor (2026): Versions and API Code

Unicorn API Team · · 11 min read

Nano Banana AI image editor turning a plain product photo into a beach scene from a one-line text instruction

The Nano Banana AI image editor is Google’s Gemini image model used as a photo editor: you give it a picture, describe the change in one sentence, and get back an edited image that keeps everything you did not ask to change. That last part is why it took off. Older text-to-image tools could make a pretty picture, but asking them to “change the jacket to red” often gave you a different person in a different room. This guide explains what Nano Banana is, how the three versions differ, what each edit costs, and how to run edits from your own code.

What is the Nano Banana AI image editor?

“Nano Banana” is the nickname for Google’s Gemini image model. The original version, officially called Gemini 2.5 Flash Image, was released in August 2025. Before launch it appeared under the codename “nano-banana” in anonymous head-to-head testing on a public model arena, where people compared outputs without knowing which company made them. It won a lot of those matchups, the codename spread on social media, and Google kept it.

A quick vocabulary check, because the SERP mixes these up:

  • Model: the AI system itself, here Google’s Gemini image model. It turns text and images into new images.
  • App or editor: the interface wrapped around the model. The Gemini app, Google Slides, dozens of “free Nano Banana” websites and photo apps all call the same underlying models.
  • Text-to-image: you type a description, the model draws a new image from scratch.
  • Image-to-image editing: you send an existing image plus an instruction, and the model returns a modified version.
  • Reference image: any image you attach to guide the result, such as the photo to edit, a face to keep consistent, or a logo to place on a product.

So when people search for a Nano Banana AI image editor, they usually want the second mode: edit a photo by talking to it. The same model handles both modes. The difference is only whether you attach reference images.

What makes Gemini Nano Banana stand out among image editors is consistency. It keeps a person’s face, a product’s shape or a room’s layout stable across several edits, and it can combine multiple input images into one scene (often called multi-image fusion) while respecting lighting and perspective. It also brings general world knowledge from Gemini, so an instruction like “make this look like a 1970s magazine ad” lands closer to what you meant than with a model that only matches keywords.

You can reach the Nano Banana AI image editor in three broad ways: Google’s own apps, third-party websites built on Google’s models, and APIs that let you call the model from code. This article focuses on the third, because it is the one that scales from ten edits to ten thousand.

Nano Banana vs Nano Banana Pro vs Nano Banana 2 Lite

There is no single “Nano Banana” any more. Google has shipped several versions, and three of them are available through Unicorn API. Here is how they compare on the things that matter for editing work.

ModelReleasedReference imagesResolutionAspect ratiosCost per image
Nano BananaAug 2025Up to 3Standard16:9, 1:1, 9:16, 21:9, 4:34 credits
Nano Banana ProNov 2025Up to 81K, 2K or 4K16:9, 1:1, 9:16, 21:9, 4:318 credits (1K, 2K), 24 credits (4K)
Nano Banana 2 LiteJul 2026Up to 101K16:9, 1:1, 9:16, 21:9, 4:3, 3:2, 2:34 credits

Nano Banana (the original)

Quick, natural-looking images and edits. It accepts up to 3 reference images, which covers most everyday tasks: one photo to edit, plus one or two style or object references. It is the version most “free Nano Banana AI image editor” sites were built on.

Nano Banana Pro

Nano Banana Pro is the high-fidelity tier. Its headline strengths are accurate text rendering (signs, labels, posters, UI mockups with readable words) and output at 1K, 2K or 4K. It takes up to 8 reference images, which helps when you need several products, a brand palette and a character in one shot. It is the version Google integrated into products like Slides, and it is the one to reach for when the image is going in front of customers.

Nano Banana 2 Lite

If you searched for “nano banana 2.0”, this is the second-generation model you can call on Unicorn API today. It is the cheapest Gemini image model in the catalog: fast 1K images and edits, up to 10 reference images, and two extra aspect ratios (3:2 and 2:3) that suit photo prints and portrait product shots. For bulk editing at web resolution, it is usually the sensible default.

Comparison of Nano Banana, Nano Banana Pro and Nano Banana 2 Lite by reference images and credit cost
The three Nano Banana versions differ mainly in fidelity, resolution, reference image limits and price.

What can you edit with Nano Banana?

Most of the editing tasks the top results advertise fall into a handful of patterns. All of them are plain-language instructions; there are no masks, layers or brushes.

  • Background changes: “Replace the background with a white studio sweep” or “put this person on a rainy Tokyo street at night”. The subject stays, the scene changes.
  • Object removal and addition: “Remove the power lines”, “add a coffee cup on the desk to the left of the laptop”.
  • Clothing and accessories: “Change the jacket to navy wool”, “add a thin gold chain necklace”. This is the “clothing replacement” and “jewelry editing” that several editor sites sell.
  • Color and lighting: “Warm golden-hour light from the right”, “make it look like it was shot on film”.
  • Style transfer: “Turn this photo into a watercolor illustration while keeping the composition”.
  • Multi-image fusion: send a product photo and a scene photo and ask for the product placed naturally in the scene.
  • Character consistency: generate the same person or mascot in different poses and settings by passing earlier outputs back as references.
  • Text in images: add or fix a headline on a poster or a label on packaging. Nano Banana Pro is noticeably better at this than the original.

Two things it is not. First, it is not a video tool. “Nano Banana AI image to video” searches usually mean a two-step workflow: make a clean keyframe with Nano Banana, then hand it to a separate image-to-video model. Second, it is not a strict upscaler. Nano Banana Pro can output at 4K, but it regenerates detail instead of only sharpening existing pixels, which is fine for marketing images and wrong for anything where fidelity to the original pixels matters.

Face swaps are technically possible with multiple references, but treat them carefully: editing real people without consent creates legal and ethical problems, and the model may refuse some requests.

How much does the Nano Banana AI image editor cost?

Inside Google’s own apps, the Nano Banana AI image editor is available with usage limits that depend on your Google plan. Third-party websites typically give you a few free edits and then sell subscriptions or credit packs. If you are editing images as part of a product or a workflow, paying per image through an API is usually simpler and easier to predict.

On Unicorn API, every model is priced in credits. Monthly plans give you credits at $0.01 each: Starter is $25, Creator $50, Studio $100 and Pro $200 per month. Top-ups cost $0.015 per credit and never expire. See plans and credit prices for details.

Model and settingCredits per imageOn a monthly planWith top-up creditsImages per Starter plan ($25)
Nano Banana4$0.04$0.06625
Nano Banana 2 Lite4$0.04$0.06625
Nano Banana Pro, 1K or 2K18$0.18$0.27138
Nano Banana Pro, 4K24$0.24$0.36104

Prices are per output image. If you set n to ask for several variations in one request, the cost is multiplied by n. Nano Banana Pro at 2K costs the same as at 1K, so unless you have a reason to stay small, 2K is effectively free extra resolution.

A worked example: a shop with 400 product photos wants each one on a clean white background, plus three lifestyle variations for its 40 best sellers. The white-background pass on Nano Banana 2 Lite is 400 × 4 = 1,600 credits. The lifestyle shots on Nano Banana Pro at 2K are 40 × 3 × 18 = 2,160 credits. Total 3,760 credits, which fits inside a Creator plan ($50, 5,000 credits) with room for retries.

Before running a large batch, you can ask the API for the exact price of any request with POST /v1/models/price, so there are no surprises on the bill. The API documentation shows the request format.

How to use the Nano Banana AI image editor from code

Using the Nano Banana AI image editor through Unicorn API takes three steps: create a job, poll it until it finishes, then download the result. Image models run asynchronously because generation takes several seconds, and holding an HTTP connection open that long is fragile.

  1. Create an API key on the keys page and export it as UNICORN_API_KEY.
  2. Send POST /v1/jobs with the model id and an input object.
  3. Poll GET /v1/jobs/{id} until status is "succeeded", then read outputs[0].url.

If you want to try prompts before writing any code, the browser playground runs the same models with the same credit balance.

A first request with curl

This edits an existing product photo with the original Nano Banana. The photo goes in ref_images as a publicly reachable URL.

curl -X POST https://api.unicornapi.net/v1/jobs \
  -H "Authorization: Bearer $UNICORN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana",
    "input": {
      "prompt": "Place this sneaker on a white marble surface with soft window light from the left. Keep the shoe exactly as it is.",
      "ref_images": ["https://example.com/photos/sneaker.jpg"],
      "aspect_ratio": "1:1"
    }
  }'

# The response includes a job id. Check on it:
curl https://api.unicornapi.net/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $UNICORN_API_KEY"

A reusable Python helper

For real work, wrap the create-and-poll loop in a function. This version handles failures, uses a timeout so a stuck job does not hang your script, and lets you switch between Nano Banana versions by changing one string.

import os
import time
import requests

API = "https://api.unicornapi.net"
HEADERS = {"Authorization": f"Bearer {os.environ['UNICORN_API_KEY']}"}


def run_image_job(model, job_input, timeout_s=180):
    resp = requests.post(
        f"{API}/v1/jobs",
        headers=HEADERS,
        json={"model": model, "input": job_input},
        timeout=30,
    )
    resp.raise_for_status()
    job = resp.json()

    deadline = time.time() + timeout_s
    while job["status"] != "succeeded":
        if job["status"] in ("failed", "canceled"):
            raise RuntimeError(f"Job {job['id']} ended with status {job['status']}")
        if time.time() > deadline:
            raise TimeoutError(f"Job {job['id']} still running after {timeout_s}s")
        time.sleep(2)
        poll = requests.get(f"{API}/v1/jobs/{job['id']}", headers=HEADERS, timeout=30)
        poll.raise_for_status()
        job = poll.json()

    return job["outputs"][0]["url"]


# Cheap bulk edit: Nano Banana 2 Lite, 4 credits
clean_url = run_image_job("nano-banana-2-lite", {
    "prompt": "Remove the background and place the product on a pure white background. "
              "Keep the product, its label and its shadow unchanged.",
    "ref_images": ["https://example.com/photos/candle.jpg"],
    "aspect_ratio": "1:1",
})
print("Clean product shot:", clean_url)

# Hero image with readable text: Nano Banana Pro at 2K, 18 credits
hero_url = run_image_job("nano-banana-pro", {
    "prompt": "Put this candle on a wooden shelf in a cosy living room at dusk. "
              "Add a small chalkboard sign next to it that reads 'Autumn Cedar'.",
    "ref_images": [clean_url],
    "resolution": "2K",
    "aspect_ratio": "16:9",
})
print("Hero image:", hero_url)

Notice the chain: the output URL of the first job becomes a reference image for the second. That is how you build multi-step edits, and it is cheaper to do the simple step on Nano Banana 2 Lite and save the Pro credits for the step that needs rendered text and higher resolution.

If you write code with an AI assistant, you can also let it call these models directly through MCP; see using the API from Cursor, Claude Code and other agents.

Pipeline for editing an image through the API: upload photo, create job, poll status, download edited image
Every edit is an asynchronous job: create it, poll until it succeeds, then read the output URL.

How to write edit prompts that work

The Nano Banana AI image editor follows instructions well, but it cannot read your mind about what should stay the same. Most bad edits come from prompts that only describe the change.

  • Say what to keep. End edit prompts with a preservation line: “Keep the face, pose and clothing unchanged.” This one sentence fixes most identity drift.
  • Be spatial. “Add a plant in the back left corner, partly out of focus” beats “add a plant”.
  • Describe light, not adjectives. “Soft light from a window on the right, late afternoon” gives the model something concrete; “beautiful lighting” does not.
  • One change per step for precise work. Asking for a new background, new outfit and new text in a single request works sometimes. When it fails, you cannot tell which part caused it. Chain smaller edits instead.
  • Quote the exact text. For signs and labels, put the words in quotes and keep them short. Use Nano Banana Pro for anything customers will read.
  • Label your references. With several reference images, say which is which: “Use the first image as the product, the second as the room, the third for the color palette.”

A before-and-after example. Weak prompt: “Make this photo look professional.” Strong prompt: “Replace the cluttered kitchen background with a plain light-grey wall, add soft diffused light from the left, and keep the person’s face, hair and sweater exactly as they are.” The second tells the Nano Banana AI image editor what to change, how, and what to protect.

Common mistakes and when to use a different model

A few problems come up again and again when people move from playing with Nano Banana to using it for real work.

Mistakes to avoid

  • Paying Pro prices for simple edits. Background cleanup, color fixes and object removal at web size do not need Nano Banana Pro. Nano Banana 2 Lite does them at 4 credits instead of 18.
  • Using a private image URL. Reference images must be reachable by the API. A link behind a login, or a signed URL that expired, will fail or produce an edit with no reference.
  • Expecting pixel-perfect preservation. The model regenerates the image. Fine details such as small print on a label or a watch face can shift slightly. Check outputs before publishing, and for legal text on packaging, overlay the real artwork afterwards.
  • Not saving outputs. Download the image from outputs[0].url into your own storage rather than linking to it long-term.
  • Polling too aggressively. Every one to three seconds is plenty. Faster polling only adds noise.
  • Trusting “free unlimited” editor sites with client photos. Many are thin wrappers with unclear data handling. For work images, call the model through a provider whose terms you have read.

When another image model fits better

Nano Banana is a strong default for natural photo edits, but it is not the only option, and one advantage of a single API key is that switching costs one string.

NeedGood choiceWhy
Cheapest bulk edits at 1KNano Banana 2 Lite4 credits, up to 10 reference images
Readable text, 4K outputNano Banana ProAccurate text rendering, 1K to 4K
Transparent background (stickers, logos)GPT Image 1.5Optional transparent background; 3 credits at low quality, 4 at medium, 22 at high
Many references in one shotGPT Image 2.5 FlareUp to 16 reference images, 6 to 16 credits by resolution, wide aspect ratio choice
Most polished OpenAI outputGPT Image 2.5 SunburstTighter control than Flare at the same price, but slower

A practical approach: run the same prompt and reference image through two or three of these models in the playground, pick the one that handles your typical image best, and lock it in your code. Browse the full model catalog if you also need video, audio or chat models in the same pipeline; the credit balance is shared.

The short version: Google Nano Banana turned photo editing into a sentence. Pick the version by the job (2 Lite for volume, the original for quick natural edits, Pro for text and 4K), write prompts that say what to keep, and run the work through an API so you can price every edit before it happens.

Frequently asked questions

Is the Nano Banana AI image editor free?

You can try Google's Nano Banana inside the Gemini app, with usage limits that depend on your Google plan, and many websites offer a few free edits as a trial. For regular or automated use you pay per image. On Unicorn API, Nano Banana and Nano Banana 2 Lite cost 4 credits per image, which is $0.04 on a monthly plan, and you can test them in the browser playground before writing code.

What is Nano Banana?

Nano Banana is the popular name for Google's Gemini image model, released in August 2025 as Gemini 2.5 Flash Image. It generates images from text and, more importantly, edits existing photos from plain-language instructions while keeping faces, products and backgrounds consistent. The name started as a codename during anonymous public testing and stuck after Google confirmed the model. Later versions include Nano Banana Pro and Nano Banana 2 Lite.

What is the difference between Nano Banana and Nano Banana Pro?

Nano Banana is the fast, cheap original: natural-looking edits with up to 3 reference images, at 4 credits per image on Unicorn API. Nano Banana Pro, released in November 2025, aims for higher fidelity and much more accurate text inside images, renders at 1K, 2K or 4K, and accepts up to 8 reference images. It costs 18 credits per image at 1K or 2K and 24 at 4K.

Is there a Nano Banana 2.0?

People searching for Nano Banana 2.0 usually mean Google's second-generation Gemini image models. The one available on Unicorn API is Nano Banana 2 Lite, released in July 2026. It is the cheapest Gemini image model in the catalog at 4 credits per image, produces fast 1K images and edits, accepts up to 10 reference images and adds 3:2 and 2:3 aspect ratios to the usual list.

Can Nano Banana turn an image into a video?

No. Nano Banana is an image model: it takes text and images in and returns still images. A common workflow is to use Nano Banana to create or fix a keyframe, such as a product shot or a consistent character, and then pass that image to a separate image-to-video model. Unicorn API lets you do both steps with the same key and credit balance; the full model catalog lists the video options.

Can Nano Banana upscale images?

Not as a dedicated upscaler. Nano Banana Pro can render its output at 4K, so you can ask it to recreate a small reference image at higher resolution, but it regenerates details rather than strictly preserving every pixel. That works well for marketing visuals and poorly for forensic or archival work, where a classic super-resolution tool that only sharpens existing detail is the safer choice.