---
title: "Nano Banana API: pricing and examples"
description: 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.
icon: Image
---

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.

| Model | API slug | Best for |
| --- | --- | --- |
| Nano Banana 2 | `nano-banana-2` | Everyday images and edits, from 512px to 4K, up to 10 input photos |
| Nano Banana 2.1 | `nano-banana-2-1` | The successor to Nano Banana 2 at the same price: quality closer to Pro, up to 14 input photos |
| Nano Banana Pro | `nano-banana-pro` | Complex scenes, infographics and lettering; up to 8 input photos, PNG or JPEG |

<Callout type="info" title="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`.
</Callout>

To generate without code, open the [Nano Banana 2 page](/en/image-models/nano-banana-2), [Nano Banana Pro page](/en/image-models/nano-banana-pro) or the [Image Studio](/en/create-image).

## Get an API key [#api-key]

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

1. Sign in and open the [Developer Console](/en/developer), **API keys** tab.
2. Create a live key (`clipia_live_…`) for real generations or a test key (`clipia_test_…`) for the [sandbox](/en/docs/getting-started/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](/en/docs/api-reference/keys) and [Authentication](/en/docs/getting-started/authentication).

## Nano Banana API pricing [#pricing]

The price is per image and depends on the resolution:

| Model | 1K | 2K | 4K |
| --- | --- | --- | --- |
| Nano Banana 2 | 2 credits | 3 credits | 4 credits |
| Nano Banana 2.1 | 2 credits | 3 credits | 4 credits |
| Nano Banana Pro | 5 credits | 5 credits | 7 credits |

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

<Callout type="info" title="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](/en/docs/api-reference/estimate).
</Callout>

## Generate an image [#example]

<Tabs items={['cURL', 'TypeScript', 'Python']}>
<Tab value="cURL">

```bash
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"
    }
  }'
```

</Tab>
<Tab value="TypeScript">

```ts
import { createClient } from 'clipia-ai';

const clipia = createClient({ apiKey: process.env.CLIPIA_KEY! });

const out = await clipia.subscribe('nano-banana-2', {
  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',
  },
});

console.log(out.output?.images?.[0]?.url, out.cost);
```

</Tab>
<Tab value="Python">

```python
import os
from clipia import Clipia

clipia = Clipia(api_key=os.environ["CLIPIA_KEY"])

out = clipia.subscribe(
    "nano-banana-2",
    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",
    },
)

print(out.output, out.cost)
```

</Tab>
</Tabs>

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`](/en/docs/api-reference/status) and read the link from `output.images` in the [result](/en/docs/api-reference/result). To edit or combine photos, add HTTPS links in `image_urls` and describe the change in `prompt`.

## Parameters [#parameters]

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

| Parameter | Values |
| --- | --- |
| `prompt` | up to 20,000 characters. Put text for the frame in quotes |
| `resolution` | `1K`, `2K` (default), `4K`; Nano Banana 2 also `512px` |
| `aspect_ratio` | Nano 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_size` | Nano 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_urls` | photos to edit or combine: up to 10 for Nano Banana 2, up to 14 for 2.1, up to 8 for Pro |
| `output_format` | Nano Banana Pro only: `png` (default), `jpeg` |

## Nano Banana API questions [#faq]

<Accordions>
<Accordion title="How much does the Nano Banana API cost?">
Per image, by resolution — see the [table above](#pricing). Nano Banana 2 and 2.1 cost the same; Nano Banana Pro costs more and suits complex scenes and lettering. `POST /v1/models/{slug}/estimate` returns the exact price for your input before anything is charged.
</Accordion>
<Accordion title="Is there a Nano Banana Pro API?">
Yes: the slug is `nano-banana-pro`. The request is the same as for Nano Banana 2, except that the aspect ratio goes in `image_size`; Pro adds the `output_format` parameter and accepts up to 8 input photos.
</Accordion>
<Accordion title="Do I need a Google or Gemini API key?">
No. Requests go through Clipia with a Clipia key, and credits are charged to your Clipia balance. One key also works for Seedream, Kling, Seedance and the rest of the catalog.
</Accordion>
<Accordion title="Can I test the Nano Banana API without spending credits?">
Yes. A `clipia_test_…` key returns an instant test result with the same response shape and charges nothing. Switch to a live key when the integration works.
</Accordion>
<Accordion title="Is Nano Banana available over MCP?">
Yes. In Claude, ChatGPT or Cursor connected to the [Clipia MCP server](/en/docs/mcp), pass the slug in the `model` parameter of `generate_image`.
</Accordion>
</Accordions>

Other model pages: [Seedream API](/en/docs/api-reference/models/seedream), [Grok Imagine API](/en/docs/api-reference/models/grok-imagine), [Seedance 2.0 API](/en/docs/api-reference/models/seedance-2-0), [Kling AI API](/en/docs/api-reference/models/kling). The full list of slugs is in the [model catalog](/en/docs/api-reference/models).
