API Key
No key set. Running in local demo mode.
Chat
Ask anything to begin. Messages you send appear on the right; replies on the left.
Where the key goes in the source
View this page's source and search for PASTE_YOUR_API_KEY_HERE. The full integration lives in one CONFIG block:
// ============================================================ // API INTEGRATION CONFIG // >>> PUT YOUR API KEY ON THE LINE BELOW <<< // ============================================================ const CONFIG = { API_KEY: "PASTE_YOUR_API_KEY_HERE", API_URL: "https://api.example.com/v1/chat", // your endpoint MODEL: "default" };
Warning: any key placed in client-side code is visible to visitors. For production, proxy requests through a server. The built-in relay endpoint at ./ai is used automatically when no key is set.