# How to get a Gemini API key

Source: https://thinkbeside.com/learn/how-to-get-gemini-api-key

Updated 2026-11-20 - Sources checked 2026-11-20

**Short answer:** Open the API keys page in Google AI Studio and create a key. New users get a default Google Cloud project and key after accepting the terms. The free tier has limited model access, and Google says free-tier content is used to improve its products; the paid tier's is not. Restrict the key to the Gemini API.

## Create the key

Google AI Studio is where Gemini API keys are made. New users get a default Google Cloud project and an API key automatically once they accept the Terms of Service [s1].

- Open the API keys page in Google AI Studio and create a key, or view an existing one [s1].

- If you already use Google Cloud, import your projects from the Dashboard's Projects view and create the key for that project [s1].

- Every Gemini key belongs to a Google Cloud project, which handles billing, collaborators and permissions [s1].

- If the Create API key button is unavailable, you probably lack the IAM permissions. Ask an administrator for a role such as Project Editor [s1].

## Free tier and paid tier

Google lists a free tier with limited access to certain models and free input and output tokens, and a paid tier with higher rate limits, context caching, the Batch API and the most advanced models [s2]. On November 20, 2026, Gemini 3.8 Flash was on the free tier and Gemini 4 Argon needed the paid tier [s2].

The data terms differ. Google's pricing page says content on the free tier is used to improve Google's products, and content on the paid tier is not, for most models [s2]. Read the page for the exact model you use. Prices change, so check the page before relying on one.

## Keep the key safe

Google says to treat the key like a password and never commit it to source control, and not to embed it in client-side web or mobile apps. Unrestricted standard keys are rejected, so restrict yours to the Gemini API in AI Studio. Set billing alerts to catch unexpected cost. If a key leaks, create a replacement, deploy it, then disable the old key and review your usage [s1].

## Use the key in Thinkbeside

Open Settings in the Thinkbeside side panel, choose Google and paste the key. It is encrypted and kept in this browser, is never synced to your account, and is never given to web pages. Requests with it go from the panel straight to Google. See [an AI sidebar with every major model, including Gemini](/use/ai-sidebar-alternative).

## Sources

- s1: [Using Gemini API keys](https://aistudio.google.com/docs/api-key), Google, checked 2026-11-20

- s2: [Gemini API pricing](https://aistudio.google.com/docs/pricing), Google, checked 2026-11-20

## Is the Gemini API free?

There is a free tier with limited access to certain models, and a paid tier with higher limits [s2]. Which models and limits apply changes, so check Google's pricing page.

## Is my content used to train Gemini on the free tier?

Google's pricing page says free-tier content is used to improve its products for most models, and paid-tier content is not [s2]. Read the page for your model.

## Does the Gemini API work in every country?

Google lists the countries and territories where the Gemini API and AI Studio are offered on its available regions page. Check it for your location.

## What do I do if the key leaks?

Create a replacement key, update the apps that use it, then disable the old one and review billing and usage for anything you did not make [s1].

Your Gemini key, in a sidebar: [See how it works](https://thinkbeside.com/use/ai-sidebar-alternative)

