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.
| 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 |
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.
- Sign in and open the Developer Console, API keys tab.
- Create a live key (
clipia_live_…) for real generations or a test key (clipia_test_…) for the sandbox: instant test results with no charge. - Keep the key in the
CLIPIA_KEYenvironment 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:
| 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.
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.
| 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
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.
Seedream API: API key, pricing and examples
Seedream image models by ByteDance in the Clipia API — Seedream 5.5, 5.0 Pro, 5.0 Lite, 4.5 and V4 slugs, credit prices, a curl and SDK example and where to get the API key.
Grok Imagine API: images, video and pricing
Grok Imagine by xAI in the Clipia API — image and video slugs, Grok Imagine Video 1.5 and Grok Video, credit prices, a curl and SDK example, the API key and how to try it.