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 unit | What moves the price | Published rate | |
|---|---|---|---|
| OpenAI GPT Image 2, 2.5 and 2.6 | Tokens | Quality and size set the output token count | Image output $30 / 1M tokens4 |
| Google Nano Banana 2.1 | Image | Output resolution | $0.0336 (1K) to $0.113 (4K)5 |
| Google Nano Banana 2 | Image | Output resolution | $0.045 (0.5K) to $0.151 (4K)5 |
| Google Nano Banana Pro | Image | Output resolution | $0.134 (1K/2K), $0.24 (4K)5 |
| BFL FLUX.2 [pro] | Megapixels | Output resolution and reference images | From $0.03 per image6 |
| xAI Grok Imagine image | Image | Model variant | $0.02, or $0.04 (2.0)7 |
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 2 | Nano Banana Pro | FLUX.2 (BFL) | |
|---|---|---|---|---|
| Sizes | Custom sizes in multiples of 16, ratio 1:3 to 3:1, edge up to 3,840 px9 | 1K, 2K, 4K, plus 0.5K on Nano Banana 2; ratios as wide as 1:8 and 8:110 | 1K, 2K, 4K10 | Priced by megapixel6 |
| Reference images | Image inputs for editing, masks with alpha9 | Up to 14: 10 object, 4 character10 | Up to 6 object, 5 character, 3 style10 | Each reference priced per megapixel6 |
| Quality control | low to max, plus auto, on GPT Image 2.5 and 2.6; earlier models up to high9 | Resolution | Resolution | Model tier |
| Transparent output | Yes, PNG or WebP9 | Not stated | Not stated | Not stated |
| Watermark | Not stated | SynthID10 | SynthID10 | Not stated |
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
| Date | Model | Status |
|---|---|---|
| 17 August 2026 | Imagen 4 Standard, Ultra and Fast | Shut down; Google names gemini-nano-banana-2.1 as the replacement2 |
| 23 October 2026 | gpt-image-1 | Shut down; OpenAI named the GPT Image 2.5 models3 |
| 1 December 2026 | gpt-image-1.5, gpt-image-1-mini, chatgpt-image-latest | Shutdown date; OpenAI names the GPT Image 2.6 models3 |
| 10 February 2027 | gpt-image-2 | Shutdown date, announced 10 November 2026; OpenAI names the GPT Image 2.6 models3 |
| 15 March 2027 | gemini-2.5-flash-image, the original Nano Banana | Earliest shutdown date; Google names gemini-3.1-flash-lite-image2 |
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
- Write down hard constraints: output size, aspect ratio, transparency, text-in-image, reference images, region.
- Assemble 50 real prompts, including edits, text rendering and prompts that must be refused.
- 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.
- Compute cost per accepted image from the vendor's billing unit and your acceptance rate.
- Check lifecycle: deprecation status, notice policy and whether a replacement is named.
- 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.
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.
