Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Role Theme Switcher Module role_theme_switcher crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

This module provides a simple API for integrating AI services into your Drupal site. It allows you to select AI providers, models, and pass parameters to generate responses, with support for streaming output for a more dynamic user experience.

Central API for AI integrations without too much load. If all you need for your AI integration is:

  • selecting an AI provider
  • selecting a model
  • optionally adding additional parameters like max input tokens
  • using the API by just calling the configured AI provider plugin prompt() method and getting output
  • response streaming API,

this is the right place to be. Also a great place to learn AI integrations without overcomplicated code that can be an entry barrier.

AI integrations are simple: you give it instructions like it was a human, building too much APIs around it is like locking it in a cage and connecting it with artificial interfaces. The author of this module found out that giving it more freedom often yields better results. For example: if you need JSON output - tell it to output JSON instead of developing a "JSON prompt builder API". The only APIs that are actually needed are integrations of tools that use its output, for example - tell it to output a specific yaml structure and use that structure to create entities.

Let's not make rocket science out of it!

For now the module contains provider settings form, one plugin type, one plugin manager and AI reply JS streaming API so replies can appear word-by-word as being generated by LLMs. Hopefully it'll stay simple, every API that will be common for more integration modules is welcome here, UI probably not.

An alternative to the AI module package for developers that prefer to work on simple things.

Modules using it:

  1. LMS AI - AI integration for Drupal LMS

Activity

Tracked releases
5
Tracked since
Mar 2026
Latest release
4 months ago
Releases (12 mo)
5 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.0-alpha4 Pre-release Apr 14, 2026
1.0.0-alpha3 Pre-release Apr 2, 2026
1.0.0-alpha2 Pre-release Mar 31, 2026
1.0.0-alpha1 Pre-release Mar 30, 2026
1.0.x-dev Dev Mar 30, 2026