Get your Google / Gemini API key

Get your Gemini API key — free tier available, no credit card required

Google's Gemini API is accessed through Google AI Studio. No Google Cloud project or credit card is required for the free tier — just a Google account.

Key prefix:AIzaSy
Free tier available

Free tier: Gemini 2.5 Flash (10 RPM, 250 RPD), Flash-Lite (15 RPM, 1,000 RPD). No credit card required. Shared 250K tokens/min cap.

Available models on Mykey

Gemini 3.1 ProGemini 3 FlashGemini 3.5 FlashGemini 3.1 Flash-LiteGemini 2.5 Flash Lite

Step-by-step guide

1

Sign In to Google AI Studio

Access the API key page with your Google account.

  1. Go to https://aistudio.google.com/app/apikey
  2. Sign in with your Google account
  3. First-time users: Accept the Terms of Service (Google APIs Terms + Gemini API Additional Terms)
Google AI Studio dashboard showing the main interface
2

Create an API Key

Generate your key in AI Studio.

  1. Click "Create API key"
  2. Choose one of:
  3. • "Create API key in new project" — Google auto-creates a Cloud project and key (recommended)
  4. • "Create API key in existing project" — if you already have a Google Cloud project
  5. The key is generated and displayed immediately
Google AI Studio showing the Get API Key prompt for first-time users
3

Copy and Save Your Key

Your key is shown only once.

  1. Copy the key immediately — it starts with AIzaSy followed by 33 characters
  2. Example: AIzaSyDaGmWKa4JsXZ-HjGw7ISLn_3namBGewQe
  3. After dismissing the dialog, only the prefix is shown
  4. Store securely in a password manager
Google AI Studio Create API key screen with project selection options
4

(Optional) Set Up Billing for Higher Limits

Upgrade for access to all models and higher rate limits.

  1. Free tier: Gemini 2.5 Flash, 2.5 Flash-Lite, 3 Flash, and 3.1 Flash-Lite with reduced quotas
  2. Pro models (2.5 Pro, 3 Pro) require a paid billing account
  3. Enable billing on your Google Cloud project for higher rate limits and the full model catalog

Free tier usage data may be used to improve Google products. For production apps with sensitive data, use the paid tier.

5

Add Your Key to Mykey.chat

Connect your key in Mykey settings.

  1. In Mykey.chat, go to Settings → API Keys
  2. Select Google / Gemini as the provider
  3. Paste your API key
  4. Click Save

Key Restrictions (Recommended)

For security, restrict your Gemini API key to prevent unauthorized use:

  1. Go to https://console.cloud.google.com/apis/credentials
  2. Find your Gemini API key
  3. Click "Edit API key"
  4. Under "API restrictions", select "Restrict key"
  5. Choose "Generative Language API" from the dropdown
  6. Click "Save"

You can also restrict by IP address or HTTP referrer for extra security. Exposed keys may be blocked by Google.

Common issues

IssueFix
API key not foundEnsure the key starts with AIzaSy — no extra characters
Permission deniedKey may have been blocked due to exposure — create a new key and restrict it
Model not available on free tierPro models require billing — upgrade to paid tier
429 Quota exceededFree tier has reduced limits — wait for reset or enable billing

Frequently asked questions

Do I need a credit card for Google Gemini?

No. The free tier is included with every key and requires no billing. You only need a Google account.

Why is my Google Gemini key blocked?

Google proactively blocks API keys that have been publicly exposed. If your key is blocked, create a new one in Google AI Studio and restrict it to the Generative Language API in Google Cloud Console for security.

Ready to connect your Google / Gemini key?

Sign in to Mykey and paste your API key in Settings. It will be encrypted with AES-256 immediately.

Sign in to Mykey
Your keys are encrypted with AES-256 and never stored in plain text.