Add GEMINI_API_KEY to .env.local and restart the dev server. Get a key at aistudio.google.com/apikey.
GEMINI_API_KEY
.env.local