We piped product photography through this model and edit cycles dropped from days to minutes.
The Nano Banana 2 API edits images (Gemini 3.1 Flash Image) from natural-language prompts. Up to 14 reference inputs, four resolution tiers (0.5K–4K), 14 aspect ratios, PNG or JPEG output — all through one REST endpoint, priced 5% below Google's published rate.
SampleRun the model to replace this previewNano Banana 2 API: Image Editing
Use the Nano Banana 2 API to edit images from natural-language prompts.
Nano Banana 2 API edits images (Gemini 3.1 Flash Image) from natural-language prompts. Up to 14 reference inputs, four resolution tiers (0.5K–4K), 14 aspect ratios, PNG or JPEG output — all through one REST endpoint.
Pricing on the Nano Banana 2 API is 5% below Google's published rate, held flat across tiers. Add-on grounding (web/image search) costs $0.014 per request. The Nano Banana 2 API uses one RouterBase key — no provider-specific SDKs.
Six reasons teams ship on the Nano Banana 2 API
From identity-locked editing to 5% off official pricing — what the Nano Banana 2 API gets right.
Natural-language editing
Skip masks and layers. Describe the change and the Nano Banana 2 API renders it.
14 reference images
Lock identity, brand, and continuity by passing references in each request.
0.5K to 4K output
Sample at 0.5K, finalise at 4K — switch resolution per call, no code changes.
5% off official
Pay 5% less than Google's published rate; the Nano Banana 2 API discount is flat across tiers.
REST + JSON
One endpoint, one key, no SDK lock-in. Plain JSON in, signed URL out.
Optional grounding
Plug Google web/image search into the Nano Banana 2 API for $0.014 per request.

Get started with the Nano Banana 2 API in 3 steps
From sign-up to your first Nano Banana 2 API call in under 5 minutes.
Create a RouterBase API key
Sign up and generate sk-rb-… — one key works for the Nano Banana 2 API and 200+ other models.
POST to the Nano Banana 2 API endpoint
Send a base image, prompt, and optional references in JSON. The Nano Banana 2 API returns a signed URL within seconds.
Inspect the result
Each Nano Banana 2 API response includes generation metadata for auditing and a render URL ready to embed.
Pay only for what you use
RouterBase passes through partner-tier pricing. Compared against the model's official published API rate.
| Resolution | RouterBase | Official | Save |
|---|---|---|---|
| 0.5K | $0.038 | −15% | |
| 1K | $0.057 | −15% | |
| 2K | $0.086 | −15% | |
| 4K | $0.128 | −15% | |
| web_search=true | +$0.013 | −15% | |
| image_search=true | +$0.013 | −15% |
Your request will cost $0.057 per run (1K).With $1 you can run this model approximately 17 times.
What teams build with this image-edit model
Real production loads running on the Nano Banana 2 API and the RouterBase model catalog.
We swapped three providers through RouterBase in one line of code when OpenAI had its outage. Our users never noticed.
Locked character identity across a 200-frame storyboard with the Nano Banana 2 API — references plus prompt, no manual masking.
The Nano Banana 2 API replaced three artist-hours of mask cleanup per shot. Our pipeline barely flinched.
Plugged the Nano Banana 2 API into my existing OpenAI SDK with one base URL swap — less work than writing this testimonial.
RouterBase puts 200+ models behind one key. Our research team stopped asking for new provider accounts.
Background-removal moved to the Nano Banana 2 API — transparent backgrounds and 4K renders behind one REST call.
We migrated 42 services to RouterBase over a weekend. The only PR comment we got was 'wait, that's all?'.
Pricing on the Nano Banana 2 API is 5% below Google's published rate — at our scale that's six figures saved per quarter.
Frequently Asked Questions
Common questions about the Nano Banana 2 API.
The Nano Banana 2 API is RouterBase's pass-through to Google Nano Banana 2 (Gemini 3.1 Flash Image edit). It edits images from natural-language prompts with up to 14 reference inputs, 0.5K to 4K resolution, and PNG/JPEG output.