Nano banana API — Gemini 2.5 Flash Image, One Endpoint
Nano banana is the community name for Google's Gemini 2.5 Flash Image. Generate and edit images through reApi's OpenAI-compatible endpoint — Nano banana ships to production in minutes, not days.
Per-call billing — the cheapest way to call Nano banana.
Same API endpoint. The model parameter selects the variant.
Free text · required · ≤ 1000 chars
Provide a prompt or at least one reference image / video / frame.
Ten ratios from 1:1 to 21:9
Nano banana renders at 1K only
1–4 images per request
Up to 14 · public HTTPS URLs only
What you can build
Real workflows powered by this model.

Refresh product photos in batches with Nano banana
Edit existing e-commerce shots without a reshoot. Pass the original URL in image_urls, describe the change in plain English, and Nano banana returns an updated render that keeps the product geometry intact while the surrounding scene gets reworked. Run a hundred SKUs through the same prompt template and the catalog stays visually consistent — same lighting language, same background style, every variant on brand.
Edit a photo
Generate ad creative drafts in seconds
Spin four hero variants from a single prompt with n=4 and pick the winner before stand-up ends. The default Nano banana id is tuned for speed and cheap drafts; switch to `gemini-2.5-flash-image-preview-official` when an investor deck or paid placement needs the higher-fidelity render. Same endpoint, same JSON body — only the model id changes between drafts and reAPIs.

Fuse references into one composition
Pass up to 14 reference images and describe how they should combine. Nano banana handles subject + scene + style references in a single call — drop a product photo plus a moodboard frame plus a brand palette swatch and the model fuses them into a new on-brand shot. No mask file, no separate compositing step. Public HTTPS URLs only — upload to your own R2 / S3 / OSS first.
Pricing
Credit-based — 1 credit = $0.001 USD. Pay only for completed generations.
| Mode | Category | Unit | Price |
|---|---|---|---|
| Default | |||
| 1K | 1 image | $0.015 15 credits | |
| Official Google | |||
| 1K | 1 image | $0.036 36 credits | |
Why reAPI
One key, one endpoint, two model ids
Send model `gemini-2.5-flash-image-preview` for the default Nano banana, or `gemini-2.5-flash-image-preview-official` for Google's official endpoint. Either id hits the same `/api/v1/images/generations` route — switch by changing one string in the request body. No second SDK, no second key, no separate billing surface to wire up. Nano banana behaves like any other reApi model from your code's point of view.
Credits in, image out — no surprises
Pricing is inreAPI credits where 1 credit equals $0.001 USD. The estimator on this page costs your exact configuration before submit, so the Nano banana charge in the dashboard matches what the playground showed. No metering surprises, no minimum commitment, no monthly platform fee — only what your app actually generates with Nano banana, billed per image.
Async-first, drop-in compatible
Submit a Nano banana task, get a task_id back instantly, poll until the result lands. Serverless functions, queue workers, edge runtimes — wherever you run, the async pattern fits. Failed and moderated requests are not charged, so a flaky prompt never costs you credits. The same lifecycle covers every reApi model — Nano banana plugs into your existing task plumbing.
Integrate Nano banana in three steps
- step 01
Create an API key
Sign up at reApi and grab a key from the dashboard. Free signup credits cover the first hundred-plus Nano banana generations, enough to ship the first feature and watch the bill stay at zero while you iterate.
Open - step 02
Submit a generation
POST to /api/v1/images/generations with model: gemini-2.5-flash-image-preview and a prompt. Add size, n, or image_urls as you need — the gateway validates every field before charging. Nano banana returns a task_id immediately so the request never blocks your handler.
Open - step 03
Poll the result
GET /api/v1/tasks/:id until status is completed. The Nano banana response carries image URLs on our CDN, stable for 24 hours — copy them to your own storage if you need them longer than that.
Open
Frequently asked questions
Common questions about this model.
POST /api/v1/images/generations
Authorization: Bearer $REAPI_API_KEY
Content-Type: application/json
{
"prompt": "..."
}Ready to ship?
Try it in the playground or grab an API key to integrate now.