Nano Banana 2

Nano Banana 2 prompts

Editing prompts for the model that keeps the subject still while the scene changes, each with a note on the clause that matters most.

Editing prompts need an image

The prompts below assume you send an image reference with the request. Without one the model generates a new picture from the description, which is a different tool with a different result.

The useful pattern is to describe what changes and explicitly say what must stay. "Keep the label text unchanged" or "keep the face identical" is not decoration; it tells the model which part of the frame is fixed.

Light is the easiest lever

When an edit looks wrong but you cannot say why, change the light before changing anything else. Warm side light and soft shadow will fix most product shots that read as flat, and they are one short clause to add.

Product and portrait edits

Surface swap

The same bottle on green marble, warm side light, soft long shadow, keep the label text unchanged.

Keep the label clause in or the type drifts.

Lifestyle scene

Place the same sneaker on wet city pavement at dusk, reflections, shallow depth of field, keep the product identical.

Name the surface, not just the mood.

Character set

The same character in a red raincoat, standing in a snowy street, three-quarter view, consistent face and hair.

Reuse the same reference image for every frame in the set.

Background removal

The same product on a seamless light grey background, even studio light, no visible shadow, centred.

Ask for a seamless background explicitly.

Seasonal variant

The same bottle surrounded by pine branches and a single red ribbon, soft winter light, keep the label readable.

One prop at a time is enough.

Scale change

The same watch photographed on a wrist, natural window light, shallow depth of field, keep the dial and hands unchanged.

Give the model a familiar object to size against.

Run this prompt through the API

Every prompt above is a complete value for the prompt field. Send it with the same reference image you edited in the playground and the model keeps the subject while the scene changes. Video prompts are the exception: they go to POST /v1/videos with a resolution and a duration instead of an image reference.

curl https://api.api-key.org/v1/images/generations \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-2",
    "prompt": "The same bottle on green marble, warm side light, soft long shadow, keep the label text unchanged.",
    "image_url": "https://your-bucket.example/bottle.jpg"
  }'

# the task id comes back immediately
curl https://api.api-key.org/v1/tasks/TASK_ID \
  -H "Authorization: Bearer $API_KEY"

Take the exact model ID from the live catalog at /v1/models rather than copying it from this page; IDs change when a model version is replaced. A failed job is never billed, so a few rejected prompts cost nothing but the round trip.

ParameterWhat to send
modelnano-banana-2
promptAny prompt card above, copied as-is
image_urlThe picture you are editing, on your own storage
responseA task id — poll GET /v1/tasks/:task_id until it finishes

Model API pages