Nano Banana 2
Fast, sharp, keeps people and products exactly themselves. By Google.
google/nano-banana-2/image-edit
const res = await fetch("https://api.elyum.ai/v1/generations", { method: "POST", headers: { Authorization: `Bearer ${process.env.ELYUM_API_KEY}`, "Content-Type": "application/json", Prefer: "wait=55", }, body: JSON.stringify({ "model": "google/nano-banana-2/image-edit", "prompt": "A slow push-in on a lighthouse at dusk, waves breaking below", "inputs": [ { "role": "reference", "url": "https://example.com/reference.jpg" } ] }),});const generation = await res.json();console.log(generation.status, generation.outputs);Result

$0.03 at 1K, $0.05 at 2K and $0.08 at 4K per image. Charged when the file is delivered; a render that fails or is canceled costs nothing.
Nano Banana 2 image edit uses the model id google/nano-banana-2/image-edit. Fast, sharp, keeps people and products exactly themselves
1. Calling the API
Endpoint
Send a POST to https://api.elyum.ai/v1/generations with a JSON body matching the parameters below. Every model uses the same endpoint; the model field picks this one.
const res = await fetch("https://api.elyum.ai/v1/generations", { method: "POST", headers: { Authorization: `Bearer ${process.env.ELYUM_API_KEY}`, "Content-Type": "application/json", Prefer: "wait=55", }, body: JSON.stringify({ "model": "google/nano-banana-2/image-edit", "prompt": "A slow push-in on a lighthouse at dusk, waves breaking below", "inputs": [ { "role": "reference", "url": "https://example.com/reference.jpg" } ] }),});const generation = await res.json();console.log(generation.status, generation.outputs);Request parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | — | google/nano-banana-2/image-edit, or google/nano-banana-2 to let your inputs pick the task. |
prompt | string | Yes | — | Sent to the model as written, never shortened. |
inputs | array | Yes | — | Files the task takes, each with a role and a url or file. See Inputs. |
resolution | string | No | "1K" | 1K, 2K, 4K |
aspect_ratio | string | No | — | auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 |
max_usd | number | No | — | Refuse the render, with nothing held, if it would cost more than this many dollars. |
metadata | object | No | — | Up to 16 string pairs, echoed back on the generation. |
A value outside these lists is refused with a 400 naming the field, before anything is charged. Nothing is quietly rounded or dropped.
Inputs
| Role | Types | Required | Limits |
|---|---|---|---|
reference | image | Yes |
|
Cite an input in the prompt by type and order (@image1, @video1, @audio1), or give it a name and cite @name. An input outside these limits is refused with a 400 naming it, before anything is charged.
2. Authentication
API key
Create a key on Keys with the generate and spend scopes and send it as a bearer token. Keep it on your server; never send it to a browser.
Authorization: Bearer $ELYUM_API_KEY3. Queue
Submit and wait
With Prefer: wait=55 the request holds until the render ends or 55 seconds pass. A finished render answers 200 with its outputs; one still running answers 202 with its id.
Poll and cancel
const headers = { Authorization: `Bearer ${process.env.ELYUM_API_KEY}` }; // Poll until the render ends: succeeded, failed or canceledlet generation = await (await fetch(`https://api.elyum.ai/v1/generations/${id}`, { headers })).json();while (generation.status === "queued" || generation.status === "running") { await new Promise((r) => setTimeout(r, 5000)); generation = await (await fetch(`https://api.elyum.ai/v1/generations/${id}`, { headers })).json();} // Or stop it (a hold is refunded)await fetch(`https://api.elyum.ai/v1/generations/${id}/cancel`, { method: "POST", headers });Output links are signed and last 24 hours: download them to your own storage, or fetch the generation again for fresh ones.
4. Pricing
| Resolution | Price |
|---|---|
| 1K | |
| 2K | |
| 4K | $0.08 / image |
A struck price is the list price before today's. Send ?dry_run=true for the exact price of a request with nothing held. The API spends your API balance; a render that fails or is canceled costs nothing.
Compare with others
What every provider charges for Nano Banana 2, from their own pricing pages. The line under our price is how much less you pay.
| Resolution | Elyum | Higgsfield | fal.ai | Kie.ai | Sume | Sunra |
|---|---|---|---|---|---|---|
| 1K image | $0.03 / image−63 % vs fal.ai · −25 % vs Kie.ai | — | $0.08 / image | $0.04 / image | — | $0.067 / image |
| 2K image | $0.05 / image−58 % vs fal.ai · −17 % vs Kie.ai | — | $0.12 / image | $0.06 / image | — | $0.101 / image |
| 4K image | $0.08 / image−50 % vs fal.ai · −11 % vs Kie.ai | — | $0.16 / image | $0.09 / image | — | $0.15 / image |
The most expensive provider is in red; * is a limited-time promotion, counted while it runs. A dash means the provider does not sell it. A row with a reference clip is priced per second of the clip and the output together, against the providers that bill a clip's seconds that way; the clip's seconds are always charged. Prices read from each provider's pricing page on 2026-10-27; every model and source.
More models by Google
Nano Banana 2 task by task, then the lowest price of each other model. What a render costs depends on the resolution and length you choose.
| Model | Price | Resolution | Length |
|---|---|---|---|
| Nano Banana 2 Text to image | $0.03 – $0.08 / image | 1K – 4K | — |
| Nano Banana 2 Image edit | $0.03 – $0.08 / image | 1K – 4K | — |
| Gemini Omni 1.1Text to video · Image to video · Reference to video · Video edit | from $0.07 / s | 360p – 1080p | 3 – 10 s |
| Gemini Omni FlashText to video · Image to video · Reference to video · Video edit | $0.16 / s | — | 3 – 10 s |
| Veo 3.1Text to video · Image to video · Reference to video · Video extend | from $0.38 / s | 720p – 4K | 8 s |
| Veo 3.1 FastText to video · Image to video · Reference to video · Video extend | from $0.14 / s | 720p – 4K | 8 s |
| Veo 3.1 LiteImage to video | from $0.09 / s | 720p – 1080p | 4 – 8 s |
| Nano Banana 2.1Text to image · Image edit | $0.06 / image | 1K – 4K | — |
| Nano Banana ProText to image · Image edit | from $0.08 / image | 1K – 4K | — |
| Nano BananaText to image · Image edit | $0.04 / image | — | — |
| Nano Banana 2 LiteText to image | $0.04 / image | — | — |