luisvent / gemini_ai_api

Node.js API to provide an easy interface for interacting with Google's Gemini AI API, setup to chat about an information context provided.

Home Page:https://chatai.lv-apps.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node.js API for Google Gemini AI API Communication

This Node.js API provides a seamless interface for interacting with Google's Gemini AI API, enabling developers to leverage powerful artificial intelligence capabilities in their applications.

It uses specific information context to chat about.

LIVE DEMO

Example Request

POST /
{
  "prompt" : "question about topic"
}

Example Response

{
  "status": "Success OK",
  "message": "AI Response",
  "data": {
    "prompt": "question asked",
    "response": "response from gemini"
  }
}

Installation

  1. Clone this repository:
git clone https://github.com/luisvent/gemini_ai_api.git
  1. Install dependencies:
npm install
  1. Config Project:
// set your configurations

// ./config/development.json

{
    "gemini_private_key": "<YOUR-GEMINI-API-KEY>",
    "server": {
    "host": "localhost",
        "port": 3930
},
    "environment": "development",
    "url": "http://localhost:3930/",
    "context": "<YOUR-CHAT-CONTEXT-INFORMATION>"
}
  1. Run project:
npm start

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Node.js API to provide an easy interface for interacting with Google's Gemini AI API, setup to chat about an information context provided.

https://chatai.lv-apps.com/

License:MIT License


Languages

Language:JavaScript 96.0%Language:Batchfile 1.8%Language:HTML 1.4%Language:CSS 0.9%