GPT Image 2.5 is live — OpenAI's newest image model, targeted edits that leave the rest of the frame alone

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 unified endpoint — Nano banana ships to production in minutes, not days.

Highlights
1K · 10 aspect ratios · one image per request
Best for
Fast drafts, thumbnails, iteration
Input
Text, plus reference images
Output
One image per request
Input

Free text · required · ≤ 32000 chars

Ten ratios from 1:1 to 21:9

Nano banana renders at 1K only

0/16 files

Up to 14 · public HTTPS URLs only

Estimated cost~$0.01515 credits
Result

Try one of these prompts

Pricing

Credit-based — 1 credit = $0.001 USD. Pay only for completed generations.

First test cost
$0.01515 credits

One sample at the cheapest tier (1 image).

Testing budget guide
Add credits
$10
≈ 695 tests
$50
≈ 3478 tests
$100
≈ 6956 tests
Default
$0.015
Price · 1 image
Official Google
$0.032
Price · 1 image

What is the Gemini 2.5 Flash Image Preview API?

Gemini 2.5 Flash Image Preview is Google's image generation and editing model, widely known as Nano Banana. On reAPI a single endpoint covers both jobs: a prompt alone for text-to-image, or up to 14 reference images to edit and combine, with 10 aspect ratios, 1K output and one image returned per request. Billing is per image, on either the Standard or the Official channel at that channel's own rate.

Nano banana sample renders

What you can build with this model

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

Product photo refresh generated with Nano banana

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
Ad creative variations generated by Nano banana

Generate ad creative drafts in seconds

Spin four hero variants with four quick requests 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 finals.

Reference-driven composition with Nano banana

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.

Why reAPI for Gemini 2.5 Flash Image Preview

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 in reAPI 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

  1. 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
  2. step 02

    Submit a generation

    POST to /api/v1/images/generations with model: gemini-2.5-flash-image-preview and a prompt. Add size 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
  3. 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
docs/api/gemini-2-5-flash-image-preview

API reference

Drop-in code and the full parameter table.

curl -X POST https://reapi.ai/api/v1/images/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-2.5-flash-image-preview",
    "prompt": "moonlight on a bamboo path, ink wash painting",
    "size": "16:9"
  }'

Parameter validation failed

Rejected synchronously with the failing field named. Check enum values, ranges, and URL fields — nothing is charged.

Authentication or balance issue

401 means a missing or invalid Bearer key; 402 means the reserve exceeds your balance. Manage keys and credits in the console.

Content or material rejected

Reference material and outputs pass automated moderation. Rejected tasks fail with a clear error and a full refund.

Task failed or timed out

A task that reaches a failed state is never charged — the reserve refunds automatically. Keep the task id and retry when ready.

Frequently asked questions

Common questions about this model.

Nano banana is the community nickname for Google's Gemini 2.5 Flash Image (formal id: gemini-2.5-flash-image-preview). It is a fast text-to-image and image-to-image model that renders at 1K with up to 14 reference images per call. reApi exposes Nano banana through one unified endpoint with credit-based pricing, so you skip the upstream billing surface and call the same underlying model your evaluation work used.

start building

Ready to ship?

Try it in the playground or grab an API key to integrate now.