Prerequisites
- A Google Cloud account
- Access to Google AI Studio or Google Cloud Console
Getting Started with Gemini
Option 1: Google AI Studio (Recommended for beginners)
- Visit Google AI Studio
- Sign in with your Google account
- Navigate to the “Get API key” section
- Click “Create API key”
- Copy your API key (starts with
AIza
)
Option 2: Google Cloud Console (For advanced users)
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the Gemini API:
- Go to “APIs & Services” > “Library”
- Search for “Gemini API”
- Click “Enable”
- Create credentials:
- Go to “APIs & Services” > “Credentials”
- Click “Create Credentials” > “API Key”
- Copy your API key
API Key Security
- Never share your API key publicly
- Store it securely in environment variables
- Use the key only in trusted applications
- Monitor your usage in Google Cloud Console
Setting Up in Jinba Flow
- Go to your workspace settings in Jinba Flow
- Navigate to the “Secret” section
- Find “Gemini” in the list of available credentials
- Click “Configure” or “Add New”
- Enter your Gemini credentials:
- API Key: Your Google AI Studio or Cloud Console API key
- Click “Save” to store your credentials
Available Models
Gemini Pro
- Best for: General text generation, analysis, and reasoning
- Use cases: Content creation, summarization, Q&A
Gemini Pro Vision
- Best for: Image analysis and multimodal tasks
- Use cases: Image description, visual analysis, document processing
Gemini Flash
- Best for: Fast, efficient text generation
- Use cases: Quick responses, real-time applications
Usage Examples
Once configured, you can use Gemini in your flows to:- Generate creative content and text
- Analyze and summarize documents
- Answer questions based on context
- Process and understand images
- Create structured data from unstructured text
- Translate content between languages