If your image-generation adapter returns a ready-to-use image URL, CometAPI’s FLUX 2 Pro examples are a reason to inspect the return contract before adding the route. Changing the endpoint alone does not establish compatibility: the examples submit a prediction and read its identity and status, without showing a finished-image payload.
The practical choice is whether the existing adapter can represent that submission separately from a completed asset. If it cannot, a separate prediction workflow is the clearer integration boundary.
What the CometAPI examples establish
The official FLUX 2 Pro model page, captured on September 16, 2026, shows cURL, Python and JavaScript requests to:
POST https://api.cometapi.com/replicate/v1/models/black-forest-labs/flux-2-pro/predictions
All three put the model parameters inside an input object. That object includes prompt, input_images, aspect_ratio, resolution, output_format, safety_tolerance and seed. The illustrated resolution is "2 MP", and the output format is "jpg".
Those are example values, not a complete parameter specification. They do not establish required fields, defaults or every accepted value. For an adapter with a different request shape, explicitly check how each caller option maps to this nested object rather than assuming similarly named image controls are interchangeable.
The return path matters just as much. The Python example reads result.get('id'), result.get('status') and result.get('model'); the JavaScript example reads the corresponding properties. Neither extracts data[0].url or shows a completed-image response.
This is evidence about the documented examples, not a live integration test. It does not prove that every submission returns an unfinished prediction, nor that those three fields describe the entire response schema.
Decide at the adapter boundary
For this CometAPI route, I would use two questions to decide whether to extend the existing adapter:
- Can its request mapper express the nested
inputstructure and the demonstrated image parameters without silently dropping caller intent? - Can its return contract preserve prediction identity and status without presenting them as a finished image?
If both answers are yes, extending the adapter is a reasonable design choice, subject to verifying completion handling. Keep submission metadata separate from whatever representation the application uses for completed image assets.
If callers require an immediate URL, such as a value read from data[0].url, do not fill that slot with a prediction ID or an assumed output URL. Introduce a separate submission result and completion path, or explicitly revise the caller contract. A successful HTTP exchange alone should not become the application’s proof that an image is ready.
That is an adapter-design recommendation, not a claim that CometAPI requires a particular SDK or application architecture.
Leave completion handling unimplemented until verified
The model page labels the response “Async ready” and includes generic retrieval prose, but it does not define the retrieval endpoint, polling interval, terminal statuses or completed output shape. It also does not specify webhook behavior, retry policy or idempotency semantics. Its linked API references have not been reviewed here.
Before implementing that part of the workflow, verify where the prediction ID is used, how completion and failure are distinguished, and where the finished image is returned. Confirm retry and idempotency behavior before adding automatic resubmission. The examples do not support inventing a polling URL, status list or timer.
The supported decision is narrower than a full integration recipe: CometAPI’s documented FLUX 2 Pro submission contract warrants a prediction-aware adapter boundary. Keep that boundary explicit, and require separate evidence for turning a submission into a usable image.