How to read and describe images from PC instead of URL for chatgpt 4o

Hi, may i know how to read and describe images from PC instead of providing image URL for chatgpt 4o

You can search this forum with the magnifying glass. The keywords you can employ that are relevant are “vision” and “base64”.

If you are not running code locally, then the UI you design will have to include some file uploader to your server running code.

The API reference for chat completions and the vision guide will also show you how to send such a base64 image in a user message instead of a url. Just expand the messages-content-user section of the docs.