StudyStudio
Production Environment

Google Gemini

Production Gemini keys

Add your production Gemini keys to Vercel and your Convex environment:

NEXT_PUBLIC_GOOGLE_GEMINI_API_KEY=your-production-gemini-key
GOOGLE_GENERATIVE_AI_API_KEY=your-production-gemini-key

If you keep the key private, set only GOOGLE_GENERATIVE_AI_API_KEY in your Convex environment - the generation actions fall back to it and the public key is never exposed.