# Google Gemini API Configuration # ================================ # Primary: GEMINI_API_KEY (recommended) # Fallback: GOOGLE_API_KEY (also supported) # Get your API key: https://aistudio.google.com/apikey GEMINI_API_KEY=your_gemini_api_key_here # FAL API KEY FAL_KEY=your_api_key_here # Alternative (if you prefer the old name): # GOOGLE_API_KEY=your_google_api_key_here # ================================ # IMPORTANT: Paid Tier Setup # ================================ # The API tier (free vs. paid) is NOT configured in this file or code. # It's determined by your Google AI Studio billing settings. # # To enable PAID TIER with higher rate limits: # 1. Visit: https://aistudio.google.com/api-keys # 2. Click "Set up Billing" or "Upgrade" button # 3. Link a Google Cloud billing account # 4. Your API key will automatically use paid tier # # Paid Tier Benefits: # - Higher rate limits (1000+ RPM vs. 15 RPM) # - Context caching support # - Batch API access # - Data NOT used to improve Google products # - Priority support # # Documentation: https://ai.google.dev/gemini-api/docs/pricing # ================================ # ================================ # Vertex AI Configuration (Alternative to API Key) # ================================ # To use Vertex AI instead of direct Gemini API: # 1. Set use_vertex_ai: true in config.yaml # 2. Configure these environment variables # 3. Place service account JSON file in project root # # Required for Vertex AI: GOOGLE_CLOUD_PROJECT=your-project-id GOOGLE_CLOUD_LOCATION=us-central1 GOOGLE_APPLICATION_CREDENTIALS=google-credentials.json # # Service Account Setup: # 1. Go to: https://console.cloud.google.com/iam-admin/serviceaccounts # 2. Create service account with "Vertex AI User" role (roles/aiplatform.user) # 3. Create and download JSON key # 4. Save as "google-credentials.json" in project root # 5. IMPORTANT: Add to .gitignore to protect credentials # # Benefits of Vertex AI: # - Enterprise-grade security with service accounts # - Better quota management and rate limits # - Integration with GCP billing and monitoring # - Suitable for production deployments # - No API key exposure in logs # # Supported Locations: # - us-central1 (Iowa) # - us-east1 (South Carolina) # - us-west1 (Oregon) # - europe-west1 (Belgium) # - europe-west4 (Netherlands) # - asia-northeast1 (Tokyo) # - asia-southeast1 (Singapore) # - global (worldwide) # # Documentation: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini # ================================ # Optional: Application Settings LOG_LEVEL=INFO MAX_RETRIES=3