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:

  1. Go to https://aistudio.google.com/apikey.
  2. Click on “Create API Key”.
  3. Click on the search bar and select “Gemini API” from the drop down menu.
  4. Click on “Create API key in existing project”.
  5. Copy the API key.
  6. Go to https://app.surgegraph.io/vertex/settings/organization/llm-provider-api-key.
  7. Under “Gemini API Key”, click “Add”.
  8. 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

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”.

Still need help? Contact Us Contact Us