Your API key is stored securely only in your browser's local storage. It is never sent anywhere except directly to Google's Gemini API.
You can get a Gemini API key from Google AI Studio.