Project Level: Real-World
This project is designed for learners who know Python fundamentals and are learning to build real-world programs.
Project Description
For this project we will build an AI chatbot based on the Google’s Gemini AI which is similar to ChatGPT, but it is free to use.
The program consists of a simple command line interface where the user interacts with the AI. Here is an example of asking a question to the AI:
In tomorrows project, we will push things further and make a web app version of the AI using the Flask web framework.
Prerequisites
Required Libraries: google-generativeai
pip install google-generativeai
Required Files: No files are required, but you need an API key from Google AI Studio.
IDE: Use any IDE.
Danger Zone
The solution code is hidden behind the button below. Click to reveal it.
Happy Coding!
Daily Python Projects Team
Hi, although you say that use is free, I have read that when you get the Google API Key it gives you some free credits, but then charges for use, is this true?