Nano Banana and Nano Banana Pro API
Google’s Gemini Image models, Nano Banana, Nano Banana 2 and Nano Banana Pro: images from a description and edits from an instruction, infographics and text in the image, up to 4K. Use them in the MegaBrain playground in your browser or through the API, without a Google key, priced per image from a prepaid US-dollar balance.
Nano Banana models and prices
Prices in US dollars from the MegaBrain catalogue; they update automatically. Each model’s page has examples, every parameter and a playground.

Nano Banana Pro
$0.108The Gemini Image flagship: infographics, text, 2K–4K.

Nano Banana Pro Edit
$0.108Pro-level edits from several reference images.

Nano Banana 2
$0.048Second generation of Gemini Image.

Nano Banana
$0.024Gemini Image from Google: generation and edits that keep fine detail.

Nano Banana Edit
$0.024Edit images by instruction (Gemini Image).
| Model | Task | Image | 4K image |
|---|---|---|---|
| Nano Banana Pro nano-banana-pro | Text to image | $0.108 | $0.144 |
| Nano Banana Pro Edit nano-banana-pro/edit | Image editing | $0.108 | $0.144 |
| Nano Banana 2 nano-banana-2 | Text to image | $0.048 | $0.108 |
| Nano Banana nano-banana | Text to image | $0.024 | — |
| Nano Banana Edit nano-banana/edit | Image editing | $0.024 | — |
Which model to pick
Nano Banana Pro is the flagship: infographics, text in the image, 2K and 4K. Nano Banana 2 is the second generation, with resolutions from 0.5K to 4K. Nano Banana is fast and inexpensive. The Edit versions change existing images from an instruction; Pro Edit works from several references.
A MegaBrain key instead of a Google key
Nano Banana is Google’s Gemini Image family. With MegaBrain you do not need a Google AI Studio key: images are generated in the dashboard or through the API and paid from your balance.
Gemini API: Google’s text modelsPriced per image
You pay per image, not per token. Nano Banana Pro costs the same at 1K and 2K and twice as much at 4K; Nano Banana 2’s price depends on the resolution. If a generation fails, the price goes back to your balance.
From image to video
Bring a finished image to life in Kling 3.0: pass it as the first frame and get a clip for Reels, TikTok or a product page.
Kling: video from an imageFirst request
Generation runs through a queue: a POST request submits the job, then the script polls status_url and fetches the result from response_url. Create the key on the API key page after you sign up.
import os, time, requests
BASE = "https://getmegabrain.com/api/gateway/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MEGABRAIN_API_KEY']}"}
job = requests.post(f"{BASE}/queue/nano-banana-pro", headers=HEADERS, json={
"prompt": "wooden matryoshka dolls on a frosty windowsill, soft morning light, photo"
}).json()
while requests.get(job["status_url"], headers=HEADERS).json()["status"] not in ("COMPLETED", "FAILED"):
time.sleep(2)
print(requests.get(job["response_url"], headers=HEADERS).json())Questions and answers
How much does one Nano Banana image cost?
Each model’s price per image is in the table, with the 4K price next to it. There is no subscription: only generated images are charged.
Can I edit my own photos?
Yes. Nano Banana Edit and Nano Banana Pro Edit take your images as links in image_urls and change them from a text instruction: replace the background, put a product in a scene, change the light. Pro Edit works with several references.
Is there a Nano Banana API?
Yes. A POST request puts the job in the generation API’s queue, then you check its status and fetch the image link; there is a Python example below. Every parameter is on the model page and in the generation API docs.
Do I need a Google AI Studio key?
No. Sign up on MegaBrain and top up the balance by card; one MegaBrain key works for Nano Banana, Kling, FLUX, Seedream and the text models.
Get your API key
Sign-up is open. Create an account, top up the balance by card and create a key: it works for every text, image, video and audio model in the catalogue. Credits never expire.
Questions? Write to team@getmegabrain.com