The Nano Banana 2 Prompt Guide (2026): Templates and Code
Unicorn API Team · · 11 min read
This Nano Banana 2 prompt guide gives you a five-part prompt formula, templates you can copy, the editing patterns that work with reference images, and the code to run all of it through an API. Nano Banana 2 rewards prompts that read like a creative brief rather than a list of keywords. Most of the disappointing results people share come from prompting it like an older keyword-driven image model: stacking tags, adding “4k, trending, masterpiece”, and hoping. The fixes below are simple and repeatable, and every template works whether you test it in a browser or call it from code.
What is Nano Banana 2?
Nano Banana 2 is Google’s current Gemini image model, released on 26 February 2026. “Nano Banana” started as the nickname for Gemini’s image generation and stuck as the official family name. Nano Banana 2 generates new images and edits existing ones at 1K, 2K or 4K resolution, renders text well, and accepts up to 14 reference images in one request. A reference image is a picture you send along with the prompt so the model can copy a subject, match a style, or edit that exact photo.
It is one of four models in the family, and knowing where it sits explains a lot of the advice in this Nano Banana 2 prompt guide:
- Nano Banana (August 2025): the original. Quick, natural-looking images and edits, up to 3 reference images.
- Nano Banana Pro (November 2025): high-fidelity output with accurate text rendering at 1K, 2K or 4K, up to 8 reference images.
- Nano Banana 2 (February 2026): strong realism, text and edits at 1K, 2K or 4K, up to 14 reference images.
- Nano Banana 2 Lite (July 2026): the cheapest Gemini image model, fast 1K images and edits, up to 10 reference images.
A note on “Nano Banana 2 Pro”, which people search for a lot: there is no model by that name in the Unicorn API catalog. When someone says “Nano Banana 2 Pro” or “Nano Banana Pro 2”, they almost always mean Nano Banana Pro. The prompting advice here applies to all four models. What changes is the number of reference images each accepts and the resolutions available.
The Nano Banana 2 prompt guide formula: five parts
The core of any Nano Banana 2 prompt guide is that the model reads full sentences and follows them. You get better images by describing the scene the way you would brief a photographer or illustrator. Cover these five parts, in roughly this order:
- Subject. What the image is of, with specifics: material, colour, age, expression, brand-neutral details. “A matte black ceramic coffee mug” beats “a mug”.
- Setting. Where the subject is and what surrounds it. “On a weathered oak table beside a rain-streaked café window.”
- Composition and camera. Framing, angle, lens feel and depth of field. “Close-up at a 45-degree angle, shallow depth of field, background softly blurred.”
- Light and mood. Light source, direction, colour temperature and the feeling you want. “Soft morning light from the left, warm and quiet.”
- Style and finish. Photo, illustration, 3D render, watercolour; plus finish details like film grain or clean studio retouching.
Two extras matter often enough to treat as rules. First, any text that must appear in the image goes inside double quotation marks, with its position and style described: a bold white sans-serif headline at the top reading "OPEN LATE". Second, output size and shape are not prompt words. Resolution and aspect ratio are separate fields in the request. Typing “4K” or “ultra-wide” into the prompt does not change the file you get back.
From weak to strong: a worked example
Here is the kind of prompt that produces a generic, plastic-looking result:
coffee cup, cozy, aesthetic, 4k, highly detailed, trending
And here is the same idea rewritten with the formula:
A matte black ceramic coffee mug filled with a flat white, a simple leaf
pattern in the foam. It sits on a weathered oak table beside a café window
with rain running down the glass. Close-up at a 45-degree angle, shallow
depth of field, the street outside softly blurred. Soft grey morning light
from the window on the left, a warm lamp glow from behind. Natural editorial
photography, subtle film grain, muted colours.
Nothing in the second version is clever. It simply removes guesswork. Every decision the model would otherwise make at random (cup colour, table, angle, light) is now yours.

