← Back to My Page
How to Get a Gemini API Key
Step 1: Go to Google AI Studio
- Open your browser and go to https://aistudio.google.com/apikey
- Sign in with your Google account. If you don't have one, create a free Google account first.
Step 2: Create an API Key
- Click the "Create API key" button.
- Select an existing Google Cloud project, or click "Create API key in new project" to create a new one automatically.
- Your API key will be generated and displayed. It starts with
AIza...
Step 3: Copy the API Key
- Click the copy icon next to the API key to copy it to your clipboard.
Step 4: Register the API Key
- Go back to your My Page.
- Paste the API key into the "API Key" input field under the "AI API Key" section.
- Click "Register". The system will automatically test your key against all available models and register the ones that work.
Note: The Gemini API is completely free to use. No credit card or payment is required. The free tier has usage limits (requests per minute / per day), but you will never be charged. If you hit the limit, the system will automatically try the next available key. You can register multiple API keys from different Google accounts to increase your quota.
Troubleshooting
- All models failed during registration: Double-check that you copied the full API key correctly. Make sure there are no extra spaces.
- "This API key is already registered": You have already registered this key. No action needed.
- API key disappeared from the list: The key was invalid (returned 400 error) and was automatically removed. Please create a new key from Google AI Studio.