HanaokaYuzu /
Gemini-API
✨ Reverse-engineered Python API for Google Gemini web app
Loading repository data…
daivagnaa / repository
A Gemini API powered AI chatbot made using Python and Streamlit Library
This project implements a sophisticated, conversational AI chatbot using Google's Gemini Pro model. The project features a beautiful, modern, and theme-aware web application built with Streamlit, providing real-time streaming responses for an interactive user experience.
Web Application: Gemini Ai Chatbot
Gemini-AI-Chatbot/
│
├── README.md # Project documentation
├── app.py # The main Streamlit web application
├── gemini_api.py # Helper module for Gemini API calls
├── requirements.txt # Python dependencies for deployment
├── .env # Environment variables (for local development)
└── .gitignore # Specifies files for Git to ignore
The project uses the Google Gemini 1.5 Flash Model via the official Google Generative AI API. This is a powerful, multimodal large language model capable of handling a wide range of conversational tasks, including:
The API key is sourced from Google AI Studio.
API Key Configuration
.env file for local development using python-dotenv.Streamlit UI Setup
Session State Management
st.session_state.User Input Handling
st.chat_input box.Streaming API Call
stream=True parameter.Displaying Response
st.write_stream to render the AI's response token-by-token as it arrives.gemini-1.5-flash or gemini-2.5-flash model for fast and intelligent responses.python-dotenv for local development and is compatible with Streamlit Secrets for secure deployment.Install the required Python packages:
pip install -r requirements.txt
git clone https://github.com/daivagnaa/Gemini-AI-Chatbot.git
cd Gemini-AI-Chatbot
.env file in the root directory and add your API key:
GEMINI_API_KEY="YOUR_API_KEY_HERE"
streamlit run app.py
gemini_api.py for clean and maintainable code.The application is designed for easy deployment on Streamlit Community Cloud.
.env file is in .gitignore and not pushed).GEMINI_API_KEY="YOUR_API_KEY_HERE"
Daivagna Parmar
This project is licensed under the MIT License. The responses generated by the AI are for informational purposes and should be used responsibly.
Contributions are welcome! Please feel free to submit a Pull Request or open an Issue for suggestions and improvements.
This project demonstrates how to build a feature-rich, production-ready AI application using the Gemini API and Streamlit, focusing on a high-quality user experience.
⭐ Star this repository if you found it helpful!
Selected from shared topics, language and repository description—not editorial ratings.
HanaokaYuzu /
✨ Reverse-engineered Python API for Google Gemini web app
Amm1rr /
Webchat to API
snowby666 /
👾 A Python API wrapper for Poe.com. With this, you will have free access to GPT-4, Claude, Llama, Gemini, Mistral and more! 🚀
Nya-Foundation /
NyaProxy acts like a smart, central manager for accessing various online services (APIs) – think AI tools (like OpenAI, Gemini, Anthropic), image generators, or almost any web service that uses access keys. It helps you use these services more reliably, efficiently, and securely.
CHATS-lab /
Verbalized Sampling, a training-free prompting strategy to mitigate mode collapse in LLMs by requesting responses with probabilities. Achieves 2-3x diversity improvement while maintaining quality. Model-agnostic framework with CLI/API for creative writing, synthetic data generation, and dialogue simulation.
aledipa /
Not just GPT4! Easy to use, Self-Hosted, Unlimited and Free WEB API of the latest A.I. like Gemini, DeepSeek, Claude and GPT