A Flutter project that enables you to access the Gemini API from a Flutter application. This application already has an API Key embedded within it but a custom one can also be added if required. In order to use ChatGemini with your own API Key, you need to get an API Key from aistudio.google.com. Once you have the key, you can paste it in the profile section of the application and start writing prompts from within the application.
Screen.Recording.2024-03-02.at.1.45.50.PM.mov
To run this project we have to first create a .env file in the root directory
git clone https://github.com/darshmashru/ChatGemini.git
touch .env
Add Your Enviornment Variables
Parameter | Type | Description |
---|---|---|
GEMINI_API_KEY |
string |
Required. Your API key |
FIREBASE_WEB |
string |
Required. Your Firebase Web API key |
FIREBASE_IOS |
string |
Required. Your Firebase IOS API key |
FIREBASE_ANDROID |
string |
Required. Your Firebase Android API key |
FIREBASE_MACOS |
string |
Required. Your Firebase MACOS API key |
Your final file would look like
GEMINI_API_KEY = YOUR_API_KEY
FIREBASE_WEB = YOUR_API_KEY
FIREBASE_ANDROID = YOUR_API_KEY
FIREBASE_IOS = YOUR_API_KEY
FIREBASE_MACOS = YOUR_API_KEY
Finally , To Run The Application
Flutter Run