Product · Image generation

One API for every image model.

Generate and edit images at provider prices.

LLM Gateway puts the image models of every major lab behind one OpenAI-compatible endpoint. Pick a model per request, pay per image, and see what each one cost.

34
Image models
$0.0049
Per image, from
3
Endpoints

An image in one request

The same request as OpenAI's images API. Change the base URL and the key, then pick any model from the table below.

generate.sh
curl -X POST "https://api.llmgateway.io/v1/images/generations" \
  -H "Authorization: Bearer $LLM_GATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "<image-model-id>",
    "prompt": "A lighthouse on a cliff at dawn, watercolor",
    "size": "1024x1024"
  }'

Image generation pricing

The lowest price of one image for each model, across the providers that serve it today. Larger sizes and higher quality cost more; each model page has the full list.

Pricing and availability as of

ModelMade byProvidersPer image, from
FLUX.2 Klein 4Bblack-forest-labs1$0.0049
Z-Image Turboalibaba1$0.005
Recraft V4.1 Flashrecraft1$0.007
FLUX 3 Kleinblack-forest-labs1$0.009
CogView-4zai1$0.01
Muse Image 1.0meta1$0.01
GLM-Imagezai1$0.015
MiniMax H3 Imageminimax1$0.0156
Qwen Image 2.1 Turboalibaba1$0.016
Seedream 5.0 Flashbytedance1$0.018
Grok Imagine Imagexai1$0.02
Qwen Image 3.0alibaba1$0.03
Wan 2.7 Imagealibaba1$0.03
Hy Image 3.5 Previewtencent1$0.032
Gemini 3.1 Flash Lite Imagegoogle2$0.0336
Gemini Nano Banana 2.1google2$0.0336
Seedream 4.0bytedance1$0.035
Seedream 5.0 Litebytedance1$0.035
Gemini 2.5 Flash Imagegoogle2$0.0387
Grok Imagine Image 2.0xai1$0.04
Qwen Image 2.1 Proalibaba1$0.04
Qwen Image 3.0 Proalibaba1$0.04
Gemini 3.1 Flash Imagegoogle3$0.0448
Gemini 3.1 Flash Image (Preview)google3$0.0448
Seedream 4.5bytedance1$0.045
Wan 2.7 Image Proalibaba1$0.075
Seedream 5.0 Probytedance1$0.09
Gemini 3 Pro Imagegoogle3$0.1344
Gemini 3 Pro Image (Preview)google3$0.1344
GPT Image 2openai2Priced per token
GPT Image 2.5 Flareopenai2Priced per token
GPT Image 2.5 Sunburstopenai2Priced per token
GPT Image 2.6 Flareopenai1Priced per token
GPT Image 2.6 Sunburstopenai1Priced per token

Compare every option on the text-to-image and image-to-image pages.

Built for apps that make a lot of images

One API for every image model

Call any image model in the catalogue with the same request. Switching models is a one-word change, not a new SDK.

Generate and edit

OpenAI-compatible /v1/images/generations and /v1/images/edits, plus image output in /v1/chat/completions for conversational edits.

Failover across providers

When several providers serve a model, a request that names only the model is retried on another one if the first fails.

Provider prices, per image

Each image is billed at the provider's rate for its size and quality. The table below is read from the live catalogue.

Cost on every response

Image responses carry a usage object with the billed cost, and the dashboard breaks spend down by model, provider and API key.

Keys and limits per project

Give each app or customer its own API key with a spending limit, and bring your own provider keys when you have them.

FAQ

Image generation, answered

Can't find an answer? Contact us

It depends on the model, size and quality. Prices start at $0.0049 per image, and each model page lists every size and quality tier. Pay-as-you-go credits carry a flat 5% platform fee; requests on your own provider keys carry none.

Ship image generation today

Create a key, send one request, and switch models whenever a better one ships.