AI Image adds an image-generation button to Drupal’s CKEditor 5. It uses the
Drupal AI framework, so it does
not call model APIs or store provider credentials itself.
Use any configured Drupal AI provider that supports the
text_to_image operation. AI Image sends the prompt through Drupal
AI, saves the returned image as a permanent file, and inserts it into the
editor with accessible alt text.
Requirements
- Drupal 10.5+ or 11.2+
- CKEditor 5
- AI 1.4+
- A configured AI provider that supports
text_to_image
Provider credentials are configured by the provider module, commonly with
the Key module.
Installation and configuration
- Install and configure Drupal AI and a compatible text-to-image provider.
- Configure a default
text_to_imagemodel in Drupal AI, or select a model for each text format. - Enable AI Image for the text format’s CKEditor 5 configuration and add the AI Image toolbar button.
- Grant Generate AI images only to trusted content editors.
The module includes configurable per-user generation limits to help control
provider costs, a progress indicator, and browser-side cancellation.
Important: AI Image 2.x is a rewrite
AI Image 2.x is not backward compatible with the legacy 1.x module. It does
not migrate legacy configuration, direct OpenAI or Stable Diffusion connections,
routes, or JavaScript APIs.
Do not enable legacy and 2.x code together: they use the same machine name.
The legacy code line is unsupported.
Release status
2.0.0-alpha1 is the first testing release of the rewritten module. It has
been verified end-to-end with Drupal AI and OpenAI image generation. Please
report issues through the project issue queue.
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.
More in the AI ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 2.0.0-alpha2 | Pre-release | 10–11 | CI-validated second alpha of the Drupal AI-based CKEditor 5 image generator. | Sep 23, 2026 | |
| 2.0.x-dev | Dev | 10–11 | Оставьте включённым Show in project's download table when branch is supported и отметьте New features. | Sep 23, 2026 | |
| 2.0.0-alpha1 | Pre-release | 10–11 | New CKEditor 5 image generation through Drupal AI. This 2.x alpha replaces the unsupported legacy module and is not backward compatible. | Sep 23, 2026 |