# Nano Banana > Everything about Nano Banana Pro and Nano Banana 2 on zurelay: sizes, prices, up to 14 reference images, editing, text in images and prompting. Source: https://zurelay.com/docs/nano-banana Google’s Nano Banana models make and edit pictures from text and up to 14 reference images, with crisp text in images and faithful edits. ## The models | | Nano Banana Pro | Nano Banana 2 | | --- | --- | --- | | ID | `nano-banana-pro` | `nano-banana-2` | | Best for | The highest quality: detail, text, faithful edits | Speed and price, with very good quality | | Prices | 1K and 2K $0.035, 4K $0.065 | 1K $0.025, 2K $0.034, 4K $0.058 | | Resolutions | 1K, 2K, 4K | 1K, 2K, 4K | | Aspect ratios | 10, from 21:9 to 9:16 | 10, from 21:9 to 9:16 | | Reference images | up to 14 | up to 14 | ## Make an image **Python** (`main.py`): ```python import os from openai import OpenAI client = OpenAI(base_url="https://api.zurelay.com/v1", api_key=os.environ["ZURELAY_API_KEY"]) result = client.images.generate( model="nano-banana-pro", prompt="A minimalist poster for a jazz night: a brass saxophone in silhouette, the words 'Blue Hour' in tall serif letters, deep navy and gold", size="2K", extra_body={ "aspect_ratio": "2:3" }, ) print(result.data[0].url) ``` **Node.js** (`index.mjs`): ```javascript import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.zurelay.com/v1", apiKey: process.env.ZURELAY_API_KEY }); const result = await client.images.generate({ "model": "nano-banana-pro", "prompt": "A minimalist poster for a jazz night: a brass saxophone in silhouette, the words 'Blue Hour' in tall serif letters, deep navy and gold", "size": "2K", "aspect_ratio": "2:3" }); console.log(result.data[0].url); ``` **cURL**: ```bash curl https://api.zurelay.com/v1/images/generations \ -H "Authorization: Bearer $ZURELAY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "nano-banana-pro", "prompt": "A minimalist poster for a jazz night: a brass saxophone in silhouette, the words '\''Blue Hour'\'' in tall serif letters, deep navy and gold", "size": "2K", "aspect_ratio": "2:3" }' ``` Sizes: `1K`, `2K` or `4K`, with any of ten aspect ratios (the full table is on [Image generation](https://zurelay.com/docs/images)). Without `size`, you get a 1K image. ## Edit and combine with references Pass up to 14 images in `images` (or as files on `/v1/images/edits`) and say what to do with them. Nano Banana keeps faces, products and logos recognizable across edits. **Python** (`main.py`): ```python import os import requests response = requests.post( "https://api.zurelay.com/v1/images/generations", headers={"Authorization": f"Bearer {os.environ['ZURELAY_API_KEY']}"}, json={ "model": "nano-banana-pro", "prompt": "Studio product shot: the sneaker from the first image on the concrete block from the second, lit like the third image. Keep the sneaker's logo and colors exactly.", "images": [ "https://example.com/sneaker.png", "https://example.com/concrete.jpg", "https://example.com/lighting-ref.jpg" ], "size": "2K", "aspect_ratio": "1:1" }, ) response.raise_for_status() print(response.json()) ``` **Node.js** (`index.mjs`): ```javascript const response = await fetch("https://api.zurelay.com/v1/images/generations", { method: "POST", headers: { Authorization: `Bearer ${process.env.ZURELAY_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "model": "nano-banana-pro", "prompt": "Studio product shot: the sneaker from the first image on the concrete block from the second, lit like the third image. Keep the sneaker's logo and colors exactly.", "images": [ "https://example.com/sneaker.png", "https://example.com/concrete.jpg", "https://example.com/lighting-ref.jpg" ], "size": "2K", "aspect_ratio": "1:1" }), }); console.log(await response.json()); ``` **cURL**: ```bash curl https://api.zurelay.com/v1/images/generations \ -H "Authorization: Bearer $ZURELAY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "nano-banana-pro", "prompt": "Studio product shot: the sneaker from the first image on the concrete block from the second, lit like the third image. Keep the sneaker'\''s logo and colors exactly.", "images": [ "https://example.com/sneaker.png", "https://example.com/concrete.jpg", "https://example.com/lighting-ref.jpg" ], "size": "2K", "aspect_ratio": "1:1" }' ``` ## Prompting ### Describe a scene, not keywords Write the way you’d brief a photographer: subject, setting, composition, light, lens or medium, mood. “A weathered fisherman mending a net on a pier at dusk, low warm light, 50mm, shallow depth of field” beats “fisherman, pier, dusk, 4k, masterpiece”. ### Text in images Put the exact words in quotes and say where they go and how they look: “the headline ‘Grand Opening’ in bold white sans-serif across the top”. Keep each piece of text short. ### Edits - Name the change and what must stay: “Change only the wall color to sage green. Keep the furniture, light and camera angle.” - Edit in steps for big changes: one call per change, feeding each result into the next. - Refer to references by order and role: “the person from the first image, the outfit from the second”. ### Shape and size Pick the aspect ratio for where the image goes (9:16 for stories, 16:9 for headers, 4:5 for feeds). Draft at 1K, then make the keeper at 2K or 4K: the price is per image, by resolution. ## Good to know - Images take 10 to 60 seconds, longer at 4K. Set a client timeout of 10 minutes, which leaves room for a retry. - Prompts the model declines return `image_not_generated` with its reason, free of charge. - Every image carries the lab’s invisible SynthID watermark, as it does from Google. - Links last 24 hours; the Library in your dashboard keeps images returned as links for 30 days. > **Try it without code:** The dashboard [Playground](https://zurelay.com/app/playground) has an image studio: drop in reference images, pick a size, and see the exact code for the request. Model details and examples: [Nano Banana Pro](https://zurelay.com/models/nano-banana-pro), [Nano Banana 2](https://zurelay.com/models/nano-banana-2). - **Pricing:** 1K and 2K $0.035, 4K $0.065 for Pro; 1K $0.025, 2K $0.034, 4K $0.058 for Nano Banana 2.