Nano Banana 2 prompt templates you can copy
The templates in this Nano Banana 2 prompt guide use square brackets for the parts you swap out. Keep the sentence structure and change the details. Each one notes the aspect ratio that suits it; Nano Banana 2 supports 16:9, 1:1, 9:16, 21:9, 4:3, 3:2 and 2:3.
Product photo (1:1 or 4:3)
A [product with material and colour] placed on [surface] against a
[background colour] seamless backdrop. Centred, shot straight on at eye
level, the whole product in sharp focus. Soft diffused studio light from
above with a gentle shadow underneath. Clean commercial product photography,
no props, true-to-life colours.
Portrait or headshot (2:3 or 4:3)
A [age] [person description] with [hair, clothing], looking [expression]
toward the camera. Standing in [setting], background softly out of focus.
Head-and-shoulders framing, 85mm portrait lens look. [Light: window light
from the right / golden hour backlight]. Natural skin texture, realistic
editorial portrait photography.
Poster or social graphic with text (9:16 or 2:3)
A vertical event poster for [event]. Top third: a bold [colour] condensed
sans-serif headline reading "[HEADLINE]". Centre: [illustration or photo
description]. Bottom: smaller text reading "[DATE · VENUE]" in [colour].
[Two or three colour palette]. Flat graphic design, generous margins,
crisp lettering.
Interior scene (16:9 or 3:2)
A [room type] in a [style] home: [three to four key furniture pieces with
materials]. Wide shot from the doorway at standing height, the full room
visible. [Time of day] light through [window description]. Architectural
interior photography, straight vertical lines, calm and uncluttered.
Food photo (4:3 or 1:1)
[Dish with key ingredients visible] served on [plate or bowl] on [surface].
Overhead flat-lay, [one or two supporting props] at the edges of the frame.
Soft natural light from one side, slight shadow. Appetising, fresh,
editorial food photography with true colours.
Diagram or infographic (16:9)
A clean horizontal diagram on a white background showing [process] in
[number] steps. Each step is a rounded box with a simple icon and a short
label: "[STEP 1]", "[STEP 2]", "[STEP 3]". Thin grey arrows between boxes.
Flat vector style, [brand colour] accents, legible sans-serif labels.
Keep text labels short in diagrams and posters. A three-word headline renders cleanly far more often than a paragraph, and if you need a lot of copy, it is usually better to generate the visual and lay the text on top in a design tool.
Editing prompts and reference images
Editing is where Nano Banana 2 earns its place, and it needs a slightly different prompt shape. An edit prompt has two jobs: say what changes, and say what stays the same. Leave out the second half and the model may “helpfully” adjust lighting, faces or backgrounds you wanted untouched.
The pattern that works best in this Nano Banana 2 prompt guide is:
Using the first image, [change]. Keep [the person's face, pose, the
background, the lighting] exactly the same.
Some common edits written in that pattern:
- Background swap: “Using the first image, replace the background with a sunlit white studio. Keep the product, its shadow direction and its colours exactly the same.”
- Outfit change: “Using the first image, dress the person in the jacket from the second image. Keep their face, hair, pose and the street behind them unchanged.”
- Style transfer: “Redraw the first image in the style of the second image: loose watercolour, visible paper texture. Keep the composition and every object in the same place.”
- Clean-up: “Using the first image, remove the cables on the desk and the sticky note on the monitor. Change nothing else.”
Working with many reference images
Nano Banana 2 accepts up to 14 reference images, which opens up things like keeping a character consistent across a whole storyboard or placing a real product into several scenes. The more images you send, the more important it is to label them. Refer to each by position (“the first image”, “the logo in image 3”) and give each a single role: subject, outfit, style, background, or layout. Unlabelled references are the main reason multi-image edits blend things you wanted kept separate.
For a series where the same character appears in every image, send the same character reference every time and reuse the exact same description sentence for them. Change only the scene sentences. Consistency comes from repetition: identical reference, identical wording, new context.

