Automatic alt text generation with AI - Boost the accessibility of your images
Web accessibility is a major issue today. Yet many WordPress sites still neglect to add attributes alt on their images, penalizing both the user experience (especially for the visually impaired) and SEO.
That's why we developed the Generate Alt Text With AI in WPMasterToolKit to automate this often tedious task, generating high-quality image descriptions with the help of artificial intelligence.
Which plugins can this module replace?
This module can replace plugins such as :
- Auto Alternative Text,
- Alt Text Tools,
- Image SEO - AI-Driven Image SEO Optimizer
With WPMasterToolKit, there's no need to install multiple solutions: everything is integrated and optimized.
What does Generate Alt Text With AI do?
This module analyzes your images and automatically generates appropriate alt descriptions:
- when importing into the media library,
- on demand, frame by frame,
- or in bulk mode (mass generation) on all your existing images.
It is based on several well-known AI models, such as OpenAI, Gemini, Mistral or Claude. You can customize the prompt and language, guaranteeing descriptions tailored to your audience.
Benefits for your WordPress site
- Improved accessibility your images are understandable by screen readers.
- Boosted SEO Google values images with relevant alt attributes.
- Huge time savings no more manual frame-by-frame filling.
- Personalization Choose the AI model, language and refine the prompt to suit your needs.
Prerequisites for the operation of this module
Before configuring this module, you need to enter at least one API key compatible with the AI of your choice.
To do this, go to the WPMasterToolKit settings in the "Credentials" tab:
Then enter one or more API keys.
How to use this module
- Activate the module from within WPMasterToolKit.
- Go to the "Generate Alt Text With AI" settings.
- Select the desired AI model (OpenAI, Gemini, etc.).
- Set the language and personalize the prompt if required.
- Enable (or disable) automatic generation on import.
- For images already present, launch bulk mode with a single click.
- You can also generate alt text individually from the media library using the dedicated button.
Our technical choices
We have integrated :
- Fine AJAX-based management to start, stop and track mass generations.
- A WordPress cron (
wp_schedule_event
) triggered every minute to ensure smooth execution of bulk tasks. - Several embedded AI models, with a modular class system (OpenAI, Gemini, Mistral, Claude).
- Complete customization of the prompt, with multilingual management and consideration of the local context (
{{language}}
dynamically replaced). - A "generate only if alt field is empty" condition to avoid overwriting your manual descriptions.
WordPress actions and filters
We use :
wp_generate_attachment_metadata
(filter) to generate alt text on import.cron_schedules
(filter) to define task recurrence.- Custom AJAX actions :
wp_ajax_wpmtk_generate_alt_text_with_ai_start_bulk
wp_ajax_wpmtk_generate_alt_text_with_ai_stop_bulk
wp_ajax_wpmtk_generate_alt_text_with_ai_progress_bulk
wp_ajax_wpmtk_generate_alt_text_with_ai_start_single
These hooks allow developers to interface or customize the module's behavior.
Conclusion
The module Generate Alt Text With AI from WPMasterToolKit is a powerful ally for improving the accessibility and SEO of your WordPress site. Thanks to AI, you'll automate an essential task, reduce human error and deliver an inclusive, high-performance, SEO-friendly site. Try it out and see the difference!