If your product selector displays “GPT Image 2.5,” do not make that display label the value sent to CometAPI. The CometAPI model pages document two distinct request IDs: gpt-image-2.5-sunburst and gpt-image-2.5-flare. Both examples use the CometAPI image-generation endpoint, https://api.cometapi.com/v1/images/generations.
Keep three fields separate:
| Display label | Application choice | Transmitted model |
|---|---|---|
| GPT Image 2.5 — Sunburst | sunburst |
gpt-image-2.5-sunburst |
| GPT Image 2.5 — Flare | flare |
gpt-image-2.5-flare |
An offline contract check needs expected values independent of the application’s registry. The following example is illustrative and unexecuted; it makes no network call. It checks the serialized body returned by the request builder for each selection:
import json
MODELS = {
"sunburst": "gpt-image-2.5-sunburst",
"flare": "gpt-image-2.5-flare",
}
def build_generation_body(choice, prompt):
return json.dumps({"model": MODELS[choice], "prompt": prompt})
# Fixed documentation expectations, not derived from MODELS.
EXPECTED_IDS = (
("sunburst", "gpt-image-2.5-sunburst"),
("flare", "gpt-image-2.5-flare"),
)
for choice, expected_id in EXPECTED_IDS:
body = json.loads(build_generation_body(choice, "test"))
assert body["model"] == expected_id
Wire the test to the request builder your application actually sends through CometAPI, rather than a second test-only implementation. If a registry value is misspelled or the two mappings are swapped while the fixed expectations stay unchanged, the corresponding assertion fails. Keep those expectations under documentation review instead of regenerating them from the registry. This checks selection and serialization only—not API acceptance or generated-image behavior.
The expected strings come from the generation examples on CometAPI’s GPT Image 2.5 page and GPT Image 2.5 Flare page.
This is a binding decision, not a benchmark: the table does not claim that either variant is better, nor does it introduce an undocumented gpt-image-2.5 alias. Treat the documented model string as an API contract and keep any future capability or parameter assumptions separately verified.