How to run Nano Banana 2 prompts through the API
You can try every prompt from this Nano Banana 2 prompt guide in the browser playground first. When you want to batch them, automate a product catalogue, or plug them into an app, use the API. Unicorn API gives you one key and one bill for Nano Banana 2 and every other image, video, audio and chat model, priced in credits.
The flow for image models has three steps:
- Create a key at /keys and export it as
UNICORN_API_KEY. - Send
POST /v1/jobswith the model id and aninputobject. - Poll
GET /v1/jobs/{id}untilstatusis"succeeded", then readoutputs[0].url.
Here is a complete Python version that generates a product shot at 2K in 4:3:
import os
import time
import requests
API = "https://api.unicornapi.net"
HEADERS = {"Authorization": f"Bearer {os.environ['UNICORN_API_KEY']}"}
def generate(prompt, aspect_ratio="1:1", resolution="1K", ref_images=None, n=1):
body = {
"model": "nano-banana-2",
"input": {
"prompt": prompt,
"aspect_ratio": aspect_ratio,
"resolution": resolution,
"n": n,
},
}
if ref_images:
body["input"]["ref_images"] = ref_images
r = requests.post(f"{API}/v1/jobs", json=body, headers=HEADERS, timeout=30)
r.raise_for_status()
job = r.json()
while job["status"] != "succeeded":
if job["status"] in ("failed", "canceled"):
raise RuntimeError(f"Job {job['id']} ended with status {job['status']}")
time.sleep(2)
r = requests.get(f"{API}/v1/jobs/{job['id']}", headers=HEADERS, timeout=30)
r.raise_for_status()
job = r.json()
return job["outputs"][0]["url"]
prompt = (
"A matte black ceramic coffee mug on a pale grey stone surface against a "
"warm beige seamless backdrop. Centred, shot straight on at eye level, the "
"whole mug in sharp focus. Soft diffused studio light from above with a "
"gentle shadow underneath. Clean commercial product photography, no props, "
"true-to-life colours."
)
print(generate(prompt, aspect_ratio="4:3", resolution="2K"))
For edits, add ref_images. Here is the outfit-change example as a curl request, with the reference images passed as URLs (check the API documentation for every accepted input format):
curl -X POST https://api.unicornapi.net/v1/jobs \
-H "Authorization: Bearer $UNICORN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-2",
"input": {
"prompt": "Using the first image, dress the person in the jacket from the second image. Keep their face, hair, pose and the street behind them unchanged.",
"ref_images": [
"https://example.com/person.jpg",
"https://example.com/jacket.jpg"
],
"aspect_ratio": "2:3",
"resolution": "1K"
}
}'
# Then poll until status is "succeeded" and read outputs[0].url
curl https://api.unicornapi.net/v1/jobs/JOB_ID \
-H "Authorization: Bearer $UNICORN_API_KEY"
Two practical notes. Setting n asks for several variations in one request and multiplies the cost by that number, which is handy when you are comparing prompt wordings. And if you are building a tool where users pay per image, POST /v1/models/price returns the exact cost of a request before you run it. If you work inside Cursor or Claude Code, the agents setup lets your coding agent call these models directly.
Nano Banana 2 vs Pro vs Lite: which model fits your prompt
The same prompt runs on every model in the family, so choosing between them is mostly about resolution, reference images and cost. Credits on a monthly plan cost $0.01 each; top-up credits cost $0.015 and never expire. See pricing for plan details.
| Model | Resolution | Max reference images | Credits per image | Cost on a plan |
|---|---|---|---|---|
| Nano Banana 2 Lite | 1K | 10 | 4 | $0.04 |
| Nano Banana | Standard | 3 | 4 | $0.04 |
| Nano Banana 2 | 1K / 2K / 4K | 14 | 8 / 12 / 18 | $0.08 / $0.12 / $0.18 |
| Nano Banana Pro | 1K / 2K / 4K | 8 | 18 / 18 / 24 | $0.18 / $0.18 / $0.24 |
A sensible way to use them together:
- Draft on Lite. When you are still working out a prompt, Nano Banana 2 Lite at 4 credits lets you try five or six wordings for the price of one 4K Nano Banana 2 image.
- Ship on Nano Banana 2. Once the prompt is right, rerun it on Nano Banana 2 at the resolution you need. It is the only model in the family with 14 reference slots, which matters for multi-image edits and character series.
- Escalate to Pro for text-heavy work. If a poster headline or packaging label still is not crisp enough, Nano Banana Pro is built for high-fidelity images with accurate text. It costs more and takes fewer references, and it does not offer 3:2 or 2:3, so check your aspect ratio.
That is the short answer to “Nano Banana 2 vs Pro”: Nano Banana 2 is the everyday workhorse with more reference images and lower cost; Pro is the step up for polish and typography. If you want to compare outside the Gemini family with the same prompts, GPT Image 2.5 Flare runs through the same jobs endpoint, and the full list is in the model catalog. For a deeper look at editing workflows on OpenAI’s side, see the ChatGPT AI image editor guide.
Common Nano Banana 2 prompt mistakes and how to fix them
Most failures fall into a handful of patterns. Each fix in this Nano Banana 2 prompt guide is a change to how you write, not a magic word.
- Keyword stacking. “Cinematic, epic, 8k, octane, masterpiece” tells the model almost nothing concrete. Replace each vague word with a description: what makes it cinematic? A low angle, a wide 21:9 frame, hard rim light?
- Size words in the prompt. “4K” and “widescreen” do not set the output. Use the
resolutionandaspect_ratiofields, and describe the composition so it suits that frame. - Describing what you do not want. Long lists of things to avoid can pull those very things into focus. Describe the scene you want instead: “an empty beach at dawn” rather than “a beach, no people, no boats”.
- Unquoted text. If the words are not in quotation marks, the model treats them as a description rather than text to render. Quote them, keep them short, and say where they go.
- Edits that do not say what to keep. Always add a “keep X unchanged” sentence. It is the single biggest improvement for photo edits.
- Changing too much per attempt. If you rewrite the subject, light and style at once, you cannot tell which change helped. Change one of the five parts per iteration.
- Starting at 4K. Iterating at 18 credits per image adds up fast. Work at 1K (or on Lite) until the composition is right, then generate the final at the size you need.
A repeatable workflow that does not drift
Prompt drift is when each small tweak nudges the image further from what you wanted, until it no longer looks like the original idea. To avoid it, keep your prompt in a file, not just in a chat box. Write it in the five-part structure with one sentence per part. When you iterate, edit one sentence, generate two or three variations with n, and keep the best version of that sentence before moving on. When the final image is right, save the exact prompt, model, resolution and aspect ratio together. That record is what lets you reproduce a look next month or hand it to a teammate.
That is the whole method behind this Nano Banana 2 prompt guide: describe instead of tagging, quote your text, label your references, set size in the request, and change one thing at a time. Copy a template above, run it in the playground or through the API, and adjust from there.
Frequently asked questions
What is Nano Banana 2?
Nano Banana 2 is Google's current Gemini image model, released on 26 February 2026. It generates and edits images at 1K, 2K or 4K resolution, renders readable text, and accepts up to 14 reference images per request. It follows long, descriptive prompts well. It sits between the cheaper Nano Banana 2 Lite and the higher-fidelity Nano Banana Pro in the Gemini image family.
What is the best prompt structure for Nano Banana 2?
Use five parts in plain sentences: the subject, the setting, the composition or camera framing, the lighting and mood, and the style or finish. Put any text that must appear in the image inside quotation marks and say where it goes. Set resolution and aspect ratio as request fields. Words like '4K' or 'widescreen' inside the prompt do not control output size.
Is there a Nano Banana 2 Pro?
There is no model called Nano Banana 2 Pro in the Unicorn API catalog. People searching for it usually mean Nano Banana Pro, the high-fidelity Gemini image model released in November 2025. Pro costs more per image than Nano Banana 2 (18 credits at 1K versus 8) and takes up to 8 reference images, compared with 14 for Nano Banana 2.
How do I get accurate text in Nano Banana 2 images?
Put the exact words inside double quotation marks and describe where they sit, how big they are and what typeface style to use, for example 'bold condensed sans-serif headline across the top reading "SUMMER SALE"'. Keep each text block short. Generate at 2K if the text is small. If headlines still need extra precision, test the same prompt on Nano Banana Pro.
How much does a Nano Banana 2 image cost?
On Unicorn API, Nano Banana 2 costs 8 credits per image at 1K, 12 at 2K and 18 at 4K. On a monthly plan, where credits cost $0.01 each, that is $0.08, $0.12 and $0.18. Top-up credits cost $0.015 each and never expire. Setting n multiplies the cost by the number of images you request.
Can I use reference images with Nano Banana 2?
Yes. Nano Banana 2 accepts up to 14 reference images in the ref_images field. Use them for edits, product shots that must match a real item, and characters that need to look the same across several images. Refer to each one by position in the prompt, such as 'the first image' or 'the product in image 2', so the model knows each image's role.