Nano Banana 2.
Google's Gemini 3.1 Flash Image: text to image, and edits from 1 to 3 images, at 1k, 2k or 4k. nano-banana-2 implements image.generate and image.edit on the Windpaint API and dashboard. It's a closed model run through Google Cloud Vertex AI, on purchased credits, from $0.0705 per image.
- Status
- Live
- Model id
nano-banana-2- Capabilities
image.generate,image.edit- Takes
- Prompt, plus 1 to 3 images to edit
- Returns
- One image
- Tiers
- 1k, 2k, 4k
- Runs on
- Google Cloud Vertex AI
- From
- $0.0705 per image (1.41 credits, metered)
- Credits
- Purchased only
Text to image and editing, closed model.
The catalog describes it as “Nano Banana 2 (Gemini 3.1 Flash Image). Up to 4K.” It runs through Google Cloud Vertex AI, under Google's model id gemini-3.1-flash-image.
Google's own page for the model has its full specs: Nano Banana 2 on Google Cloud.
What it costs.
Metered prices follow the job's actual usage, such as output size or clip length. The listed price is the estimate held when you submit, and the charge never goes over it.
| Model | Capability | Tier | Credits | USD | Billing |
|---|---|---|---|---|---|
nano-banana-2 | image.generate | 1k | 1.41 per image | $0.0705 | Metered |
nano-banana-2 | image.edit | 1k | 1.41 per edited image | $0.0705 | Metered |
nano-banana-2 | image.generate | 2k | 2.13 per image | $0.1065 | Metered |
nano-banana-2 | image.edit | 2k | 2.13 per edited image | $0.1065 | Metered |
nano-banana-2 | image.generate | 4k | 3.15 per image | $0.1575 | Metered |
nano-banana-2 | image.edit | 4k | 3.15 per edited image | $0.1575 | Metered |
Closed models run on purchased credits only. The free signup credits work on the open-source models Windpaint serves. If your purchased balance can't cover the hold, the submit fails with 402 billing.insufficient_credits and nothing runs.
Failed and refused jobs aren't charged. Pricing covers credits and top-ups.
Request fields.
Submit to POST /v1/generation/capabilities/image.generate or POST /v1/generation/capabilities/image.edit. Anything outside these values returns 422.
| Field | Values | Default | Notes |
|---|---|---|---|
model | nano-banana-2 | none | Name it; another model may be the capability's default. |
prompt | string | none | Required. On image.edit, what to change. |
inputs.images | 1 to 3 | none | image.edit only. Source and reference images, in the order the prompt refers to them. |
resolution | 1k, 2k, 4k | 1k | The image tier. |
aspect_ratio | any of the ten | 1:1 | Optional on image.edit. |
output_format | png, jpeg, webp | png | Re-encoded on the server. |
output_quality | 1 to 100 | 90 | jpeg and webp only. |
webhook_url | https URL | none | Signed POST when the job finishes. |
Call it.
The submit returns 202 with a request_id and a status_url. Send Prefer: wait to hold the response for up to 60 seconds and get the finished job back instead.
curl -X POST https://api.windpaint.ai/v1/generation/capabilities/image.generate \ -H "Authorization: Bearer $WINDPAINT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "nano-banana-2", "prompt": "a ceramic teapot on a linen tablecloth, soft window light", "resolution": "4k", "aspect_ratio": "3:2" }'curl -X POST https://api.windpaint.ai/v1/generation/capabilities/image.edit \ -H "Authorization: Bearer $WINDPAINT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "nano-banana-2", "prompt": "make the teapot deep blue, keep everything else", "inputs": {"images": ["d77a4c1e-9b2f-4a3d-8e6f-7a8b9c0d1e2f"]}, "resolution": "1k" }'Send an Idempotency-Key header so a retried submit returns the first job instead of billing a second. Each output is an asset in your project; its id can go straight into another job's inputs.
Nano Banana 2 limitations.
Current limits on Windpaint, from the API's catalog.
- One image per request; num_outputs above 1 returns 422.
- Edits take no mask.
- The seed field isn't passed to the model, so the same request can give a different image.
Where it runs.
nano-banana-2 is a closed model from Google.
Windpaint runs it through Google Cloud Vertex AI. Your prompt and inputs for the job are sent to Google to make the output, and the output comes back to storage in your project. Windpaint doesn't train on your prompts, inputs or outputs.
Outputs are stored as assets in your project for your organization's retention period, 7 days by default. See Trust for moderation, data use and retention.
Questions.
How much does nano-banana-2 cost?
1.41 credits ($0.0705) for 1k and 1k edit; 2.13 credits ($0.1065) for 2k and 2k edit; 3.15 credits ($0.1575) for 4k and 4k edit. The price is metered: it follows the job's actual usage, the listed price is the estimate held when you submit, and the charge never goes over it. One credit costs $0.05.
Can I use my free signup credits on it?
No. Nano Banana 2 is a closed model, so it runs on purchased credits only. The 200 signup credits work on the open-source models Windpaint serves.
Where does Nano Banana 2 run?
On Google Cloud Vertex AI, under Google's model id gemini-3.1-flash-image. Your prompt and inputs for the job are sent to Google to make the output, which comes back to your project as an asset. Windpaint doesn't train on your prompts, inputs or outputs.
Am I charged if a job fails?
No. The price is held when you submit and released in full if the job fails or the model refuses the request.
Can Nano Banana 2 edit an image?
Yes, on image.edit. Send 1 to 3 images in inputs.images and say what to change in the prompt. It takes no mask.
Is Nano Banana 2 open source?
No. It's a closed model from Google, and Windpaint runs it through Google's own API. The open-source models Windpaint serves are z-image-turbo and flux-2-klein-4b for images, plus four audio models.