Gemini API AI Chatbot, Your Style
Discover how the Gemini AI chatbot can be styled. Each section highlights a unique implementation, complete with dark and light mode previews.
Tailwind CSS Chatbot
A sleek and highly customizable UI, built efficiently with Tailwind CSS utility classes. It offers rapid development and a modern, consistent design.

Pure CSS Chatbot
A lightweight and highly controlled implementation, crafted with custom CSS. This version prioritizes minimal external dependencies and offers complete styling flexibility.

Bootstrap 5 Chatbot
A robust and responsive interface, leveraging Bootstrap 5's comprehensive components and utility classes for a familiar and accessible user experience.

How to Run These Chatbots
To get any of these Gemini chatbot UIs up and running, follow these simple steps:
- Clone Repo & Open index.html:
- Clone Repo from https://github.com/rakeshdalvi25/gemini-api-chatbot
- Then, open the
index.html
file in your web browser.
- Get an API Key:
- Go to Google AI Studio.
- Create a new API key.
- Insert API Key:
- Open the HTML file of the specific chatbot UI you want to run (e.g.,
csschatbot.html
,tailwindchatbot.html
,bootstrapchatbot.html
) in a text editor. - Locate the JavaScript section (usually at the bottom of the
<body>
or in a linked.js
file). - Find the
const API_KEY = "";
line and paste your newly generated API key between the double quotes.
- Open the HTML file of the specific chatbot UI you want to run (e.g.,
- Save and Open:
- Save the HTML file.
- Open the HTML file directly in your web browser.
- Start Chatting!
- The chatbot should now be functional. If the API key is still missing or incorrect, an instructional message will appear in the chat.
For production environments, consider securing your API key using server-side proxies or environment variables to prevent direct exposure in client-side code.