DEV Community

Cover image for The cheapest and fastest way to generate an image
Konstantin Komelin
Konstantin Komelin

Posted on

The cheapest and fastest way to generate an image

Just updated my benchmark for image generating models on Vercel AI Gateway.

One single prompt, 25 models from 6 providers, 18x price diff, 10x speed diff.

Here are the winners:

Cost

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

Latency

  1. bfl/flux-pro-1.1 at 3.6s
  2. xai/grok-imagine-image at 4.1s
  3. bfl/flux-2-klein-9b at 6.2s

Check out the full report with the images and behind-the-scenes on my site.

Top comments (0)