This is a plugin for Lightroom Classic that generates alt text for photos using ChatGPT-4o and saves it to the caption field in the photo's metadata.
To use it:
- Clone this repo
 - Get an OpenAI API key at https://platform.openai.com/api-keys (make sure it has access to the 
gpt-4.1model) - Open Lightroom Classic, go to File > Plug-in Manager > Add, and select the 
lightroomalttextplugin.lrpluginfolder in this repo - Paste the OpenAI API key in the settings section, and click "done"
 - Select an image, go to Library > Plug-in Extras > Generate Alt Text with ChatGPT
 - Wait a few seconds, a message will let you know when the alt text has been generated
 - Inspect the alt text in the photo's metadata, and edit as needed