API call for generating embeddings via Gemini Pro API. Google AI Studio and Google Cloud Platform Account required. Use Node v18.19.0
npm install @google/generative-ai fs nodemon dotenv
https://aistudio.google.com/app/apikey
.env
API_KEY= your api key goes here