AI Alt Text Generator

Automatically generate descriptive alt text for your images using AI-powered image analysis. Improve accessibility for screen reader users and boost SEO without manually writing descriptions for every image.

Use Cases

  • Automatically add alt text to images as they’re uploaded
  • Bulk-generate alt text for existing images missing descriptions
  • Improve accessibility compliance (WCAG) without manual effort
  • Enhance image SEO with descriptive, relevant alt attributes

Why Alt Text Matters

Alt text (alternative text) serves critical purposes:

  • Accessibility: Screen readers read alt text aloud for visually impaired users
  • SEO: Search engines use alt text to understand image content
  • Fallback: Displays when images fail to load
  • Legal compliance: Many accessibility laws require alt text

How It Works

  1. Configure your AI provider and API key
  2. When you upload an image, the module sends it to the AI for analysis
  3. AI generates a descriptive caption based on image content
  4. The description is automatically saved as the image’s alt text
  5. You can review and edit the generated text if needed

Settings

SettingTypeDescription
Enable AI GenerationToggleUse AI vision models to generate alt text (requires API key)
AI ProviderSelectChoose between OpenAI or OpenRouter
Vision ModelSelectSelect a vision-enabled model for image analysis
API KeyTextYour API key for the selected provider
Custom PromptTextOptional custom instructions for the AI (leave empty for default)
Auto-generate on UploadToggleAutomatically generate alt text when images are uploaded

AI Providers

OpenAI

Direct access to OpenAI’s vision models:

  • GPT-4o — Best quality
  • GPT-4o-mini — Recommended (good balance of quality and cost)
  • GPT-4 Turbo — Legacy option

Get your API key from OpenAI Platform.

OpenRouter

Access multiple AI providers through a single API:

  • GPT-4o and GPT-4o-mini (OpenAI)
  • Claude 3.5/3.7/4.5 Sonnet, Claude 3 Opus, Claude 3 Haiku (Anthropic)
  • Gemini 1.5 Pro, Gemini 1.5 Flash, Gemini 2.5 Flash (Google)

Get your API key from OpenRouter.

Bulk Processing

For existing images without alt text:

  1. Go to the module settings in Switchboard
  2. Click Find Images Without Alt Text
  3. Review the number of images found
  4. Click Generate Alt Text for All
  5. Watch the progress as each image is processed
  6. Review the generated descriptions in the results table

Start with a small batch to verify the AI-generated descriptions meet your quality standards before processing your entire library.

Manual Generation

You can also generate alt text for individual images:

  1. Go to Media → Library
  2. Click on any image
  3. Look for the AI Alt Text section with a “Generate with AI” button
  4. Click the button to generate alt text
  5. The generated text appears and is saved to the alt text field

Fallback Behavior

If AI generation is disabled or fails, alt text is generated from the filename. For example, “beach-sunset-2024.jpg” becomes “Beach Sunset”.

Best Practices

When AI Works Best

  • Product photos with clear subjects
  • Landscape and nature images
  • Stock-style photos
  • Simple graphics and icons

When to Edit Manually

  • Images with specific context (e.g., “CEO Jane Smith” not just “woman in suit”)
  • Screenshots requiring explanation of what’s shown
  • Images integral to understanding content
  • Brand-specific terminology

Keep Alt Text Concise

Good alt text is:

  • Descriptive but brief (125 characters or less ideal)
  • Specific to content (what’s actually in the image)
  • Context-aware (relevant to surrounding content)

Avoid:

  • Starting with “Image of…” or “Picture of…”
  • Keyword stuffing for SEO
  • Describing decorative images (use empty alt="" instead)

Privacy and Processing

Image analysis is performed using external AI services. Consider:

  • Images are sent to external AI services for analysis
  • No images are stored after processing
  • Sensitive images may not be appropriate for automated analysis
  • Review your privacy policy if handling user-uploaded images

FAQ

Does this work with existing images?Yes. Use the bulk processing feature in the module settings to find and process existing images that don’t have alt text.
Will it overwrite my existing alt text?No. The module only generates alt text for images without existing descriptions. Existing alt text is preserved.
How accurate is the AI-generated text?AI-generated alt text is generally good for describing visual content but may miss context, proper nouns, or specific meanings. Always review important images.
Does this affect page load speed?No. Alt text generation happens during upload or when you run bulk processing, not when pages load.
What about localhost/development sites?The module automatically converts localhost images to base64 data URLs before sending to the AI, so it works on local development environments.
PRO

Get access to all 147 modules with a single license

Upgrade to Pro