> For the complete documentation index, see [llms.txt](https://pad-media.gitbook.io/prompt-ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pad-media.gitbook.io/prompt-ai/installation.md).

# Installation

### Prerequisites <a href="#prerequisites" id="prerequisites"></a>

Make sure your system meets the minimum requirements:

1. ExpressionEngine 6 or 7
2. Your server must be running PHP 8.1+
3. You must have an account with [OpenAI](https://openai.com/).

### Installation Instructions <a href="#installation-instructions" id="installation-instructions"></a>

1. Place the prompt\_ai directory with all files inside to /system/user/addons directory.
2. Go to the add-ons section in your Control Panel and install Prompt AI.

### Configuration

Prompt AI uses [OpenAI](https://openai.com/). You must create an account with OpenAI and enter payment details, then [generate a secret key](https://platform.openai.com/api-keys).

Within the the <kbd>config.php</kbd> folder, which is found <kbd>/system/users/config/config.php</kbd> you need to enter your Secret Key. This is the only required config item.

`$config['openai_secret_key'] = 'sk-xxxxxx';`

You can also set which OpenAi model you would like to use. By default we use 'gpt-4o'.

`$config['gpt-model'] = 'gpt-4o';`
