Skip to content

Agents and multimodal systemsComparison

Image models compared: GPT Image 2, Nano Banana, FLUX.2

Image models are billed three different ways — per token, per image and per megapixel — and two well-known families were retired this year. A comparison on documented facts, and a way to decide on your own prompts.

By INFRO Editorial

Published

Updated

8 min read

A row of glowing amber media frames like a film strip on a dark ground, representing image generation models

In short

Image generation APIs differ less in headline price than in how they bill (tokens, images or megapixels), which sizes and references they accept, how long results stay downloadable, and when they retire. Compare those documented facts, then measure cost per accepted image on your own prompts.

Two widely used image model families left their vendors' APIs this year, and more have dates. Google's Imagen page now says plainly that the Imagen models are shut down and to use Nano Banana instead1; the deprecations table gives 17 August 2026 for Imagen 4 Standard, Ultra and Fast2. OpenAI shut gpt-image-1 down on 23 October 2026; gpt-image-1.5, gpt-image-1-mini and chatgpt-image-latest follow on 1 December 2026, and on 10 November OpenAI gave gpt-image-2 a shutdown date of 10 February 20273.

That churn shapes how to compare image models. A ranking of which model draws best will be stale before a product ships on it. The facts that decide whether a model fits — how it bills, what it accepts, how you get results back and how long it will exist — are documented, and they are what this comparison covers.

Three billing units, not one

The most common mistake in comparing image models is to put a per-image number beside a per-token number as if they measured the same thing. They do not.

Billing unitWhat moves the pricePublished rate
OpenAI GPT Image 2, 2.5 and 2.6TokensQuality and size set the output token countImage output $30 / 1M tokens4
Google Nano Banana 2.1ImageOutput resolution$0.0336 (1K) to $0.113 (4K)5
Google Nano Banana 2ImageOutput resolution$0.045 (0.5K) to $0.151 (4K)5
Google Nano Banana ProImageOutput resolution$0.134 (1K/2K), $0.24 (4K)5
BFL FLUX.2 [pro]MegapixelsOutput resolution and reference imagesFrom $0.03 per image6
xAI Grok Imagine imageImageModel variant$0.02, or $0.04 (2.0)7
How each vendor bills image generation, from its own pricing page on 2026-11-16. A per-token rate and a per-image rate are not directly comparable until you convert at the size and quality you use.

Per token — OpenAI GPT Image. OpenAI's pricing page lists gpt-image-2 at $8 per 1M image input tokens, $5 per 1M text input tokens and $30 per 1M image output tokens4. The newer gpt-image-2.5-sunburst lists the same image output rate of $30 per 1M, plus cached-input rates, and does not bill text output because it only returns images8. The GPT Image 2.6 models, gpt-image-2.6-sunburst and gpt-image-2.6-flare, which OpenAI now names as the replacement for every older GPT Image model, list the same rates43. What an image costs therefore depends on how many output tokens it takes, which rises with quality and size.

Per image, by resolution — Google Nano Banana. Google lists Nano Banana 2.1 (gemini-nano-banana-2.1, released 6 October 2026) at $0.0336 for a 1K image, $0.0504 at 2K and $0.113 at 4K, and half that through the Batch API. Nano Banana 2 (gemini-3.1-flash-image) is $0.045 for a 0.5K image, $0.067 at 1K, $0.101 at 2K and $0.151 at 4K. Nano Banana Pro (gemini-3-pro-image) is $0.134 at 1K or 2K and $0.24 at 4K52.

Per megapixel — Black Forest Labs FLUX.2. BFL prices by output megapixels, so larger images cost more, and each reference image adds a per-megapixel charge. FLUX.2 [pro] starts from $0.03 for the first megapixel plus $0.015 per megapixel of each reference image, [flex] from $0.05, [max] from $0.07, and the [klein] models from $0.014; [dev] is listed as local only. BFL's pricing page now also lists FLUX 3 Image, priced per image by resolution tier rather than by megapixel, from $0.048 at 1K6.

Per image, by variant — xAI Grok Imagine. xAI lists grok-imagine-image at $0.02 and grok-imagine-image-2.0 at $0.04 per image; grok-imagine-image-quality, listed at $0.05 when this article was first written, no longer appears on its models page7.

What each API accepts

Sizes, references and editing features vary more than prices do, and they decide whether a model can do the job at all.

