Note: On a live Hostinger domain, do not enter the key here! Put the key directly into your server's api.php script to protect it from public inspection.
Developer Hostinger Export Hub
Copy the updated clean PHP files below
Hostinger cPanel Deployment Steps:
Copy the Secure AJAX Controller (api.php) paste it inside a file named api.php in your public root directory alongside index.html.
Open your local api.php file, locate line 17: define('GEMINI_API_KEY', 'YOUR_GEMINI_API_KEY_HERE'); and replace the value with your actual Gemini API Key from Google AI Studio.
(Optional Database Step): If you want custom companions, create a MySQL database inside Hostinger cPanel, import amourai_schema.sql, write your credentials in config/Database.php, and you're fully done! If you skip this, the platform will automatically run in local Zero-DB fallback mode.