A CometAPI moderation image URL must be fetchable by its servers

An image opening in your browser is not enough to establish that it can be moderated through CometAPI. The Create a moderation guide sets a more specific condition: public image URLs must be downloadable by CometAPI servers.

For POST /v1/moderations, the guide documents multimodal input parts such as text plus image_url, with a supporting model such as omni-moderation-latest. The image address belongs in image_url.url. That is a server-side input dependency, not just a link for the user to preview.

The practical inference is that a browser preview proves access from the browser’s context—not from CometAPI’s. If the preview depends on a signed-in session or a private network, treat that as a possible reachability mismatch, not as evidence of a moderation-model failure. The guide does not specify which error such a mismatch returns.

Separate the image transport question from the moderation question

For CometAPI moderation requests, I recommend using a non-sensitive test image to compare the two documented image_url.url input forms while keeping the model and text fixed:

  • An image_url part whose url points to an image intended to be downloadable by CometAPI.
  • An image_url part whose url contains a base64 data URL. The guide explicitly offers this form for a self-contained image request.

If the data-URL form works while the hosted-URL form fails, investigate the hosted image’s access conditions before changing moderation policy. That comparison would narrow the investigation; it would not prove a particular network cause. Do not make private user uploads public merely to obtain a working test.

A self-contained request removes the separate hosted-image URL from this comparison; it does not establish classification quality or eliminate the need to assess what image data you are sending. Keep an unresolved image-input failure distinct from a completed moderation decision in your application handling.

This is a documentation-based diagnostic approach, not a report of a live CometAPI test. The guide supports the two input forms and the server-download requirement, but does not establish fetch timeouts, retry behavior, or a guaranteed error code for inaccessible images.

A useful operational safeguard is to make image reachability an explicit preflight signal rather than letting it surface as an undifferentiated moderation error. For a non-sensitive canary image, record the input form (hosted URL or data URL), request ID, latency, and the application’s classification of the outcome: image fetched and moderated, image-input failure, or moderation response. Do not log the image URL if it can contain credentials or user-identifying paths.

A practical runbook could then be:

  1. Reproduce with the same model and text while changing only the image representation.
  2. If the self-contained data-URL request succeeds but the hosted URL does not, pause retries and inspect the hosted object’s access policy, redirects, expiry, and whether it is intended for server-side download. Treat that as an input-transport investigation, not a moderation-policy decision.
  3. Escalate when failures affect the canary or a broad set of otherwise valid inputs; include timestamps, request IDs, input form, and sanitized response metadata, but not private image contents or secrets.
  4. Stop automatic retries when the URL is private, expired, or otherwise known to be unreachable. Retrying cannot grant CometAPI access and may amplify load.

The data-URL comparison isolates one variable, but it should remain a diagnostic control: success does not prove that the hosted storage path is reliable, nor does a failed comparison establish a particular timeout or error code that the documentation does not promise.