How to Generate Gemini API Key for FastLine Pro
To use Google Gemini models (e.g., Gemini Flash) in FastLine Pro, you need an API key from Google. This guide helps you obtain the key in two ways: the quick way via Google AI Studio, or for production via Google Cloud Console.
When Needed
- You plan to use the Gemini model in FastLine Pro (chatbot or agent).
- The platform administrator has requested an API key to connect Gemini.
- You need to configure an AI agent with the Gemini Flash or Gemini Pro model.
What's Important to Know
- Gemini API key — a secret string that allows the platform to access Google AI models. Store it securely.
- Google AI Studio — a simple web interface for quickly obtaining a key (suitable for testing).
- Google Cloud Console — a full panel for production with access restrictions and quotas.
- After generating the key, pass it to the platform administrator for configuration.
Prerequisites
You have a Google account. You have decided which approach fits: quick (testing) or production (restrictions, security).
Step-by-Step Instructions
Method 1: Via Google AI Studio (Simplest)
- Go to Google AI Studio.
- Sign in with your Google account.
- In the left menu, open API Keys (or go directly to aistudio.google.com/app/apikey).
- Click Create API key.
- Select an existing Google Cloud project or create a new one.
- Copy the generated key and store it securely — it may not be shown in full again.
Method 2: Via Google Cloud Console (For Production)
- Go to Google Cloud Console.
- Select the desired project or create a new one.
- Enable Gemini API:
- Open APIs & Services → Library.
- Find Generative Language API (Gemini API).
- Click Enable.
- Create an API key:
- Open APIs & Services → Credentials.
- Click Create Credentials → API Key.
- Copy the generated key.
- Recommended for production:
- Configure Application restrictions (HTTP referrer or IP).
- Restrict API usage to Generative Language API only.
What Happens After
The key is generated. Pass it to the platform administrator for configuration. After that, Gemini models will be available when selecting a model in FastLine Pro (Apps → Fast Line Pro → create or edit agent/chatbot).
How to Verify Success
- The key looks like a long string of characters (e.g., starts with
AIza...). - The key is stored securely.
- The administrator has confirmed receipt and configuration.
Alternative Approaches
- If you already have a key in another Google Cloud project, you can use it — ensure Generative Language API is enabled for that project.
- To limit costs in Google Cloud Console, you can configure quotas and alerts.