=== AI Auto Alt Text Generator === Contributors: connorbulmer Tags: alt text, accessibility, seo, images, ai Requires at least: 5.5 Tested up to: 6.8 Stable tag: 1.15 Requires PHP: 7.4 License: GPLv3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html Author URI: https://profiles.wordpress.org/connorbulmer Automatically generates alt text and image titles for your WordPress media uploads with GPT‑4o mini, improving accessibility and SEO. == Description == **AI Auto Alt Text Generator** is a lightweight, privacy-conscious plugin that uses OpenAI’s GPT-4o mini vision model to create meaningful, screen-reader-friendly alt text and SEO-friendly titles for your images. Whether you add a single image, bulk-process your library, or just want a one-click fix in the Media Library, the plugin handles it all – no manual effort required. This solution is far cheaper than many solutions due to cutting out the middle-person, but this does mean you need to bring your own OpenAI API key. ### ✨ Key features * **Automatic alt text on upload** – set-and-forget accessibility. * **Optional automatic image titles** – improve SEO with descriptive titles. * **One-click manual generation** – “Generate Alt Text & Title” button in Media Library. * **Bulk update tool** – batch-process existing images with rate-limit control. * **Prompt fine-tuning** – supply site-wide context and optionally include the image file name. * **Image size & detail control** – choose the resolution and level of visual detail sent. * **No extra servers** – data flows only between your site and OpenAI; nothing is stored off-site. ### 🧠 How it works 1. When an image is uploaded (or manually chosen), the plugin creates a temporary public URL for that image. 2. It sends the image – plus optional context such as the parent post title, your custom site context and the file name – to OpenAI’s *gpt-4o-mini* vision model. 3. GPT-4o returns a concise description. * Alt text is stored in WordPress’ native `_wp_attachment_image_alt` field. * (Optional) The returned title is stored as the attachment post title. 4. Nothing is cached or stored on OpenAI’s side; only the final strings live in your database. == Installation == 1. Upload the plugin folder to `/wp-content/plugins/ai-auto-alt-text-generator` **or** install via **Plugins → Add New**. 2. Activate the plugin. 3. Go to **Settings → Alt Text Generator**. 4. Enter your OpenAI API key, configure your preferences, and save. == Settings overview == * **OpenAI API Key** – Required to connect to GPT-4o. * **Image Size to Send** – Thumbnail, Medium, Large, or Full. * **Image Detail Quality** – ‘Low’ or ‘High’ detail snapshot. * **Site Context** – Optional free-form prompt guidance (brand voice, niche, etc.). * **Send Image File Name** – Include file name in prompt for extra context. * **Automatically Generate Title** – Add descriptive titles alongside alt text. == Frequently Asked Questions == = What data is sent to OpenAI? = The publicly accessible image URL, plus any optional context you enable: image file name, site-wide context, and the parent post/page title. = Does OpenAI store my images or text? = No. The OpenAI API returns a response and does not retain your data. The plugin itself stores only the generated alt text and title in your WordPress database. = Can I customise the prompt? = Yes – via **Settings → Alt Text Generator** you can add site context and choose whether to include the image’s file name or parent post title. = Which model do you use? = GPT-4o mini vision model (`gpt-4o-mini`) as of April 2025. == External services == This plugin connects to the **OpenAI API** to generate alt text and (optionally) image titles. * **Endpoint:** `https://api.openai.com/v1/chat/completions` * **When called:** * On image upload (automatic) * Via “Generate Alt Text & Title” button in Media Library (manual) * Via **Tools → Bulk Alt Text Update** (bulk) * **Data sent:** image URL, optional file name, optional site context, optional parent post title * **Terms:** * **Privacy:**