StudyStudio
Local Environment

Google Gemini

Add the Gemini API key that powers every AI feature

Google Gemini powers all of StudyStudio's AI: the tutor chat, source summaries, and every Studio tool (audio overviews, data tables, mind maps, reports, flashcards, and quizzes).

Get an API Key

Visit Google AI Studio and create an API key. The free tier is generous and fine for development.

Add the Key to .env.local

NEXT_PUBLIC_GOOGLE_GEMINI_API_KEY=your-gemini-api-key

Optionally set a server-side fallback key:

GOOGLE_GENERATIVE_AI_API_KEY=your-gemini-api-key

The public key is passed from the client into Convex actions for generation. If you keep the key private instead, set GOOGLE_GENERATIVE_AI_API_KEY in your Convex environment and the actions will fall back to it.

Restart the Dev Server

Restart pnpm dev so the new environment variables are loaded. The AI features will now work end to end.

On this page