Skip to content

AI Image Generation Cost Analysis

Konstantin Konstantin
8 min

I've benchmarked 33 image generation models from 7 providers to compare cost and latency using the same prompt:

A photorealistic image of a golden retriever puppy sitting in a sunflower field at golden hour, with a soft bokeh background and warm light. Aspect ratio: 1:1, size: 1024x1024.

The benchmark includes both image-only and image-capable multimodal models available on Vercel AI Gateway.

If you don't have much time to analyze the full report:

Full Results

July 10, 2026: added google/gemini-3.1-flash-lite-image, bfl/flux-2-max, recraft/recraft-v2, openai/gpt-image-1.5, openai/gpt-image-1-mini, and ByteDance Seedream models (seedream-4.0, seedream-4.5, seedream-5.0-lite); renamed google/gemini-3.1-flash-image-preview to its GA slug google/gemini-3.1-flash-image; prodia/flux-fast-schnell generates again. Full changelog

(click on a thumbnail to see the full image)

Model Price Latency Image
google/gemini-2.5-flash-image $0.0390494 6.9s Nano Banana (Classic)
google/gemini-3.1-flash-image $0.067024 11.5s Nano Banana 2
google/gemini-3.1-flash-lite-image $0.034012 3.6s Nano Banana 2 Lite
google/gemini-3-pro-image $0.137304 29.9s Nano Banana Pro
google/imagen-4.0-fast-generate-001 $0.02 5.7s Imagen 4 Fast
google/imagen-4.0-generate-001 $0.04 8.0s Imagen 4
google/imagen-4.0-ultra-generate-001 $0.06 11.0s Imagen 4 Ultra
bfl/flux-2-flex $0.05 15.3s Flux 2 Flex
bfl/flux-2-klein-4b $0.014 4.2s Flux 2 Klein 4B
bfl/flux-2-klein-9b $0.015 2.9s Flux 2 Klein 9B
bfl/flux-2-pro $0.03 8.5s Flux 2 Pro
bfl/flux-2-max $0.07 25.4s Flux 2 Max
bfl/flux-pro-1.1 $0.04 4.3s Flux Pro 1.1
bfl/flux-pro-1.1-ultra $0.06 6.9s Flux Pro 1.1 Ultra
bfl/flux-kontext-pro $0.04 6.9s Flux Kontext Pro
bfl/flux-kontext-max $0.08 11.5s Flux Kontext Max
recraft/recraft-v2 $0.022 4.6s Recraft V2
recraft/recraft-v3 $0.04 6.6s Recraft V3
recraft/recraft-v4 $0.04 14.0s Recraft V4
recraft/recraft-v4-pro $0.25 17.2s Recraft V4 Pro (2048x2048)
recraft/recraft-v4.1 $0.035 8.7s Recraft V4.1
recraft/recraft-v4.1-pro $0.21 13.8s Recraft V4.1 Pro (2048x2048)
recraft/recraft-v4.1-utility $0.035 10.2s Recraft V4.1 Utility
recraft/recraft-v4.1-utility-pro $0.21 18.6s Recraft V4.1 Utility Pro (2048x2048)
openai/gpt-image-1 $0.16667 42.7s GPT Image 1
openai/gpt-image-2 $0.0237 37.4s GPT Image 2
openai/gpt-image-1.5 $0.045454 32.1s GPT Image 1.5
openai/gpt-image-1-mini $0.033388 30.7s GPT Image 1 Mini
xai/grok-imagine-image $0.02 6.2s Grok Imagine
bytedance/seedream-4.0 $0.03 9.4s Seedream 4.0 (2048x2048)
bytedance/seedream-4.5 $0.04 22.9s Seedream 4.5 (2048x2048)
bytedance/seedream-5.0-lite $0.035 30.3s Seedream 5.0 Lite (2048x2048)
prodia/flux-fast-schnell $0.0025 8.5s Flux Schnell

Total spent: $2.0351014

The latency here is wall time, measured by the benchmark script. The cost, however, is returned by the gateway, so it should be accurate.

Cost

AI image generation cost chart

Latency

AI image generation latency chart

Model Quirks

This benchmark includes provider-specific adaptations, because several models need custom params to work correctly:

  • Black Forest Labs Flux models need explicit pixel width and height instead of relying on aspectRatio
  • Recraft and OpenAI image models require size rather than aspectRatio
  • recraft/recraft-v4-pro needs 2048x2048 for square output, not 1024x1024
  • xAI Grok models support aspectRatio but not size
  • Gemini image responses can contain duplicate files in result.files, so the benchmark deduplicates them before saving
  • ByteDance Seedream models require size (not aspectRatio) at a minimum of 3.69 MP, so they run at 2048x2048, and take watermark: false to drop the "AI generated" badge they otherwise burn into the image
  • prodia/flux-fast-schnell, the cheapest model, generates again after failing in the previous run - the earlier failure looks like a transient provider issue.

Winners

If you only optimize for cost, the three cheapest models in this benchmark are:

  • prodia/flux-fast-schnell at $0.0025
  • bfl/flux-2-klein-4b at $0.014
  • bfl/flux-2-klein-9b at $0.015

If you optimize for latency, the three fastest models are:

  • bfl/flux-2-klein-9b at 2.9s
  • google/gemini-3.1-flash-lite-image at 3.6s
  • bfl/flux-2-klein-4b at 4.2s

I personally think it all depends on your task and prompt. For my particular mass-scale case, I'm optimizing for both cost and speed, so choose among the winners.

DIY

If you want to run the benchmark yourself, add more models, or adjust the prompt - the script is easy to configure and run: kometolabs/ai-image-generation-cost-analysis

Support My Work

Preparing such research sometimes takes 2-5 full benchmark runs, which adds up. If it saved you time, consider sponsoring me on GitHub or Buy Me a Coffee.

Relevant Posts