How to make the model store base64 images and return urls?

Hi, i am trying to send an HTML page to gpt-4o and try to extract text and images from it. As some HTML pages are containing base64 images, i am having it hard to find out how to make the model store the image somewhere and return me the url instead of the base64 string?