Skip to content

API Reference

Nano Banana API: pricing and examples

Nano Banana 2, Nano Banana 2.1 and Nano Banana Pro by Google in the Clipia API — slugs, credit prices per image, a curl and SDK example, photo edits and where to get the API key.

Nano Banana is Google's family of image models: fast, accurate images from long descriptions, clean text in the frame and edits of your photos by description. In the Clipia API each version has its own slug and is called with the same POST /v1/models/{slug} request and one Clipia API key — no separate Google Cloud project or Gemini key.

ModelAPI slugBest for
Nano Banana 2nano-banana-2Everyday images and edits, from 512px to 4K, up to 10 input photos
Nano Banana 2.1nano-banana-2-1The successor to Nano Banana 2 at the same price: quality closer to Pro, up to 14 input photos
Nano Banana Pronano-banana-proComplex scenes, infographics and lettering; up to 8 input photos, PNG or JPEG

Check availability in your environment

Use a slug only when GET /v1/models returns it for your API key. A model that is switched off disappears from the list, and submitting a generation returns 404 with the code not_found.

To generate without code, open the Nano Banana 2 page, Nano Banana Pro page or the Image Studio.

Get an API key

One Clipia key works for every model in the catalog, Nano Banana included.

  1. Sign in and open the Developer Console, API keys tab.
  2. Create a live key (clipia_live_…) for real generations or a test key (clipia_test_…) for the sandbox: instant test results with no charge.
  3. Keep the key in the CLIPIA_KEY environment variable on your server — it is the password to your credit balance.

Generation with a live key works while the account has an active subscription; see Managing keys and Authentication.

Nano Banana API pricing

The price is per image and depends on the resolution:

Model1K2K4K
Nano Banana 22 credits3 credits4 credits
Nano Banana 2.12 credits3 credits4 credits
Nano Banana Pro5 credits5 credits7 credits

The default resolution of all three models is 2K: a request without resolution is priced and run at 2K.

Pricing

Prices come from the service pricing and are current as of November 2026. Credits are reserved when a job starts and a failed generation returns them. Get the exact price for your input with cost estimation.

Generate an image

curl -X POST https://api.clipia.ai/v1/models/nano-banana-2 \
  -H "Authorization: Bearer $CLIPIA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "prompt": "Flat lay of a coffee bag on a linen cloth, morning light, the label reads \"SUNRISE ROAST\"",
      "resolution": "1K",
      "aspect_ratio": "4:5"
    }
  }'

The submit returns a request_id and the reserved cost; the SDK subscribe waits for the result itself. Without the SDK, poll GET /v1/requests/{id}/status and read the link from output.images in the result. To edit or combine photos, add HTTPS links in image_urls and describe the change in prompt.

Parameters

Catalog snapshot as of November 27, 2026. GET /v1/models/{slug} returns the exact input_schema; it takes precedence over this summary.

ParameterValues
promptup to 20,000 characters. Put text for the frame in quotes
resolution1K, 2K (default), 4K; Nano Banana 2 also 512px
aspect_ratioNano Banana 2 and 2.1: auto, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 5:4, 4:5, 21:9, 1:4, 4:1, 1:8, 8:1. Default: 1:1 for Nano Banana 2, auto for 2.1
image_sizeNano Banana Pro only — its aspect ratio field: 1:1 (default), 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 5:4, 4:5, 21:9, auto
image_urlsphotos to edit or combine: up to 10 for Nano Banana 2, up to 14 for 2.1, up to 8 for Pro
output_formatNano Banana Pro only: png (default), jpeg

Nano Banana API questions

Other model pages: Seedream API, Grok Imagine API, Seedance 2.0 API, Kling AI API. The full list of slugs is in the model catalog.