Loading the Elevenlabs Text to Speech AudioNative Player...
December 1, 2025

How to Get Your Free Gemini API Key in 2026

Getting a Gemini API key takes about two minutes. 

Once you have it, you can connect Google's AI to automation tools like Zapier and Make, letting you automate prompts, generate content on demand, or build custom workflows that tap into Gemini's capabilities.

Here's how to set it up.

Step 1: Go to Google AI Studio

Navigate to aistudio.google.com and log in with your Google account.

The first time you access Google AI Studio, you'll see a terms and conditions modal. Check the box to accept the developer agreement and click Continue.

‍

Gemini API terms and conditions modal

‍

Note that the second checkbox asks you to consent to receive marketing materials, and does not need to be checked to start using the Gemini API. 

Step 2: Create your API key

Once you're in, you'll see several options on the home screen. You can prototype AI apps, chat with models, and monitor usage. 

‍

Several options in the Google AI Studio

‍

To create a new API key, click "Get API Key" in the bottom left of the screen. 

‍

Click "Get API Key" to view and create API keys

‍

You'll see a default API key ready to use. You can copy this key immediately and start using it if you’d like.

However, it’s generally best to create unique keys for each AI project so that you can easily track usage. 

To create a new key for a specific project, click "Create API Key" in the top right. 

‍

Click "Create API Key" in the top right to create a new key

‍

Give your key a descriptive name.

‍

Naming your Gemini API key

‍

Create a new Cloud project for your key or select an existing one. Then click "Create Key."

‍

Pick a project and create your key

‍

Your new API key will appear in the list. Click on the “Copy” icon to add it to your clipboard.

‍

Copy your API key

Step 3: Monitor usage and manage billing

When viewing your API keys, you can click on the bar graph icon to view usage statistics (or click on “Usage” in the left hand menu). 

‍

View usage for each key

‍

Monitoring becomes essential once you start using keys across multiple applications. You'll be able to see which key is being used where and how often, and you’ll be able to spot automations that might be running more than anticipated.

Gemini API billing

Google AI Studio offers a generous free tier that works well for testing automations. You can read more about its limitations here, but for most users experimenting with AI automation, the free plan is more than enough.

If you're running production scenarios with hundreds of API calls per minute or per hour, navigate to Settings in the bottom left, and select “Billing Support” to upgrade your plan.

‍

Navigate to billing support to start a paid plan

‍

What's next?

You now have a Gemini API key. Use it to connect Gemini to Zapier, Make, or any other platform that supports the Gemini API.

Need help building AI systems and automations? 

Visit hourly.xray.tech for expert support. 

Sign up for collaborative one-on-one sessions where you can learn while building your project. It's the fastest way to get your AI projects off the ground.

‍

Related Articles

View All Articles
AI
Tutorial

How to Connect ChatGPT to Google Drive (and Make It Ask Before It Edits)

AI
Tutorial

How to Stop ChatGPT, Claude, and Gemini From Training on Your Data

Your ChatGPT, Claude, and Gemini chats can be used to train the next model, even on paid plans. One setting in each app turns that off – and stops AI companies from holding onto your chats for years.
AI
Tutorial

How to Set Spend Limits in Claude Console

We'll show you how to set spending limits for your organization and individual workspaces in Claude Console. With a just a few clicks, you can stay in control of your Claude API billing.