Genace

image generation API batch requests: what the n parameter actually saves

Every image model takes an n parameter and multiplies cost linearly.

ModelPer imagen range4 images
Flux5 credits1–420 credits
Nano Banana4 credits1–416 credits
Ideogram6 credits1–424 credits

There is no batch discount. Four images in one call costs exactly what four separate calls cost.

What you actually buy

Concurrency slots. Ceilings are per API key:

TierRequests per minuteConcurrent jobs
Free51
Pro605

On the free tier you get one in-flight job. Four images in one call is one job; four separate calls is four, and three of them come back with 429 CONCURRENCY_LIMIT_EXCEEDED.

Batching also costs you fewer requests against the per-minute limit — one instead of four.

Above the cap

n over the maximum fails validation with 400 INVALID_PARAM. Nothing is submitted and no credits are touched.

Models covered on this page

Where these facts come from

  • codebase: src/ai/providers/*.ts — every pricing() and paramsSchema
  • codebase: src/config/website.tsx — credit pack pricing
  • codebase: src/ai/api/quota.ts — per-tier ceilings