
Gemini 2.5 Flash Image Preview
From $0.014 per image
Nano banana 2 is the community name for Google's Gemini 3.1 Flash Image. Nano banana 2 adds extreme aspect ratios (1:8, 8:1) and Google search grounding to the Nano banana family — call it through reApi's unified endpoint.
Free text · required · detailed prompts produce better results
14 ratios incl. extreme 1:4 / 4:1 / 1:8 / 8:1
0.5K thumbnail · 1K default · 2K / 4K hero
1–4 images per request
Up to 14 · public HTTPS URLs only
Useful for recent events, named entities, real places
Sent without google_search:true returns 400
Try one of these prompts
Gemini 3.1 Flash Image Preview is Google's newer image generation and editing model, widely known as Nano Banana 2. One reAPI endpoint handles text-to-image and editing from up to 14 reference images, with 14 aspect ratios — including extreme banner formats from 8:1 to 1:8 — output at 0.5K, 1K, 2K or 4K, 1 to 4 images per request, and optional Google Search and Google Image Search grounding. Billing is per image by output resolution, on either the Standard or the Official channel.

Real-world workflows and production use cases you can build and ship with this model.

Nano banana 2 is the only Nano banana variant that natively renders extreme ratios. Set size to 8:1 for a long horizontal sponsorship banner, 1:8 for a tall mobile-first poster, 1:4 / 4:1 for in-feed promo strips. The output is composed for the ratio at generation time — no cropping, no fill, no awkward dead space. Run a campaign at half a dozen formats from the same Nano banana 2 prompt and the visual story stays coherent across every placement.
Render an 8:1 banner
Turn on google_search and Nano banana 2 reads textual context from the web before drafting the image. Add google_image_search and the model also pulls visual references. Useful for recent events, named entities, sports teams, regional landmarks — anywhere a generic prompt would produce a generic image. Nano banana 2 keeps the request async, the same endpoint, the same credit lifecycle as every other reApi model.

Nano banana 2 is the only Nano banana variant that exposes a 0.5K tier — useful for thumbnail previews, prompt iteration, and low-cost A/B grids. Once the concept lands, re-run at 4K for the production asset. Same prompt template, same image_urls, just bump the resolution field. Nano banana 2 keeps the composition stable across resolutions so the 0.5K preview accurately predicts the 4K final.
Credit-based — 1 credit = $0.001 USD. Pay only for completed generations.
One sample at the cheapest tier (1 image).
| Model | Category | Price |
|---|---|---|
| Default | 0.5K / 1K | $0.028 28 credits · 1 image |
| 2K | $0.043 43 credits · 1 image | |
| 4K | $0.064 64 credits · 1 image | |
| Official Google | 0.5K / 1K | $0.059 59 credits · 1 image |
| 2K | $0.089 89 credits · 1 image | |
| 4K | $0.133 133 credits · 1 image |
Nano banana 2 unlocks 1:4, 4:1, 1:8, and 8:1 in addition to the ten standard ratios. That covers tall posters, banner ads, long-strip social formats, and side-rail web placements without any cropping or fill step. If your campaign brief lists multiple non-square placements, Nano banana 2 is the variant to default to.
Two boolean flags — google_search and google_image_search — opt Nano banana 2 into web grounding. Off by default, so the cost stays predictable; flip them on for prompts that reference recent events, real people, or specific places. The image_search flag requires text search to be on; the gateway enforces the pairing before charging credits.
Submit a Nano banana 2 task, get a task_id back, poll until done. 4K and search-grounded calls take longer than vanilla 1K; the async pattern means your handler never blocks. Failed and moderated requests are not charged. Nano banana 2 plugs into the same task plumbing you use for every reApi model — the lifecycle is identical.
Sign up at reApi and grab a key. Free signup credits cover dozens of Nano banana 2 generations — enough to test extreme ratios and search grounding before topping up.
OpenPOST to /api/v1/images/generations with model: gemini-3.1-flash-image-preview, a prompt, and optional size / resolution / n / google_search. Nano banana 2 returns a task_id immediately so the request never blocks your handler.
OpenGET /api/v1/tasks/:id until status is completed. The Nano banana 2 response carries image URLs on our CDN, stable for 24 hours; mirror them to your own storage if you need them longer.
Opencurl -X POST https://reapi.ai/api/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-flash-image-preview",
"prompt": "neon-lit cyberpunk skyline at midnight",
"size": "16:9",
"resolution": "2K"
}'Rejected synchronously with the failing field named. Check enum values, ranges, and URL fields — nothing is charged.
401 means a missing or invalid Bearer key; 402 means the reserve exceeds your balance. Manage keys and credits in the console.
Reference material and outputs pass automated moderation. Rejected tasks fail with a clear error and a full refund.
A task that reaches a failed state is never charged — the reserve refunds automatically. Keep the task id and retry when ready.
Common questions about this model.
Explore more models in the same category.

From $0.014 per image

From $0.032 per image

From $0.015 per image

From $0.046 per image
Try it in the playground or grab an API key to integrate now.