/gemini-nodejs

NodeJS REST-API to interact with Google Gemini

Primary LanguageTypeScript

Google Gemini NodeJS .TS Api

This project includes the boilerplate to interact with Gemini from a basic rest-api made in Node.js with Express + Typescript.

Basic Requirements

  1. Install Node.js https://nodejs.org/en/download/
  2. Install TypeScript
npm install -g typescript
  1. Install required dependencies
npm install
  1. Get an Gemini API key: https://makersuite.google.com/app/apikey
  2. Update your .env file with your API_KEY

Build and Run

To build js from typescript source.

npm run build

To start the server from the compiled folder (/dist).

npm run start

Demo

Demo