
AI Auto Alt Text Generator
v2.0.1Connor Bulmer · 2025年8月7日 上架
Generate accessible alt text and image titles with OpenAI, Claude or DeepSeek, using page and product context.
- 正在使用
- 100+
- 评分
- 5.0 / 5
- 累计下载
- 5,230
- 最近更新
- 2026年11月10日
贡献者
截图





AI Auto Alt Text Generator writes meaningful, screen-reader-friendly alt text and SEO-friendly titles for your images. It works on upload, one image at a time from the Media Library, or in bulk.
Bring your own API key from OpenAI, Anthropic (Claude) or DeepSeek. You pay the provider directly, which is far cheaper than per-image subscription services.
✨ Key features
- Automatic alt text on upload: set-and-forget accessibility.
- Choice of provider and model:
- OpenAI GPT-6 Luna (default, the fastest and cheapest), GPT-6.1 Sol, GPT-5.6 Luna and GPT-5.6 Terra.
- Claude Haiku 5.5, Sonnet 5.5 and Opus 5.5.
- DeepSeek V4.1 Flash.
- Context-aware descriptions: the plugin finds where an image is used and passes on the page title, the nearest heading, the text around the image and its caption. For WooCommerce products it sends the product name, categories and short description, so alt text uses the right terms.
- Alt text and a title from one request: roughly half the cost and the wait of generating them separately.
- One-click generation: a “Generate Alt Text & Title” button in the Media Library.
- Bulk update tool: processes existing images in batches and replaces missing or filename-style alt text, while never overwriting genuine descriptions.
- Works on local, staging and private sites: images are embedded in the request by default, so they don’t need to be publicly reachable.
- Keys kept out of sight: API keys are masked once saved, or can be defined in
wp-config.php. - Multilingual output: English (US/UK) and more than 20 other languages.
- Developer-friendly: filters, actions, outgoing webhooks and a WordPress Abilities API ability.
🧭 Where to find things
- Settings Alt Text Generator: provider, model, keys and options.
- Tools Bulk Alt Text Update (also under Media): the bulk updater.
- Media Library: the “Generate Alt Text & Title” button on each image.
🧠 How it works
- When an image is uploaded, or you click generate, the plugin takes the image at your chosen size. Images over 2048 px or 4 MB are scaled down or compressed, and formats like AVIF are converted to WebP when your server can do it.
- It gathers short context. This is where the image is used and any WooCommerce product it belongs to, plus your site name, your optional site context and, if enabled, the file name.
- It sends the image and context to your chosen model in a single request. The model describes only what is visible, using the context to pick relevant terms.
- The alt text is saved to WordPress’ native
_wp_attachment_image_altfield. The title, when enabled, is saved as the attachment title.
Settings overview
- AI provider & Model: OpenAI, Anthropic (Claude) or DeepSeek, and one of that provider’s vision models.
- API keys: one per provider. Saved keys are never shown again. Leave a field blank to keep the saved key, or tick “Remove saved key” to delete it. (From WP-CLI,
wp option updatestores exactly what you give it.) - Output language: English (US) by default. Choose English (UK) for British spellings, or another language.
- Automatically generate image title: writes a title in the same request as the alt text.
- Use page context: sends a short summary of where the image is used, and of its WooCommerce product. On by default, and capped at about 600 characters.
- Site context: optional notes about your site, audience or brand voice.
- Send image file name: adds the file name as extra context. On by default for new installs; camera-style names such as
IMG_1234are never sent. Sites upgrading from 1.x keep their previous choice. - Image size to send: Thumbnail, Medium, Large (default) or Full.
- Image delivery: embed the image in the request (default), or send its public URL.
- Image detail quality: Low or High. This applies to OpenAI and DeepSeek only.
- Bulk batch size / delay: controls rate limits during bulk runs.
- Request timeout: 10–120 seconds. A timeout is retried once with a longer wait, and rate-limit or overload errors are retried once.
- Webhook URL & signing secret: optionally POST each result to your own endpoint.
Developers
The plugin is extensible via standard WordPress hooks, an outgoing webhook, and the WordPress Abilities API.
Filters
aatg_generate_on_upload( $generate, $attachment_id ): return false to stop automatic generation on upload.aatg_models( $models ): add or change the models offered. Each entry isid => array( 'provider' => 'openai'|'anthropic'|'deepseek', 'label' => …, 'tuning' => … ).aatg_alt_text_prompt( $instruction, $post_ID, $context ): customise the alt-text instruction.aatg_image_title_prompt( $instruction, $post_ID, $context ): customise the title instruction.aatg_image_context( $lines, $post_ID, $phase ): customise the context lines sent with an image.aatg_request_payload( $payload, $provider, $context ): customise the request body for any provider.aatg_openai_request_payload( $payload, $context, $messages ): customise the Chat Completions body for OpenAI and DeepSeek. Kept from 1.x.aatg_api_key( $key, $provider ): supply an API key from elsewhere.aatg_provider_endpoint( $url, $provider, $path ): route requests through a proxy or gateway.aatg_generated_alt_text( $alt_text, $post_ID ): filter alt text before it is saved.aatg_generated_title( $title, $post_ID ): filter the title before it is saved.aatg_is_low_quality_alt( $is_low, $alt, $post_ID ): control which existing alt text the bulk tool regenerates.aatg_webhook_payload( $payload, $post_ID, $result ): customise the outgoing webhook body.aatg_supported_image_extensions( $extensions ): formats sent as-is. The default is PNG, JPEG, GIF and WebP.aatg_max_image_bytes( $bytes ): the largest image sent to the provider (default 4 MB). Bigger images are compressed, then scaled down, until they fit.
Actions
aatg_after_alt_text_generated( $post_ID, $alt_text )aatg_after_title_generated( $post_ID, $title )aatg_after_generation( $post_ID, $result )
Outgoing webhook
Set a Webhook URL under Settings Integrations & Webhooks to receive a non-blocking JSON POST after each generation. If a signing secret is set, requests include an X-AATG-Signature: sha256=… header (an HMAC-SHA256 of the body) so your endpoint can verify authenticity.
WordPress Abilities API
On WordPress 6.9+ the plugin registers the ability ai-auto-alt-text/generate-alt-text (input: attachment_id), so WordPress core AI, agents, MCP servers and automation tools can generate alt text. The caller must be allowed to edit that image. Run it with wp_get_ability( 'ai-auto-alt-text/generate-alt-text' )->execute( array( 'attachment_id' => 123 ) ).
External services
This plugin sends images to one AI provider, the one you select under Settings Alt Text Generator, to generate alt text and (optionally) image titles. Nothing is sent until you add that provider’s API key.
When requests are made: when an image is uploaded, when you click “Generate Alt Text & Title” in the Media Library, when you run Tools Bulk Alt Text Update, and when another tool calls the plugin’s Abilities API ability.
Data sent: the image (an embedded copy at your chosen size, or its public URL if you choose URL delivery) and short text context. The context is the site name, your optional site context, the image file name (if enabled), and, with “Use page context” on, the title, nearest heading, surrounding text and caption of where the image is used, plus WooCommerce product name, categories and short description. Page context can come from draft, pending, scheduled and private posts as well as published ones, so turn “Use page context” off if that text must not leave your site.
OpenAI
- Endpoint:
https://api.openai.com/v1/chat/completions - Terms: https://openai.com/policies/terms-of-use
- Privacy: https://openai.com/policies/privacy-policy
Anthropic (Claude)
- Endpoint:
https://api.anthropic.com/v1/messages - Terms: https://www.anthropic.com/legal/commercial-terms
- Privacy: https://www.anthropic.com/legal/privacy
DeepSeek
- Endpoint:
https://api.deepseek.com/chat/completions - Terms: https://cdn.deepseek.com/policies/en-US/deepseek-open-platform-terms-of-service.html
- Privacy: https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html
If you configure a Webhook URL, generated alt text, titles and the image URL are also sent to that endpoint, which you control.