Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

AI Image

No security coverage Under active development 16 sites

Part of the AI ecosystem · 343 projects

AI Image adds a button to CKEditor 5 that allows users to generate images directly within the editor using a configured Drupal AI provider. It sends text prompts, saves the resulting images, and inserts them with accessible alt text.

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

  1. Install and configure Drupal AI and a compatible text-to-image provider.
  2. Configure a default text_to_image model in Drupal AI, or select a model for each text format.
  3. Enable AI Image for the text format’s CKEditor 5 configuration and add the AI Image toolbar button.
  4. 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.

AI assistance disclosure

The 2.x rewrite and refactoring, including automated tests, documentation,
and CI configuration, were created with assistance from GPT. The maintainer
reviewed and tested the implementation and remains responsible for the
module’s code, dependencies, security, and releases.

Release status

2.0.0-alpha2 is the current testing release of the rewritten module. It has been verified end-to-end with Drupal AI and OpenAI image generation, and its full GitLab CI pipeline passes. Please report issues through the project issue queue.

Ask your assistant about AI Image

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
5
Tracked since
Jun 2023
Latest release
2 weeks ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0-alpha2 Pre-release 10–11 Sep 23, 2026
2.0.x-dev Dev 10–11 Sep 23, 2026
2.0.0-alpha1 Pre-release 10–11 Sep 23, 2026
1.0.0-beta1 Pre-release 9–10 Aug 17, 2023
1.0.x-dev Dev 9–11 Jun 21, 2023