GPT Image (OpenAI)Nano Banana 2.1 and 2Nano Banana ProFLUX.2 (BFL)
SizesCustom sizes in multiples of 16, ratio 1:3 to 3:1, edge up to 3,840 px91K, 2K, 4K, plus 0.5K on Nano Banana 2; ratios as wide as 1:8 and 8:1101K, 2K, 4K10Priced by megapixel6
Reference imagesImage inputs for editing, masks with alpha9Up to 14: 10 object, 4 character10Up to 6 object, 5 character, 3 style10Each reference priced per megapixel6
Quality controllow to max, plus auto, on GPT Image 2.5 and 2.6; earlier models up to high9ResolutionResolutionModel tier
Transparent outputYes, PNG or WebP9Not statedNot statedNot stated
WatermarkNot statedSynthID10SynthID10Not stated
Documented capabilities, checked 2026-11-16. "Not stated" means the page opened for this article did not say.

Two notes. OpenAI says resolutions above 2560×1440 are experimental and that complex prompts can take up to two minutes9 — relevant if you planned to hold a user request open. And Google documents text rendering and search grounding for its Nano Banana models, with Image Search grounding on Nano Banana 2.1 and 2 only and no grounding on the Lite variant10; if your images must contain accurate text, test that specifically.

How results come back, and how long they last

Image generation is often called synchronous, but not every vendor's native API is. BFL's API answers a submit with an id and a polling_url; you poll until the status is Ready, and the signed result URL in result.sample is valid for 10 minutes only11. BFL also offers global, EU-only and US-only endpoints, which matters if your images must stay in a region11. OpenAI can stream up to three partial images while a render is in progress9.

The practical rule is the same as for video: treat any provider URL as a short-lived handoff and copy the bytes to your own storage as part of the request that produced them.

Retirements are part of the comparison

DateModelStatus
17 August 2026Imagen 4 Standard, Ultra and FastShut down; Google names gemini-nano-banana-2.1 as the replacement2
23 October 2026gpt-image-1Shut down; OpenAI named the GPT Image 2.5 models3
1 December 2026gpt-image-1.5, gpt-image-1-mini, chatgpt-image-latestShutdown date; OpenAI names the GPT Image 2.6 models3
10 February 2027gpt-image-2Shutdown date, announced 10 November 2026; OpenAI names the GPT Image 2.6 models3
15 March 2027gemini-2.5-flash-image, the original Nano BananaEarliest shutdown date; Google names gemini-3.1-flash-lite-image2
Image model shutdown dates from Google's and OpenAI's deprecation pages, read 2026-11-16. Google gives each date as the earliest possible.

Google lists no shutdown date for gemini-3.1-flash-image (Nano Banana 2) but already names Nano Banana 2.1 as its recommended replacement2. If you pick a model today, look up its vendor's deprecation page as part of the decision, and prefer a model that is generally available over a preview when you need it for longer than a few months.

A method for choosing

  1. Write down hard constraints: output size, aspect ratio, transparency, text-in-image, reference images, region.
  2. Assemble 50 real prompts, including edits, text rendering and prompts that must be refused.
  3. Generate on two or three candidates at the size and quality you will actually use, and let the people who own the output choose blind.
  4. Compute cost per accepted image from the vendor's billing unit and your acceptance rate.
  5. Check lifecycle: deprecation status, notice policy and whether a replacement is named.
  6. Qualify a fallback on the same prompts, so a retirement or an outage is a configuration change.

Serving image models through INFRO

INFRO serves images through POST /v1/images/generations and POST /v1/images/edits, synchronously: the request stays open while your provider renders, and the response carries the images. model is a catalog id such as bfl/flux-2-pro or the slug of one of your routes. size (exact pixels, WIDTHxHEIGHT) is passed to your provider unchanged. resolution, aspect_ratio and quality are checked against what the model takes on each of your providers before any call: a setting a target cannot take sends the request to the next target, and when no target can take it the answer is a 400 naming what the model accepts. seed is forwarded on generations only, where the model takes one. See image generation.

Image requests are served by connections to OpenAI, Azure OpenAI, Google AI (Gemini), Google Vertex AI, Together AI, OpenRouter, Runway, KIE, LaoZhang API, fal.ai, Replicate and OpenAI-compatible endpoints; INFRO translates the request to each provider's own API. Which models each one serves is that provider's decision, so check its model list before planning on one.

image_with_fallback.py
import os
from openai import OpenAI

client = OpenAI(base_url="https://api.infro.io/v1", api_key=os.environ["INFRO_API_KEY"])

