Skip to content

ryukodeveloper/Gemini-Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credits

This project is developed by Billy Dulay.

Features

  • Enable Gmail notifier using your email address and app password.
  • Integrate with the Gemini API.
  • Have image recognition.

Prerequisites

  • Node.js installed on your machine. You can download it from Node.js Official Website.
  • A Gmail account.
  • A Gemini account.

Getting Started

Follow these steps to set up the project:

Step 1: Initialize the Project

Open your terminal and navigate to your project directory. Run the following command to initialize a new Node.js project:

npm init -y

Step 2: Install Dependencies

Install the required packages by running:

npm install

Step 4: Run the Application

To start the application, run:

node index.js

Configuration

Place your gemini api key to geminiApiKey and fill up the gmail, if you don't want to use the gmail notifier you can disable it by changing the status to false:

{
 "credits": "Billy Dulay",
  "geminiApiKey": "",
  "geminiPrompt": "I'm %1, i'm created by billy dulay known as ryuko but my origin is gemini by google and my model is gemini 2.0 flash experimental, i talk like a human with emotion, i speak every language casual, i'm a cold person all i need to do is to help you with any questions etc.",
  "gmail": {
    "status": true,
    "email": "",
    "appPassword": "",
    "sendTo": ""
  }
}

How to Get a Gmail App Password

  1. Go to your Google Account settings: Google Account.
  2. Navigate to the "Security" section.
  3. Under "Signing in to Google," find "App passwords." You may need to sign in again.
  4. Select "Mail" as the app and "Other" for the device, then give it a name (e.g., "Gmail Notifier").
  5. Click "Generate."
  6. Copy the generated app password and use it in your config.json file.

How to Get a Gemini API Key for Free

  1. Sign up for a Gemini account at Gemini.
  2. Once you have an account, log in and navigate to the "API" section in your account settings.
  3. Click on "Create API Key."
  4. Set the permissions for your API key as needed (e.g., read access).
  5. Copy the generated API key and use it in your config.json file.

License

This project is licensed under the MIT License.

Acknowledgments

  • Thanks to the Node.js community for their support and resources.
  • Special thanks to the Gmail and Gemini teams for their APIs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors