ClawdrentClawdrent

How to Get Your Gemini API Key

Last Updated: 4/3/2026

Overview

Google's Gemini is a powerful multimodal AI model capable of understanding text, images, audio, and video. The Gemini API provides access to various models including Gemini 1.5 Pro and Gemini 1.5 Flash. Google AI Studio offers a generous free tier, making it easy to get started.

Step-by-Step Instructions

Step 1: Access Google AI Studio

Visit aistudio.google.com and sign in with your Google account. If you don't have a Google account, create one first.

Step 2: Accept Terms of Service

Review and accept the Google AI Studio terms of service when prompted. This is required to access the API key generation feature.

Step 3: Create an API Key

  • In Google AI Studio, look for the "Get API Key" button in the top navigation
  • Click "Create API Key"
  • Choose to create the key in an existing Google Cloud project or create a new project
  • For most users, "Create API key in new project" is the easiest option
  • Click "Create API Key"
  • Copy your API key immediately and store it securely

Step 4: Configure Your Project (Optional)

If you want more control over your API key or need to set quotas:

  • Visit the Google Cloud Console
  • Select your project
  • Navigate to APIs & Services → Credentials
  • You can add restrictions or create additional API keys here

Step 5: Store Your API Key Securely

Keep your API key private and never expose it in client-side code or public repositories.

# Store in environment variables

GOOGLE_API_KEY=AIza...

Free Tier Benefits

🎉 Great News! Google AI Studio offers a generous free tier:

  • 15 requests per minute (RPM)
  • 1 million tokens per minute (TPM)
  • 1,500 requests per day (RPD)
  • No credit card required for the free tier

Perfect for development, testing, and small-scale applications!

Important Notes

  • Pricing: The free tier is generous for most use cases. For higher limits, check Google AI pricing for paid options.
  • Model Options: Gemini 1.5 Flash is faster and cheaper, while Gemini 1.5 Pro offers better performance for complex tasks.
  • Multimodal Capabilities: Gemini can process text, images, audio, and video in the same request, making it unique among AI models.
  • Context Window: Gemini 1.5 Pro supports up to 2 million tokens of context, one of the largest available.
  • API Restrictions: You can add application or IP restrictions to your API key in the Google Cloud Console for enhanced security.

Available Models

Gemini 1.5 Pro

Best for complex reasoning tasks and large context windows.

Up to 2M token context

Gemini 1.5 Flash

Faster, more cost-effective. Great for most applications.

Up to 1M token context

Gemini Pro Vision

Specialized for multimodal tasks with image understanding.

Text + Image input

Text Embedding

Generate embeddings for semantic search and similarity tasks.

768-dimensional vectors

Helpful Resources

Ready to Deploy?

Once you have your Gemini API key, you can use it with Clawdrent to deploy your AI assistant instantly.

Deploy Now