Alt Text Generator Directus Extension
Generate SEO-optimized alt text for the images in your Directus file library, one at a time or in bulk
Alt Text Generator AI writes SEO-friendly alt text for your images with AI. The Directus extension brings that into the Directus Data Studio: a bulk screen for your whole file library, plus a button on every file page. This step-by-step guide shows how to install it and use it.
Better alt text helps your site's accessibility and image SEO, and saves hours of writing descriptions by hand.
Install the Extension
- In Directus, open Settings and then Marketplace
- Search for Alt Text Generator and install it
- Self-hosting without the Marketplace? Run
npm install directus-extension-alt-text-generatorin your project and restart Directus
💡Needs Directus 11. The extension is free. Alt text uses credits from your Alt Text Generator AI account.
npm install directus-extension-alt-text-generatorShow the Module in the Sidebar
- Open Settings and then Settings again
- Scroll to Module Bar
- Tick Alt Text Generator. It now appears in the left bar
💡Directus hides new modules until you turn them on. You can also open it any time at /admin/alt-text-generator.

Add Your API Key
- Create an account on AltTextGeneratorAI.com and copy your API key
- Open the Alt Text Generator module
- Paste the key and click Save. Your remaining credits show below it
- Choose the language of the alt text

Generate Alt Text for Many Images
- The module lists your images with thumbnails. Missing shows the ones without alt text
- Tick the images you want, or leave them all unticked
- Click Generate selected or Generate all missing. Each image uses 1 credit
- Edit any text you want to change, then click Save changes
💡The alt text is saved in each file's Description field. Images that already have a description are skipped unless you tick Overwrite.

Generate Alt Text for One Image
- In the module, click Add button to file pages once. You need admin access for this
- Open any file in the File Library
- Scroll to Generate Alt Text and click Generate alt text
- The text appears in Description. Save the file to keep it

Use the Alt Text on Your Site
- Read each file's description through the Directus API
- Use it as the image's
alttext in your front end
GET /files/<id>?fields=id,filename_download,description
<img src="https://your-directus.example.com/assets/<id>" alt="{description}" />Bulk Screen
A module in the Directus sidebar scans your file library, shows thumbnails and lists the images that are missing alt text.
Pick Your Images
Tick the images you want, or generate for every image that is missing alt text. Review and edit before you save.
Button on Every File
Open any file and click one button to write its alt text into the Description field.
131 Languages
Choose the language of the alt text, from English and Spanish to Zulu.
Free Credits
Sign up to get free credits and test alt text generation on your own files.
Free Extension
The extension costs nothing. You only use credits when you generate alt text.
Activate Your Extension
Install the extension, turn on the Alt Text Generator module in Settings, then paste your API key into the module.