How to Create and Add Gemini API Key
How to Add Gemini API Key
Follow the steps below to create a Gemini API key and add it to SurgeGraph:
- Go to https://aistudio.google.com/apikey.
- Click on “Create API Key”.
- Click on the search bar and select “Gemini API” from the drop down menu.
- Click on “Create API key in existing project”.
- Copy the API key.
- Go to https://app.surgegraph.io/vertex/settings/organization/llm-provider-api-key.
- Under “Gemini API Key”, click “Add”.
- Paste your API key and click on “Update”.
How to Get Higher Rate Limits
In order to get higher rate limits with Gemini, you need to create a GCP (Google Cloud Platform) billing account.
Follow these steps:
1. Sign In & Go to Billing
- Log in to the Google Cloud Console with your Google Account: https://console.cloud.google.com/.
- Open the menu (☰) and click on “Billing”.
2. Create a Billing Account
- Click “Manage billing accounts”, then “Create account”.
3. Enter Basic Info
- Give your billing account a name.
- Select your Country (this sets your currency and payment options).
- Click “Continue”.
4. Add Payment Details
- Choose Account Type ('Individual' or 'Business' - this is permanent).
- Enter your name and address.
- Add your Payment Method (like a credit card or bank account).
5. Submit & Activate
- Review the details and click on “Submit and enable billing”. You might need to agree to the terms and conditions.
6. Link Your Projects
- Go back to Billing and find “My Projects”.
- For each project you want to use, link it to your new billing account by selecting the project and choosing “Change billing”.