Get a key at aistudio.google.com/apikey. It's stored only in this browser and sent straight to Google through this app's server — never saved on the server or shared.
Anyone using this browser profile can reveal a locally saved key. On a shared device, prefer built-in access.