How to configure Open AI in Drupal AI Ecosystem

Here we are discussing about how to configure Open AI key in your Drupal instances so that all other modules and your custom code can use Open AI as a default AI provider.

Hope you have installed AI module https://www.drupal.org/project/ai

Enable AI core module.

Make sure you have generated Open AI API key in https://platform.openai.com/

Install Open AI Provider – https://www.drupal.org/project/ai_provider_openai

Enable key module.

Navigate to /admin/config/system/keys  and click on Add key. Provide below details.


Provide any Key name and select other default dropdowns.

Key value is your Open API key.

Click Save button.

No Navigate to  admin/config/ai/providers

Click Open AI Authentication you can see option to select Open API Key. where you can see the key name you created earlier.


Click save configuration.

Now your AI modules or your custom code automatically take this during any implementation with Open AI.

Get Free E-book
Get a free Ebook on Drupal 8 -theme tutorial
I agree to have my personal information transfered to MailChimp ( more information )

You may also like...