Drupal is a registered trademark of Dries Buytaert

ai_api

No security coverage
View on drupal.org

An API for Drupal's AI

What

This module exposes the AI providers and models via simple REST API's so that you can use them in your frontend systems. This way you don't have to build all the different AI- API integrations yourself. If you switch the AI model in the backend, you don't even need to change any code, everything will just keep working.

If you just want a secure, but usable proxy then this is the module for you.
It will make it possible to create an access profile (currently for chat only),
where you can get an OpenAI compatible API or build your own API rules, but that can interact with any provider or model, that you choose.

Why

Not everyone is a backend developer and not everyone wants to setup a lot of
custom code just to expose the AI modules capabilities.

How

Since each access profile is its own config entity, it is shippable inside the
config/install directory, so your own module can have a direct connection to
an provider, but without the hassle of coding it up yourself.

Activity

Total releases
1
First release
Feb 2025
Latest release
1 year ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
1.0.x-dev Dev Feb 9, 2025