If a shared image-generation form switches to qwen-image on CometAPI, reset the output count to one before submitting. A saved “four alternatives” setting should not become n: 4 on that route.
CometAPI’s Create an image guide documents POST /v1/images/generations. Its general n field means the number of images to generate and defaults to 1, but the model-specific guidance is narrower: “qwen-image does not support n > 1.” The “Choose a model first” section also says to keep n at one for this model.
For a concrete production brief, imagine wanting four compositions of a ceramic cup: centered, tightly cropped, viewed from above, and placed at the edge of the frame. Four desired compositions describe the creative deliverable. They do not make four outputs a supported count in one CometAPI qwen-image request.
I would apply the documented restriction in three places:
- Model selection: when
qwen-imageis selected, set the count to one and explain that this CometAPI route supports one image per request. - Saved settings: if a preset carries a larger count, show the correction before submission so the form no longer promises several outputs from that request.
- Request validation: check the model and count together immediately before sending. For
qwen-image, requiren == 1; a disabled form control alone will not cover a separately constructed payload.
Those are suggested client safeguards, not descriptions of an existing CometAPI interface. A useful local check is to load a preset with count four, switch to qwen-image, and inspect the outgoing payload: it should contain n: 1, with the visible count matching. A directly constructed payload containing model: "qwen-image" and n: 4 should be stopped by that client validator.
If the brief still needs four alternatives, plan the separate generation requests explicitly. The output-count note does not establish how many requests may run concurrently, what they cost, or whether their results will differ usefully. Those decisions need their own documentation and checks before the form promises a complete set.
This is a restriction documented for CometAPI’s hosted qwen-image route, not a claim about native Qwen services or local inference. I have not run a request here, and the guide does not specify what error or other server behavior an unsupported count produces. The actionable boundary is the documented request value: keep n at one when this model is selected.