Image API n: 10 per call in the schema, lower for each model

The Sume Image API schema allows n from 1 to 10, but each model lists its own n range. How to read the ceiling and what you pay for n images.

3 min readSume
All posts

The Sume Image API accepts n from 1 to 10 in its schema, but the real ceiling is the n range descriptor in each model row of GET /v1/images/models. Read it before you batch, because a request above the model range is not a silent clamp: a field a model does not list is rejected with 400 unsupported_parameter.

What the docs say

The Image API docs say to use n for up to 10 images per call and that per-model ceilings are lower. Their sample row for Seedream 4.5 shows an n range of 1 to 4 and input_references of 0 to 10, which shows the format, not a promise for that model today. The row you fetch is the one that counts.

Cost and timing with n

Endpoint pricing already includes the Sume margin, so you pay cost_usd times n. Failed or cancelled generations are not charged. Large n is also one of the settings that the docs name as likely to push a request past the 30 second wait and into a 202 job envelope.

What n changes on POST /v1/images (Sume docs, read 2026-10-07)
ItemEffect of a larger n
Pricecost_usd x n, billed on completion
WaitMore likely to exceed 30 seconds and return 202
RangePer-model, from the n descriptor in the catalog
FailureNo charge for a failed generation

A safe pattern

Read the range, then clamp in your code.

  • GET /v1/images/models and find the model row.
  • Read supported_parameters.n.max.
  • Send min(wanted, max) per call and loop for the rest.
  • Use mode async for big batches, so the 30 second wait does not matter.

Sources

Related posts

More in Developers

All Developers posts

Written by Sume