Skip to content

A Flutter project that enables you to access the Gemini API from a Flutter application.

Notifications You must be signed in to change notification settings

darshmashru/ChatGemini

Repository files navigation

ChatGemini

Introduction :-

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.

Demo

Screen.Recording.2024-03-02.at.1.45.50.PM.mov

Deployment

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

Screenshots

Screenshot 1 Screenshot 2
Screenshot 3 Screenshot 4

Authors

About

A Flutter project that enables you to access the Gemini API from a Flutter application.

Resources

Stars

Watchers

Forks

Packages

No packages published