Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

AI Media

No security coverage Under active development 358 sites

Part of the AI ecosystem · 358 projects

AI Media allows editors to generate various media types, including images, SVGs, videos, and documents, directly within the Media Library using AI prompts. You can describe your needs, review the AI-generated content, and then save it to your media library just like any other uploaded file.

Generate images and SVGs with AI right where editors already pick media: the Media Library. Each media type tab gets an Upload | ✦ Generate with AI switch. Describe what you need, review what the AI makes, with its name and alternative text already written, then save and select it like any upload.

AI Media documentation

Generating media, settings, SVG and animated SVG, providers, permissions, writing a generator and troubleshooting.

Generate with AI, right inside the Media Library

  • One tab per media type. Image, SVG Image and Video each start with an Upload | ✦ Generate with AI switch, with a New badge until it has been tried. Prefer separate tabs? One setting puts "Generate image with AI" right after Image, or after all the other tabs.
  • A tidy form. The description starts empty. Examples opens eight ready descriptions to start from, and an info button holds the AI disclosure: which provider makes it and what is sent.
  • Review before anything is saved. The name and the alternative text are written by AI from the generated image. The AI Image Alt Text button and Focal Point work on the result as on any upload. Generate again replaces it in place.
  • The same on the Add media page, and Content > Media has a Generate media with AI button.
  • Nothing reaches the library until you save. An unsaved result is a temporary file that cron removes.

What it can generate

  • Images (PNG, JPG, WebP) from a text-to-image model, saved as your Image media.
  • SVGs, static or animated (draw the strokes, CSS keyframes or SMIL), written by a chat model, sanitized and kept self-contained, saved as your SVG Image media.
  • Videos (MP4), experimental and off by default: a first frame from text to image, then an image-to-video provider.

Generated media are ordinary media of those types, so image styles, view modes, formatters and Insert Media in CKEditor 5 keep working.

Built on Drupal AI, not beside it

  • Providers come from the AI settings. AI Media uses the default provider and model the site sets for each operation, so switching to another provider, for example Gemini's image model, is one change in Drupal AI.
  • No AI rules of its own. Requests are tagged ai_media, so the site's guardrails, moderation, AI Prompts, AI Context, AI Logging and AI Observability all apply.

Animated SVG

The Animated SVG component, placeable in Canvas, and the Inline SVG (animated) display print an SVG inline and sanitized, start the motion when it scrolls into view, and show the finished drawing to people who prefer reduced motion. The included ai_media_svg_example recipe shows it right after install.

For developers

  • Each kind of media is an #[AiMediaGenerator] plugin: a new kind of generated media is a new plugin, not a fork.
  • Every setting can be applied from a recipe with config actions.

Requirements

Permissions and safety

  • Generating needs the Generate media with AI permission and create access for the media type, since every generation spends provider credit. Administer AI Media controls the settings.
  • SVGs keep only the svg element, are sanitized with remote references removed, and are refused unless they come out clean.
  • Editors get one plain sentence when generation fails; users with Administer AI also see the provider's message, with anything shaped like a key redacted.

Sponsored and developed by Vardot.

Ask your assistant about AI Media

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Oct 2026
Latest release
1 week ago
Releases (12 mo)
7 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-rc2 Pre-release 11 Nov 9, 2026
1.0.0-rc1 Pre-release 11 Nov 5, 2026
1.0.0-beta1 Pre-release 11 Oct 28, 2026
1.0.0-alpha3 Pre-release 11 Oct 27, 2026
1.0.0-alpha2 Pre-release 11 Oct 25, 2026
1.0.0-alpha1 Pre-release 11 Oct 24, 2026
1.0.x-dev Dev 11 Oct 18, 2026