Configure Google Gemini

The Google Gemini API empowers you generate pages and content within PagibleAI. Google AI Studio offers a free tier for developers to experiment and integrate the API without initial costs, providing a limited number of requests and tokens per minute. For production-level applications or higher rate limits, you can transition to paid options via Google Cloud Platform.

1. Access Google AI Studio

Google AI Studio is the primary platform for easily obtaining a Gemini API key for development and testing.

Google AI Studio interface for Gemini API, showcasing various AI tools.

2. Create a Gemini API Key

Once you're logged in and have accepted the terms, generating your API key is straightforward.

  • Click "Get API Key": On the top-right corner or in the left sidebar, locate and click the "Get API Key" button.
  • Click "Create API Key": You will see an option to "Create API Key." Click this to proceed.
  • Select or create a project: Choose an existing Google Cloud project or create a new one when prompted.
  • Copy your API key: Once the key is generated, copy the displayed API key to your clipboard. Store it securely, as you will need it for your PagibleAI installation.
The Google AI Studio API Keys page displays a `curl` command example for testing the Gemini 2.0 Flash model to generate content using a provided API key. The image shows a user creating an API key for the Gemini API within the Google AI Studio interface, prompting them to select an existing Google Cloud project. Google AI Studio dashboard showing "API Keys" page with navigation, options to create/manage API keys, a quick test area, and a list of existing API keys for different projects.

3. Add to PagibleAI CMS

Once you have your Google Gemini API key, you need to add it to your PagibleAI environment configuration:

GEMINI_API_KEY="..."