Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

AI Providers API

No security coverage Under active development 9 sites

Part of the AI ecosystem · 358 projects

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

Ask your assistant about AI Providers API

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
12
Tracked since
Mar 2026
Latest release
1 week ago
Releases (12 mo)
12 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-beta5 Pre-release 10–11 Nov 13, 2026
1.0.0-beta4 Pre-release 10–11 Oct 28, 2026
1.0.0-beta3 Pre-release 10–11 Oct 8, 2026
1.0.0-beta2 Pre-release 11 Oct 8, 2026
1.0.0-beta1 Pre-release 11 Oct 8, 2026
1.0.0-alpha7 Pre-release 11 Oct 7, 2026
1.0.0-alpha5 Pre-release 11 Oct 6, 2026
1.0.0-alpha4 Pre-release 11 Apr 14, 2026
1.0.0-alpha3 Pre-release 11 Apr 2, 2026
1.0.0-alpha2 Pre-release 11 Mar 31, 2026