Can't get the links of the images I uploaded via the API

I am trying to get the links of the images I sent to be scanned via the API and all I get back are invalid URLs to imgur website. I suppose these are the URLs openAI used when analyzing the images.

However, I want to scan & analyze multiple images and it would be extremely helpful to me if I can attach the URL to the each image after it’s analysis. This would help me in know which analysis is for which image.

[{'type': 'text', 'text': 'Perform analysis on each of these images. Attach the link for each image below their respective analysis.'}, {'type': 'image_url', 'image_url': {'url': 'https://cbglimg.b-cdn.net/p1920x0/product/EY7XRE/photo/jUOGIywTF/37D87EC2-D60B-4704-980A-B563F1688AFE.jpeg'}}, {'type': 'image_url', 'image_url': {'url': 'https://cbglimg.b-cdn.net/p1920x0/product/EY7XRE/photo/YOCBHhKLwF/9A857374-EB03-44A3-BA10-CBF1D9518B9F.jpeg'}}, {'type': 'image_url', 'image_url': {'url': 'https://cbglimg.b-cdn.net/p1920x0/product/EY7XRE/photo/qk65arEYj/5E6FB2F4-4240-4B8B-BAB1-4898B00D4C5B.jpeg'}}, {'type': 'image_url', 'image_url': {'url': 'https://cbglimg.b-cdn.net/p1920x0/product/EY7XRE/photo/0ChFVmKhcr/425077F9-624B-4A68-81F2-68874FB37C29.jpeg'}}, {'type': 'image_url', 'image_url': {'url': 'https://cbglimg.b-cdn.net/p1920x0/product/EY7XRE/photo/Iu5eTEM65/5F64563A-D545-41E5-A7E0-CA3A6A8DED52.jpeg'}}]
1 Like

The AI model cannot answer about the URL of images that are provided by a web url, nor can it know the file name of a base64 upload. It receives image contents.

That is information you would have to send yourself to inform the AI model if you want metadata answering or mapping.

The best method for that is: when creating a single multimodal message content for “user” role, to interweave individual images with text describing the image metadata. Text on the order of “The next image is 385252_temp.jpg”, or “Japanese Castle in Fall.jpg”.

2 Likes

I seem to not be able to directly send links to be analyzed. I have to input that using the image_url key. So something like this:

{
                    "type": "image_url",
                    "image_url": {
                        "url": link,
                    }
                }

Tried adding the links directly and got random analysis.