If a masked edit uses several reference images, do not treat the input list as an unordered set. Treat its order as an experimental variable.
The current image-generation guide documents two details that matter for a controlled pilot: with multiple input images, a supplied mask applies to the first image, and masking is prompt-based rather than a guarantee that every boundary will be followed exactly OpenAI image-generation guide. CometAPI’s model catalog identifies gpt-image-2.5-flare and shows a generation request aimed at api.cometapi.com/v1/images/generations CometAPI Flare catalog. Those sources establish the integration target and upstream behavior; they do not establish that CometAPI forwards every edit or mask option unchanged.
A reproducible CometAPI check should begin with a manifest, not a subjective before/after. Record a hash for every reference, the ordered file list, the primary edit image, the mask hash and its explicit binding to that first image, the model identifier, prompt version, output settings, request timestamp, response identifier, and any returned artifact hashes. Keep the result fields empty until a request is actually run.
Run at least these planned conditions:
- Order A: the intended edit image first, followed by the remaining fixed references; pair the mask with that first image.
- Order B: move one reference to the first position while keeping the same files, prompt, and settings; create and record the correctly paired mask for the new first image.
- An unmasked control using the same ordered references and prompt, if the endpoint accepts that control.
For each output, score two things separately: whether the requested edit occurred inside the intended target region, and whether the non-target subject or identity remained consistent. Do not collapse those into one “looks good” judgment. Preserve failed, missing, or unsupported requests as outcomes rather than silently replacing them.
This design answers a narrow routing question: does changing the first-image role change the observed edit behavior when the CometAPI request is otherwise held constant? It is a proposal, not a test result. Until the gateway call, mask handling, and returned images are verified, make no claim about enforcement, quality, compatibility, cost, or a maximum number of references. This protocol is scoped to a GPT Image 2.5 Flare pilot on CometAPI; the generation example alone is not evidence that its masked-edit path works. Confirm that path before running the comparison. Because swapping the first image also changes the mask target, interpret the comparison as a first-image-role test, not an isolated measurement of reference-order effects.