Step-by-Step Guide: How to Get Your Free Gemini API Key
Google AI Studio provides a developer platform that lets you access Gemini models and generate an API key in under three minutes.
Step 1: Access Google AI Studio
-
Open your browser and go to aistudio.google.com.
-
Sign in with your Google account.
Step 2: Navigate to API Keys
-
In the left-hand sidebar menu, locate and click on Get API key.

Step 3: Generate Your New Key
-
Click the Create API key button.

-
Choose your preferred setup option:
-
Name your key
-
Choose an imported project

-
Step 4: Copy and Secure Your Key
-
Click Copy to save the generated token to your clipboard.
![]()