Put image identity in CometAPI input text instead of relying on filenames

Two nearly identical product photos can have very informative filenames: a SKU, a finish code, a capture date. That does not make those details reliable model-visible context.

OpenAI’s Images and vision guide, under Metadata and resizing, says the model does not process original file names or metadata. If the question is “Which variant has the brushed finish?”, do not leave the variant association solely in the filename or embedded image metadata.

For a CometAPI Responses integration, put that association in the request’s text content instead. CometAPI’s Responses documentation documents POST /v1/responses, multimodal input arrays, and the SDK base URL https://api.cometapi.com/v1; it links the upstream image guide for image-input details. That guide shows input_text and input_image together in a user message.

Pair the label with the image

Here is a proposed request-assembly pattern, not a tested API result. image_a_url and image_b_url stand for the two image URLs supplied by your application. Use a model route whose image-input support you have confirmed; this is not a promise that every CometAPI model accepts images.

content = [
    {"type": "input_text", "text": (
        "Compare the visible surface finish in the two supplied photos. "
        "Refer to them only as A and B. Labels are supplied context, "
        "not proof of product identity. If the finish is unclear, say so."
    )},
    {"type": "input_text", "text": "Image A: catalog variant V-101."},
    {"type": "input_image", "image_url": image_a_url},
    {"type": "input_text", "text": "Image B: catalog variant V-102."},
    {"type": "input_image", "image_url": image_b_url},
]
input_items = [{"role": "user", "content": content}]

Use input_items as the input argument in your CometAPI client.responses.create call. Build the label text and image reference from the same application record so a sort or filter cannot silently pair variant A’s label with variant B’s photo. If capture time matters to the comparison, add the application-supplied timestamp to that same text block rather than expecting embedded metadata to carry it.

Keep association separate from identification

Retain the mapping A → V-101 → supplied image and B → V-102 → supplied image in the application. Ask the answer to identify each observation by A or B, and flag an unknown label before attaching the observation to a catalog row.

That check is deliberately narrow. A valid label does not prove the photo depicts the expected SKU, establish when it was taken, or make the finish description correct. A highlight can resemble a polished strip; a soft reflection can obscure a brushed texture. The prompt should leave room for uncertainty, and an important catalog change should still get visual review.

The implementation decision is to carry identity as explicit text beside each image in the CometAPI request—not to treat a filename as an identity channel or the model’s answer as catalog verification. The sources support that input design; they do not establish an accuracy improvement from a test run.