AI Image Generation APIs (Text-to-Image)

Generate images from a text prompt through one unified API. ApexApi serves the leading image models, including Flux, Imagen, and Nano Banana, behind a single key with transparent per-image pricing. Failed generations are not billed, and you can switch models by changing one slug.

29 Image models on ApexApi

ModelPrice /image
FLUX.2

black-forest-labs/flux-2

$0.014–$0.036/image
FLUX.2 Pro

black-forest-labs/flux-2-pro

$0.036–$0.090/image
FLUX.2 Pro Edit

black-forest-labs/flux-2-pro/edit

$0.036–$0.090/image
FLUX.2 Edit

black-forest-labs/flux-2/edit

$0.014–$0.036/image
FLUX.1 Pro

black-forest-labs/flux-pro

$0.060/image
FLUX.1 Dev

black-forest-labs/flux/dev

$0.030/image
FLUX.1 Schnell

black-forest-labs/flux/schnell

$0.004/image
Seedream 5.0 Pro

bytedance/seedream-5.0

$0.081–$0.162/image
Gemini 3 Pro Image

google/gemini-3-pro-image-preview

$0.135–$0.360/image
Gemini 3 Pro Image — Edit

google/gemini-3-pro-image-preview/edit

$0.135–$0.360/image
Gemini 3.1 Flash Image

google/gemini-3.1-flash-image-preview

$0.072–$0.192/image
Gemini 3.1 Flash Image — Edit

google/gemini-3.1-flash-image-preview/edit

$0.072–$0.192/image
Gemini 2.5 Flash Image

google/gemini-flash-image

$0.047/image
Nano Banana 2

google/nano-banana-2

$0.072–$0.192/image
Nano Banana 2 Edit

google/nano-banana-2/edit

$0.072–$0.192/image
Nano Banana Pro

google/nano-banana-pro

$0.135–$0.360/image
Nano Banana Pro Edit

google/nano-banana-pro/edit

$0.135–$0.360/image
Ideogram V3

ideogram/v3

$0.072/image
Imagen 3

imagen-3

$0.060/image
Imagen 3 Fast

imagen-3-fast

$0.030/image
Imagen 4 Fast

imagen-4-fast

$0.030/image
Imagen 4 Ultra

imagen-4-ultra

$0.090/image
GPT Image 2

openai/gpt-image-2

$0.007–$0.253/image
Recraft V3

recraft-ai/recraft-v3

$0.048/image
Fast SDXL

stability-ai/fast-sdxl

$0.004/image
Grok Imagine — Image

xai/grok-imagine-image

$0.024/image
Grok Imagine — Image Edit

xai/grok-imagine-image/edit

$0.024/image
Grok Imagine — Quality Edit

xai/grok-imagine-image/quality/edit

$0.060/image
Grok Imagine — Quality

xai/grok-imagine-image/quality/text-to-image

$0.060/image

Why build on ApexApi

One API, every model

OpenAI-compatible. Swap the base URL and key, keep your code. Call 14+ providers and hundreds of models through a single integration.

Smart routing & failover

Per-model provider chains with automatic failover. If one provider degrades, requests route to the next. Your app stays up.

Pay-per-use, no lock-in

Buy credits, pay only for what you call. No subscriptions, no minimums. Switch models anytime with a single string change.

Frequently asked questions

How does the image generation API work?
POST to /v1/images/generations with a model slug and a prompt. You get back an image URL. Same ak- key and credit balance as the rest of the catalog, billed per successful image.
How much does image generation cost?
Pricing is per image and varies by model. Each model page shows its live per-image price. There is no subscription; you buy credits and pay only for what you generate.
Which image model is best?
Different models trade off quality, style, speed, and price. Because they share one API and key, the practical approach is to run the same prompt through a few and compare the results and cost.