API Stock
/IMAGE/nano-banana-2.1
Image
Google

Nano Banana 2.1 API

Generate and edit images from prompts and reference images at multiple resolutions.

  • Text to image
  • Image editing

Starting at

$0.014

per generation

4 parameters · 3 price options

Nano Banana 2.1 playground

Input

User's prompt

Reference image URLs for image generation or editing

Sign in to run

Runs are charged to your balance.

Output

Output will appear here.

Nano Banana 2.1 API pricing

OptionPrice per generation
1k$0.014
2k$0.014
4k$0.014
1curl -X POST https://api.api-stock.com/api/v1/generation/create \
2 -H "Authorization: Bearer $API_STOCK_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "nano-banana-2.1",
6 "input": {
7 "prompt": "A cinematic shot of a city at dusk",
8 "size": "16:9",
9 "resolution": "1K"
10 }
11 }'

Parameters

NameTypeRequiredDefaultDescription
promptstringYes—User's prompt
urlsstring[]No—Reference image URLs for image generation or editing
sizestringNo16:9Output image size ratioOne of: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 1:4, 1:8, 4:1, 8:1
resolutionstringNo1KOutput image resolutionOne of: 1K, 2K, 4K

Frequently asked questions

How much does Nano Banana 2.1 cost?

Nano Banana 2.1 starts at $0.014 per generation through the API Stock API. You pay per use from a single prepaid balance — there is no subscription — and the final price scales with parameters such as resolution or duration.

When was Nano Banana 2.1 released?

Nano Banana 2.1 was released on October 7, 2026. It is available through the API Stock API with the same key and prepaid balance as every other model.

How do I get an API key for Nano Banana 2.1?

Sign up for API Stock, top up your balance using an available payment method and create an API key in the dashboard — it takes a couple of minutes and needs no contract. The same key works with every model in the catalog, so there is no separate key to obtain for Nano Banana 2.1.

How do I call the Nano Banana 2.1 API?

Send a POST request to https://api.api-stock.com/api/v1/generation/create with your API key and the model id "nano-banana-2.1". The call returns a task id you poll, or a webhook callback when the result is ready. A ready-to-run example is in the quick start above.

What input parameters does Nano Banana 2.1 accept?

Nano Banana 2.1 accepts 4 input parameters, including the required field(s) prompt. Their types, defaults and allowed values are listed in the parameters table above.

What happens if a Nano Banana 2.1 request fails?

API Stock automatically retries the request on a reserve provider. If every provider fails, the charge is refunded to your balance.

Can I use Nano Banana 2.1 with the same API key as other models?

Yes. Every model on API Stock — video, image, music and chat — shares one API key and one prepaid balance, so you can switch to Nano Banana 2.1 without new credentials.