Calling GPT Image 2.5 through CometAPI: What the Published Quickstart Actually Specifies

For a first GPT Image 2.5 generation request through CometAPI, the important detail is the exact model identifier, not just the family name. CometAPI’s GPT Image 2.5(sunburst) page, captured on September 14, 2026, names Sunburst as part of that family and uses gpt-image-2.5-sunburst throughout its generation quickstart.

My recommendation: preserve that identifier and CometAPI’s connection settings when translating the example into your application. The page does not establish that the shorter gpt-image-2.5 name is a callable alias. This is a reading of the published instructions, not a tested integration or independent verification of upstream model claims.

What the HTTP example specifies

The quickstart’s request configuration is:

Part Published value
Method and endpoint POST https://api.cometapi.com/v1/images/generations
Content type application/json
Authorization Bearer $COMETAPI_KEY
Model gpt-image-2.5-sunburst
Other JSON body field prompt, containing a text description

The cURL example supplies its JSON body with -d. Its prompt describes a small ceramic fox on a mossy stone beside a blue lake. It is a text-prompt generation example, not an editing implementation.

That combination is the actionable starting point: a CometAPI key, a CometAPI generation endpoint, and the specific Sunburst identifier shown on this page. The family label alone does not specify the same request.

How the SDK examples express it

Both examples use the OpenAI SDK client, but explicitly configure it for CometAPI:

  • Python: base_url is https://api.cometapi.com/v1; the client receives api_key and max_retries=0.
  • JavaScript: baseURL is the same CometAPI URL; the client receives apiKey and maxRetries: 0.
  • Both read COMETAPI_KEY from the environment, with a <YOUR_COMETAPI_KEY> placeholder fallback. That fallback is a placeholder, not a supplied credential.
  • Both call images.generate with gpt-image-2.5-sunburst and the same text prompt as the HTTP example.

Keep the distinction between the SDK base URL, which ends in /v1, and the full HTTP generation URL above. The page shows how to configure these clients; the shared SDK name is not proof of model equivalence or identical behavior at another provider’s endpoint.

Where the quickstart stops

The examples set only model and prompt. Although the surrounding page discusses selecting quality, the generation snippets do not explicitly set quality, image size, or response format. Their omission does not establish defaults or tell us whether an application needs additional settings.

The SDK snippets also explicitly set retry counts to zero and finish with print(response) or console.log(response). They do not demonstrate decoding, saving, or validating an image. No response payload or error trace accompanies them, so copying the request configuration is not evidence of successful image generation.

Before treating this as a complete application workflow, I would separately verify the response format and output handling against CometAPI’s API reference, then validate the returned image. The page links that reference, but it was not inspected for this walkthrough. There is no basis here to invent a response field, promise a default image size, or prescribe production retry behavior.

Bottom line: CometAPI’s quickstart gives a concrete configuration for its GPT Image 2.5 Sunburst route. Use the documented gpt-image-2.5-sunburst identifier rather than guessing an alias, and keep “configured as documented” separate from “executed successfully and produced a validated image.”