Shaper LogoShaper
🔑

How to Get Your Gemini API Key

TutorialDecember 18, 20254 min read

Shaper includes free access to basic AI models like ChatGPT-5 Nano and Deep Seek R1 through Pollinations. However, premium models let you do more complex tasks, faster and better, such as making complex website changes and building custom apps and extensions.

To use premium AI models in Shaper, you'll need to add an API key from your provider. This guide walks you through creating a Google Gemini API key and integrating it into Shaper.

Getting Started

  1. Open Google AI Studio Visit Google AI Studio and log in using an existing Google account or sign up for a new account.

    Tip: Use the same Google account you prefer for development or AI projects to keep everything organized.

  2. Navigate to API Keys Once logged in, look for "Get API key" in the left sidebar. Click on it to access the API key management page, or visit the direct link: https://aistudio.google.com/api-keys

    Google AI Studio Settings

Creating Your API Key

  1. Generate your API key Click the "Create API key" button in the top right corner. You'll be prompted to name your key and select a Google Cloud project or create a new one.

    Google AI Studio Create API Key Button

    Options:

    • Create API key in new project - Recommended for first-time users. This automatically sets up everything you need.
    • Create API key in existing project - If you already have a Google Cloud project you want to use.

    Tip: Use a descriptive name for your key and project that helps you remember where this key is being used.

    Google AI Studio Create API Key Modal

  2. Save your API key securely Your unique API key will be displayed immediately after creation. Copy this key by selecting the "Copy API Key" button and store it in a secure place like a password manager.

    Important: While you can view this key again later in Google AI Studio, it's best practice to save it securely right away.

    Google AI Studio Copy API Key

  3. Setting up Billing Gemini API comes with a generous free tier and does not require a credit card to start using. However, if you'd like to access their latest models and higher usage limits, you can set up billing for your API key.

    1. Visit Google Cloud Console
    2. Select your project and navigate to "Billing"
    3. Set up a billing account and enable the Gemini API
    4. Configure usage limits and budgets to control costs

    Tip: Set up budget alerts to avoid unexpected charges.

Connecting to Shaper

  1. Open the Shaper chrome extension.

  2. Navigate to Settings Tap the gear (⚙️) icon in the top navigation bar to access Settings. Find the "AI Provider" section.

  3. Add your Gemini API key Select "Google Gemini" as your AI provider. Paste the API key you saved in step 4 into the "Google Gemini API Key" field. Select "Test API Key" to ensure your key is valid and working.

  4. Select your preferred model You can explore Gemini models and compare their capabilities on their official website https://ai.google.dev/gemini-api/docs/models.

What Happens Next

Shaper is now connected to OpenAI! You can now:

  • Make complex website modifications that need longer context windows.
  • Build complex custom apps and extensions.
  • Pass long articles and web content to AI in chat.

Troubleshooting Common Issues

Key not working? Double-check that you copied the entire key without any extra spaces or characters.

Errors while using Shaper? Ensure you have sufficient credits and your payment method is valid in your OpenAI account.

Connection failed? Try removing and re-adding the API key in settings.

If you continue to experience issues, reach out to us here and we'll be happy to help.