Skip to content
Image

Image Generation Model APIs

61 image models for text-to-image, image-to-image and editing — GPT Image 2, Nano Banana (Gemini image), Seedream, FLUX, Qwen Image, Grok Imagine and Midjourney — behind one asynchronous images endpoint.

POST /v1/images/generations61 models
Image

GPT Image

OpenAI · 12 models

Seedream

ByteDance · 6 models

Nano Banana

Google · 10 models

FLUX

Black Forest Labs · 7 models

Grok Imagine

xAI · 6 models

Qwen Image

Alibaba · 4 models

MAI Image

Microsoft · 4 models

Wan Image

Alibaba · 2 models

Kling Image

Kuaishou · 2 models

MiniMax Image

MiniMax · 2 models

Z-Image

Alibaba · 1 models

Imagen

Google · 1 models

Midjourney

Midjourney · 1 models

Muse

Muse · 1 models

DALL·E

OpenAI · 1 models

Hunyuan Image

Tencent · 1 models

How to call Image models

Submit a prompt (and optional reference images) to POST /v1/images/generations, receive a task_id, then poll GET /v1/tasks/{task_id} until the result URLs are ready. Most image models are billed per successful image at a fixed price per resolution tier; token-priced models such as Gemini image models are billed from the returned usage. Failed generations are not charged.

Billing

Per successful image by resolution or quality tier for most models; token-priced models are billed from usage.

gpt-image-2.6-flare API
curl --request POST \
  --url https://openrouterapi.ru/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "gpt-image-2.6-flare",
  "prompt": "A cozy reading nook by a rainy window, warm lamp light",
  "size": "1:1",
  "resolution": "1k",
  "quality": "medium",
  "n": 1
}'

Image model FAQ

Which endpoint do Image models use?

Image models use POST /v1/images/generations. Each model page shows the exact request body, parameters and a working example.

How are Image models billed?

Per successful image by resolution or quality tier for most models; token-priced models are billed from usage.

Can I switch between Image models without code changes?

Yes. Models in the same category share the same endpoint and request schema, so switching usually means changing only the model field. Some models add optional parameters, documented on their pages.

Are results charged when a request fails?

No. Only successful requests are billed. Requests that are rejected or blocked by moderation are free.

Depth: 250+ models · Minimum top-up $50

One key. Every model. Start shipping today.

Create an account, top up from $50, and point your existing OpenAI, Anthropic or Gemini SDK at Openrouter API. No subscriptions, no seat fees, no idle charges.