AI image and SVG generation for Varbase, in one step. This recipe sets up the AI Media module so editors generate images and SVGs right from the Media Library: the Image and SVG Image tabs each start with an Upload | ✦ Generate with AI switch.
What the recipe sets up
Generated media go into your existing media types: images into Image, SVGs into SVG Image. No extra media types, so image styles, view modes, Featured image fields and Insert Media keep working.
SVG Image in Insert Media for the Full HTML text format.
Permissions for Content editor, Content admin and Site admin: generate media with AI, and create Image and SVG Image media.
No custom PHP or shell code: only modules and config actions.
What editors get, with AI Media 1.0.0-beta1
A tidy form: an empty description, Examples to start from, and the AI disclosure behind an info button.
Name and alternative text written by AI from the generated image, with the AI Image Alt Text button and Focal Point working on the result.
Static or animated SVGs, sanitized, and the Animated SVG component for Canvas.
Nothing saved until the editor reviews and saves.
Requirements
Drupal 11.4 or later and AI Media 1.0.0-beta1 or later (installed by Composer).
Default AI providers in Drupal AI settings for text to image (images) and chat (SVGs). Varbase AI Base requires the Gemini and ElevenLabs providers, so Gemini's image model is one setting away.
Makes a site easier for AI tools to read. It serves /llms.txt, built from the site name, slogan, main menu and footer menu, and a Markdown version of every content item and taxonomy term, at the page path plus .md or for a request sent with Accept: text/markdown. The HTML pages do not change.
Lets external AI assistants read the site and draft blog posts and pages over the Model Context Protocol: an MCP server at /mcp, protected with OAuth 2.1, with eight read tools and four draft tools. Nothing it writes is published; publishing stays a human action in Drupal.
Gives editors a content operations assistant in the admin toolbar. Editors ask in their own words, and it audits, reports on and updates the site's content: pages with broken internal links or missing alt text, articles with no meta description and a draft for each, unused content types and near-duplicate tags, recent and stale drafts, or a name to replace across articles.
Adds scored AI review of any content item for editors, with AI Content Review. An editor opens the Review tab of a content item and runs a review: each criterion comes back with a 0 to 100 score, a pass, warning or fail verdict, an explanation and suggestions.