跳到内容

AI Auto Alt Text Generator

v2.0.1

Connor 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日
1 条评价需要 WordPress 5.5+已测试到 7.1.5PHP 7.4+

贡献者

截图

AI provider and model settings, a saved API key and English (UK) output on the demo site.
AI provider and model settings, a saved API key and English (UK) output on the demo site.
Bulk updater showing scan progress and the number of images regenerated in a demo media library.
Bulk updater showing scan progress and the number of images regenerated in a demo media library.
Media Library showing a cactus photo, the Generate Alt Text & Title button and sample alt text.
Media Library showing a cactus photo, the Generate Alt Text & Title button and sample alt text.
Image settings with page context, site guidance, file names, image size and embedded image delivery.
Image settings with page context, site guidance, file names, image size and embedded image delivery.
Integrations tab showing outgoing webhooks, WordPress Abilities API availability and developer hooks.
Integrations tab showing outgoing webhooks, WordPress Abilities API availability and developer hooks.

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

  1. 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.
  2. 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.
  3. 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.
  4. The alt text is saved to WordPress’ native _wp_attachment_image_alt field. 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 update stores 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_1234 are 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 is id => 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

Anthropic (Claude)

DeepSeek

If you configure a Webhook URL, generated alt text, titles and the image URL are also sent to that endpoint, which you control.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums