Pewit AI Media Toolkit
AI Media Toolkit scans your media library, generates and completes image metadata (ALT, title, caption, description) with OpenAI, renames files to SEO-friendly names while keeping the same attachment ID, and protects you with backups and one-click rollback before any destructive operation.
Fully functional and free
Every feature in this plugin is free and fully functional: bring your own API key (OpenAI, Anthropic Claude or Google Gemini), scan your whole media library, generate or complete metadata one at a time or in the background for the entire library, bulk SEO filename rename, automatic backups, rollback & recovery, duplicate/quality analysis, client audit export, email reports, Media Library bulk actions and white-label branding. Nothing is locked behind a license.
Optionally, you can subscribe to managed AI credits (so you don’t need your own API key) and priority support at https://pewitlabs.com/pricing/ — this is a paid external service, not a requirement to use the plugin.
AI metadata generation
- Generate ALT, title, caption and description from the image itself (vision model).
- Complete only the missing fields when some metadata already exists.
- Generation modes: Balanced, SEO, WCAG (accessibility-first).
- Multilingual: auto-detects language via WPML / Polylang / site locale, or forces a global language.
- Global website context field to steer tone and domain vocabulary.
- Configurable OpenAI model (default gpt-4o-mini) and API key test button.
Scanning & usage detection
- Smart scan of the whole library or only used images.
- Usage detection modes: Strict, Balanced, Debug.
- Detects usage in post content, featured images, WooCommerce galleries, Bricks, EtchWP and ACF fields.
- Filters: missing ALT, incomplete metadata, bad filename, supported only, skipped.
SEO filenames
- Build SEO filenames from product/page/post usage context.
- Rename existing files keeping the same attachment ID (references via ID stay intact).
- Replace a media file in place (keep ID), optional thumbnail regeneration and WooCommerce cache clear.
- Bulk SEO rename: only bad filenames, or all listed images.
Background queue
- Processes jobs in the background via WP-Cron.
- Configurable batch size and delay between batches.
- Pause, resume, stop and clear running jobs, with a live activity log.
Safety, backups & recovery
- Auto-backup before file changes, rename, replace and recovery operations.
- Snapshots of image files, attachment metadata and WooCommerce relations.
- One-click rollback of the last operation, manual snapshots, ZIP export.
- Emergency repair for broken / too-small product images after a bad rename.
Reports & notifications
- Duplicate and quality analysis with a media health score.
- CSV report export.
- Email notification when a background job finishes (basic / detailed / full).
External services
This plugin connects to third-party services to generate image metadata. Please review this before use.
You choose the AI provider in the plugin settings and use your own API key (BYOK). No data is sent to any provider until you trigger a generation. Requests go directly from your site to the selected provider under your own key and that provider’s terms. Nothing is sent to the plugin author.
OpenAI API (https://openai.com): * What and when: when you generate image metadata (vision), generate an image (DALL·E), or run a text task, the image data/URL and/or text prompt are sent to OpenAI to produce ALT text, title, caption, description or image output. * Data sent: the image data/URL, optional context text you configure, and the selected model name. * Terms: https://openai.com/policies/terms-of-use — Privacy: https://openai.com/policies/privacy-policy
Anthropic (Claude) API (https://www.anthropic.com): * What and when: only if you select Claude as the text provider — when you run a text generation task, your text prompt (and image data, for vision-capable models) is sent to Anthropic to produce the requested text. * Data sent: the text prompt, optional context text you configure, and the selected model name. * Terms: https://www.anthropic.com/legal/consumer-terms — Privacy: https://www.anthropic.com/legal/privacy
Google Gemini API (https://ai.google.dev): * What and when: only if you select Gemini as the text provider — when you run a text generation task, your text prompt (and image data, for vision-capable models) is sent to Google’s Generative Language API to produce the requested text. * Data sent: the text prompt, optional context text you configure, and the selected model name. * Terms: https://ai.google.dev/gemini-api/terms — Privacy: https://policies.google.com/privacy
Freemius (licensing & checkout — https://freemius.com): * What and when: used for license activation, updates and (for paid plans) checkout as Merchant of Record. Opt-in is optional. * Terms: https://freemius.com/terms/ — Privacy: https://freemius.com/privacy/
Source code
All JavaScript and CSS shipped in this plugin (in assets/js and assets/css) is the original, hand-written, human-readable source. Nothing is minified, compiled, transpiled or generated by a build tool, so no separate source files are required — what you read in the plugin is the source. The only bundled third-party library is the Freemius SDK (vendor/freemius), whose source is available at https://github.com/Freemius/wordpress-sdk