- Clone repo
https://github.com/tasiukwaplong/gemini-web-demo.git
- Create
env.js
file in root folder - Add the follwoing lines to the env.js file:
const API_KEY = 'YOUR LONG API KEY GOES HERE'
- Open any of the index files to test codes
Documentation on how to get API key: https://ai.google.dev/gemini-api/docs (https://ai.google.dev/gemini-api/docs)