Category / Section
Connect to Gemini using an API key.
1 min read
-
Navigate to https://ai.google.dev/aistudio, then log in using your Google account.
- Agree to legal notice by Google.
- Navigate to https://aistudio.google.com/app/u/1/apikey; choose Create API Key in a new project if you don't have a Google Cloud Project already, or select from an existing project if you do.
- Click copy on the generated key. Important: Keep your API Key private. Please do not share it to avoid unauthorized use.
- On the Add-Ons, go to Settings --> API Key Settings. Paste the value, then click Save.
- In the API key you just generated, select "Set Up Billing" and follow the instructions until you finish. Important: You must upgrade to the Pay-as-You-Go tier since the Free tier has very low requests per minute (only 2-15 per minute). See more about the latest limits here: https://ai.google.dev/gemini-api/docs/models/gemini