← All models

Get your API key forNano Banana 2 API: image generation API

One key for Nano Banana 2 and every other top image and video model. Create your API key in minutes and start generating from your code, one request at a time.

1curl https://aiwings.io/api/v1/images \
2 -H "Authorization: Bearer $AIWINGS_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "prompt": "A rain-soaked neon night market alley with glowing signs",
6 "model": "nano-banana-2",
7 "quality": "4K",
8 "aspect_ratio": "21:9",
9 "wait": true
10 }'
POST /v1/imagesShell
Samples

What the API can make.

Real, unedited images made with AiWings, at 1K, 2K and 4K. Open any image full size, then copy the exact prompt to try it yourself.

Neon signs with exact text, in 21:9

21:9 · 6336 × 2688 px

Show the prompt

Ultra-wide cinematic photograph of an empty rain-soaked night market alley in a dense futuristic city, shot from the middle of the street. Stalls with steaming pots and hanging paper lanterns line both sides, and layered neon signs glow above them: a large pink sign reads exactly 'NOODLES 24H', a cyan vertical sign reads exactly 'REPAIR', and a small amber sign reads exactly 'TEA & BUNS'. Everything reflects in the wet asphalt, light mist and falling rain streaks, deep teal and magenta color grade, anamorphic lens flares. No people.

Premium product ads

4:5 · 3712 × 4608 px

Show the prompt

Luxury product advertisement photograph of a faceted crystal perfume bottle suspended mid-air inside a frozen splash of liquid gold, with fine droplets and a few dark red rose petals floating around it. The bottle's gold cap and a small label read exactly 'AURELIA'. Deep black background, dramatic rim lighting from the left and a soft warm glow from below, razor-sharp glass refractions and caustics, ultra-high-end commercial photography. No people.

Restyle a reference image

4:3 · 2400 × 1792 px

Show the prompt

Redraw the isometric bookstore diorama from the reference image exactly as built, same floors, furniture, staircase and camera angle, but as a snowy winter night: thick snow on the greenhouse roof and the base, every window and lantern glowing warm gold, soft blue night light, tiny snowflakes in the air, and a thin wisp of chimney smoke. Keep the same soft clay-render style. No people.

Antique illustration with labels

3:4 · 896 × 1200 px

Show the prompt

An antique hand-colored botanical plate on aged cream paper with foxing and a thin printed border. A detailed engraving of an imaginary night-blooming moon flower with silver-blue petals, a curling stem and heart-shaped leaves. The title at the top reads exactly 'Lunaria Nocturna' and a small caption below it reads exactly 'PLATE XIV'. Neat leader lines point to labeled parts that read exactly 'Calyx', 'Stamen', 'Petal' and 'Seed pod'. Fine crosshatching, delicate watercolor wash. No people.

Tiny worlds in a single shot

16:9 · 1376 × 768 px

Show the prompt

Tilt-shift macro photograph of a miniature desert railway station built inside an open matchbox lying on a worn wooden workbench: a tiny steam locomotive with a wisp of cotton steam, a platform with a clock tower, microscopic cacti, a water tank, and a painted sunset backdrop on the inside lid of the box. Warm workshop lighting, shallow depth of field, tiny scale details like gravel and rail ties, charming and photorealistic. The scene is completely empty of people, passengers and figurines.

Cost per image

Simple per-image pricing.

Each image costs a fixed number of credits, charged when the job starts and refunded automatically if it fails. Credits are shared with every other model.

  • 1K image

    $0.080

    per image · 8 credits

    Images per month

    • Basic · $9125
    • Pro · $19250
    • Scale · $39500
  • 2K image

    $0.13

    per image · 13 credits

    Images per month

    • Basic · $976
    • Pro · $19153
    • Scale · $39307
  • 4K image

    $0.19

    per image · 19 credits

    Images per month

    • Basic · $952
    • Pro · $19105
    • Scale · $39210

Prices are shown at the top-up rate of $0.01 per credit. Plans include more credits per dollar, so subscribers pay a little less.

Maker
Google
Model id (API)
nano-banana-2
Reference images
Up to 14
Output
PNG, saved to your library
Aspect ratios
Resolutions
1K, 2K, 4K
More models

One key. Every model.

Pick a model and see the real request. Every image model shares one format, so switching is changing the model and nothing else.

More modelsImage & video
1curl https://aiwings.io/api/v1/images \
2 -H "Authorization: Bearer $AIWINGS_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "prompt": "A vintage poster for a desert oasis city",
6 "model": "nano-banana-2",
7 "quality": "4K",
8 "aspect_ratio": "1:1",
9 "wait": true
10 }'
POST /v1/imagesShell
Model id
nano-banana-2
Cost
$0.19
19 credits per image at 4K
See Nano Banana 2 →
MCP

Prefer your AI agent? Use it there too.

The same model works in Claude, ChatGPT, Cursor and any MCP client. Connect AiWings once and just ask for it by name.

  • Claude

    Make a 21:9 night market alley with neon signs that read NOODLES 24H and REPAIR, using Nano Banana 2 at 4K.

    How to set up Claude →
  • ChatGPT

    Open the AiWings upload widget, then restyle my illustration as a snowy winter night with Nano Banana 2.

    How to set up ChatGPT →
  • Cursor

    Generate a 4:5 premium product ad of a perfume bottle in a splash of gold with Nano Banana 2 and save it to public/ad.webp.

    How to set up Cursor →

Using another tool? Any MCP client works too. See the MCP docs →

Pricing

Monthly credits for images and videos.

Basic

$9/month

  • 1,000 credits per month
  • Works in any AI agent (MCP)
  • Full API access
  • Every image and video model
  • Top-up packs anytime
  • Cancel anytime
Get started
Most popularPro

$19/month

  • 2,000 credits per month
  • Works in any AI agent (MCP)
  • Full API access
  • Every image and video model
  • Top-up packs anytime
  • Cancel anytime
Get started
Scale

$39/month

  • 4,000 credits per month
  • Works in any AI agent (MCP)
  • Full API access
  • Every image and video model
  • Top-up packs anytime
  • Cancel anytime
Get started

5 free credits when you sign up, no card required. Credits work for images and videos. See what credits buy

FAQ

Nano Banana 2 API, answered.

Create an API key in your AiWings dashboard, then send a POST request to /v1/images with the model set to nano-banana-2. The same request format works for every image model, so you can switch models by changing one field.

Ready when you are

Start building with Nano Banana 2.

Create a key and make your first request in a minute.

5 free credits · No card required · Cancel anytime

Nano Banana is a product name of Google. AiWings is an independent service and isn't affiliated with or endorsed by Google.