API Stock
/IMAGE/Nano Banana/nano-banana-2
Image
Google

Nano Banana 2 API

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

  • Text to image
  • Image editing

Starting at

$0.018

per generation

78% cheaper than fal.ai
4 parameters · 4 price options

Nano Banana 2 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.

Check the price and run the model. Your result will appear here; browser use does not need an API key.

Nano Banana 2 API pricing

OptionPrice per generationfal.aiYour savings
1k$0.018$0.08−78%
2k$0.02$0.12−83%
512px$0.022$0.06−63%
4k$0.026$0.16−84%
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",
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: 512px, 1K, 2K, 4K

Frequently asked questions

How much does Nano Banana 2 cost?

Nano Banana 2 starts at $0.018 per generation on API Stock. The final charge depends on the selected settings.

When was Nano Banana 2 released?

Nano Banana 2 was released on February 26, 2026 and is available through API Stock.

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

Create an account and API key on API Stock, then fund your balance. The same key works with Nano Banana 2 and other catalog models.

How do I call the Nano Banana 2 API?

POST to https://api.api-stock.com/api/v1/generation/create with your API key and model "nano-banana-2". Use the returned task id for polling or receive a webhook.

What input parameters does Nano Banana 2 accept?

Nano Banana 2 accepts 4 input parameters, including the required field(s) prompt. See their types, defaults and allowed values above.

What happens if a Nano Banana 2 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 with the same API key as other models?

Yes. Use your API Stock API key and balance for Nano Banana 2 and other catalog models.

Read next