image = client.images.generate(
    model="bfl/flux-2-pro",
    prompt="An isometric cutaway of a small data center, soft studio lighting",
    size="1024x1024",
    n=1,
    extra_body={"fallbacks": ["bfl/flux-2-dev"]},
)

# The URL points at a copy INFRO keeps for 24 hours. Store the bytes yourself.
print(image.data[0].url)

If a connection errors before producing an image, INFRO tries the next target on the route and then each model in fallbacks, which must be image models too. The response names the provider, connection and route that served it, and usage.cost estimates what your provider will bill, counting only the images that came back; usage.price_source says whether that estimate used the vendor's list rate or a rate you entered. For a token-priced model, reconcile that estimate against your provider's own usage data. A request that would exceed a budget you set is refused with 402 budget_exceeded before any provider is called. The data[].url link expires 24 hours after the request, the same retention as async job outputs.

Edits go to /v1/images/edits as multipart form data: the image and an optional mask, each PNG, JPEG or WebP up to 25 MB, in a request body of up to 51 MB. seed is accepted there but not forwarded, and which dimensions and aspect ratios an edit accepts is your provider's decision. On OpenAI's API the mask is a PNG with an alpha channel the same size as the image, and transparent pixels mark the region to repaint. Because editing behaviour differs more between vendors than generation does, qualify any fallback for edits separately rather than assuming a model that generates well also edits the way your product expects.

Questions readers ask

Is Imagen 4 still available in the Gemini API?
No. Google's Imagen page says the Imagen models are shut down, and the deprecations page lists 17 August 2026 for all three Imagen 4 models, with gemini-nano-banana-2.1 (Nano Banana 2.1) as the replacement.
Why does the same image cost different amounts on the same model?
Most image APIs price by output size or quality. Google prices Nano Banana 2.1 and 2 by resolution, BFL prices FLUX.2 by megapixel, and OpenAI bills GPT Image by tokens, which grow with quality and size.

From the team that builds it

Where this shows up in INFRO

INFRO is a control plane in front of the provider accounts you already hold. The capabilities below are the parts of it this article touches, each with the documentation that defines its behaviour.

INFRO accounts are self-serve. Provider usage is billed to you by your providers; INFRO charges a software subscription and takes 0% of model spend. See plans.

Sources

Numbered in order of first citation. Each was opened and checked against the claim on the date shown.

  1. 1.Imagen (opens in a new tab) — Google. Accessed Nov 16, 2026.
  2. 2.Gemini deprecations (opens in a new tab) — Google. Accessed Nov 16, 2026.
  3. 3.Deprecations (opens in a new tab) — OpenAI. Accessed Nov 16, 2026.
  4. 4.Pricing (opens in a new tab) — OpenAI. Accessed Nov 16, 2026.
  5. 5.Gemini Developer API pricing (opens in a new tab) — Google. Accessed Nov 16, 2026.
  6. 6.Pricing (opens in a new tab) — Black Forest Labs. Accessed Nov 16, 2026.
  7. 7.Models and pricing (opens in a new tab) — xAI. Accessed Nov 16, 2026.
  8. 8.GPT Image 2.5 Sunburst model page (opens in a new tab) — OpenAI. Accessed Sep 29, 2026.
  9. 9.Image generation (opens in a new tab) — OpenAI. Accessed Nov 16, 2026.
  10. 10.Image generation with Gemini (Nano Banana) (opens in a new tab) — Google. Accessed Nov 16, 2026.
  11. 11.Generating images (opens in a new tab) — Black Forest Labs. Accessed Sep 29, 2026.

About this article

Written from each vendor's own documentation, pricing and deprecation pages, opened on 2026-09-29 and again on 2026-11-16 for a review, and from INFRO's public image-generation documentation, which the authors build. Published rates are quoted from the vendor pages, not from INFRO's catalog, where the two differ. No images were generated or scored for this article, and no quality ranking is implied.

Last checked against its sources on . The next review is due by . No separate named reviewer is recorded for this article.

How articles are written, sourced and corrected is set out in the editorial standards.

Revision history

  1. Added Nano Banana 2.1 and the GPT Image 2.6 models, corrected the original Nano Banana's shutdown date to 15 March 2027, added the gpt-image-1 shutdown and the gpt-image-2 date, removed the Grok Imagine quality variant xAI no longer lists, moved Google's documentation links to their new address, and updated which providers INFRO serves images through.