Skip to content

AI Image Generation Cost Analysis

Konstantin Konstantin
7 min

I've benchmarked 25 image generation models from 6 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

April 20, 2026: added prodia/flux-fast-schnell.
April 23, 2026: added bfl/flux-2-klein-4b, bfl/flux-2-klein-9b, openai/gpt-image-2.
May 16, 2026: removed deprecated xai/grok-imagine-image-pro and added recraft/recraft-v4.1 subset.

(click on a thumbnail to see the full image)

Model Price Latency Image
google/gemini-2.5-flash-image $0.0390269 7.0s Nano Banana (Classic)
google/gemini-3.1-flash-image-preview $0.067024 12.3s Nano Banana 2
google/gemini-3-pro-image $0.136248 20.8s Nano Banana Pro
google/imagen-4.0-fast-generate-001 $0.02 7.6s Imagen 4 Fast
google/imagen-4.0-generate-001 $0.04 11.7s Imagen 4
google/imagen-4.0-ultra-generate-001 $0.06 13.8s Imagen 4 Ultra
bfl/flux-2-flex $0.05 14.2s Flux 2 Flex
bfl/flux-2-klein-4b $0.014 6.3s Flux 2 Klein 4B
bfl/flux-2-klein-9b $0.015 6.2s Flux 2 Klein 9B
bfl/flux-2-pro $0.03 10.4s Flux 2 Pro
bfl/flux-pro-1.1 $0.04 3.6s Flux Pro 1.1
bfl/flux-pro-1.1-ultra $0.06 10.5s Flux Pro 1.1 Ultra
bfl/flux-kontext-pro $0.04 11.7s Flux Kontext Pro
bfl/flux-kontext-max $0.08 13.4s Flux Kontext Max
recraft/recraft-v3 $0.04 6.8s Recraft V3
recraft/recraft-v4 $0.04 11.5s Recraft V4
recraft/recraft-v4-pro $0.25 25.9s Recraft V4 Pro (2048x2048)
recraft/recraft-v4.1 $0.04 9.1s Recraft V4.1
recraft/recraft-v4.1-pro $0.25 27.7s Recraft V4.1 Pro (2048x2048)
recraft/recraft-v4.1-utility $0.04 15.1s Recraft V4.1 Utility
recraft/recraft-v4.1-utility-pro $0.25 27.2s Recraft V4.1 Utility Pro (2048x2048)
openai/gpt-image-1 $0.16667 34.3s GPT Image 1
openai/gpt-image-2 $0.0237 28.4s GPT Image 2
xai/grok-imagine-image $0.02 4.1s Grok Imagine
prodia/flux-fast-schnell - FAILED -

Total spent: $1.8116689

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
  • xai/grok-imagine-image-pro failed when run last in a long benchmark sequence, so isolated runs may be more reliable for it
  • prodia/flux-fast-schnell, previously the cheapest model, failed to generate an image this time (reported to Vercel).

Winners

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

  • bfl/flux-2-klein-4b at $0.014
  • bfl/flux-2-klein-9b at $0.015
  • google/imagen-4.0-fast-generate-001 and xai/grok-imagine-image tied at $0.02

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

  • bfl/flux-pro-1.1 at 3.6s
  • xai/grok-imagine-image at 4.1s
  • bfl/flux-2-klein-9b at 6.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