-
-
Notifications
You must be signed in to change notification settings - Fork 0
API Key Setup Guide
This guide will walk you through getting and configuring your Google AI API key for CapMeToo.
CapMeToo uses Google's Gemini 2.0 Flash API to generate intelligent captions. The API key:
- 🆓 Is completely free for personal use
- 🔒 Stays on your device - never shared with anyone
- ⚡ Enables AI-powered caption generation
- 🌍 Supports multiple languages natively
-
Visit Google AI Studio
-
Sign In
- Use your Google account to sign in
- If you don't have one, create a free Google account
-
Create API Key
- Click "Create API Key"
- Choose "Create API key in new project" (recommended)
- Your API key will be generated instantly
-
Copy Your Key
- Click the copy button (📋) next to your API key
- Store it safely - you'll need it for CapMeToo
⚠️ Important: Keep your API key secure and never share it publicly!
-
Open CapMeToo
- Visit CapMeToo
- You'll see the API key setup screen
-
Enter Your API Key
- Paste your API key in the input field
- Click the eye icon (👁️) to verify it's correct
- Click "Start Using CapMeToo"
-
Verification
- CapMeToo will validate your API key
- If valid, you'll be taken to the main app
- If invalid, you'll see an error message
-
Open the Menu
- Click the hamburger menu (☰) in the top-right corner
-
API Key Section
- Find the "API Key" section in the sidebar
- Enter your new API key
- Click "Update Key"
Your current API key status is shown in the menu:
-
Current:
AIza****...****xyz
(masked for security) - Status: ✅ Valid / ❌ Invalid
- 🏠 Local Storage Only - Stored on your device, never sent to our servers
- 🔐 Encrypted Communication - All API calls use HTTPS encryption
- 👁️ No Tracking - We don't monitor your API usage
- 🗑️ Easy Removal - Delete anytime from the menu
-
Don't Share Your Key
- Never post your API key online
- Don't share it in screenshots
- Keep it private and secure
-
Monitor Usage
- Check your usage in Google AI Studio
- Set up usage alerts if needed
-
Regenerate if Compromised
- If you accidentally share your key, regenerate it immediately
- Update CapMeToo with the new key
Google AI provides generous free limits:
- 60 requests per minute
- 1,500 requests per day
- 1 million tokens per month
💡 Tip: Each caption generation typically uses 1 request and ~100-200 tokens.
Monitor your usage at:
- Google AI Studio Dashboard
- View daily/monthly usage statistics
- Set up alerts for high usage
- Rate Limiting: Wait a minute and try again
- Daily Limit: Wait until the next day (resets at midnight UTC)
- Monthly Limit: Consider upgrading to a paid plan
Possible Causes:
- API key copied incorrectly
- Extra spaces in the key
- Key has been revoked
Solutions:
- Double-check the API key for typos
- Copy the key again from Google AI Studio
- Generate a new API key if needed
Possible Causes:
- Network connectivity issues
- API rate limits exceeded
- Temporary Google AI service issues
Solutions:
- Check your internet connection
- Wait a minute and try again
- Check Google AI Status
Possible Causes:
- Daily or monthly limits reached
- Too many requests in a short time
Solutions:
- Wait for quota reset (daily: midnight UTC)
- Reduce request frequency
- Consider upgrading your Google AI plan
If you're still having issues:
- 🐛 Report Bug: Create an issue
- ❓ Ask Question: GitHub Discussions
- 📖 Check FAQ: Frequently Asked Questions
If you're migrating from other AI caption services:
- Get Google AI API Key (follow steps above)
- Update CapMeToo with new key
- Test Generation with a sample image
- Enjoy Better Results with Gemini 2.0 Flash!
Before changing API keys:
- Note your current caption style preferences
- Save any favorite generated captions
- Export any custom settings (if applicable)
For developers or heavy users:
- Create Multiple Projects in Google AI Studio
- Generate Separate Keys for different environments
- Switch Keys in CapMeToo as needed
For local development:
```bash
NEXT_PUBLIC_GEMINI_API_KEY=your_api_key_here ```
⚠️ Warning: Never commit API keys to version control!
- All icons and static assets (favicon.ico, icon.svg, PWA icons) must be in the
/Cap-Me-Too/
subfolder for GitHub Pages deployment. - Do not place deployment icons in the root or public/ folders.
- Example:
https://username.github.io/Cap-Me-Too/favicon.ico
is served fromout/Cap-Me-Too/favicon.ico
.
Once your API key is configured:
- Take your first steps - Generate your first caption
- Explore caption styles - Try all 9 styles
- Try different languages - Generate in 8 languages
- Install as PWA - Use like a native app
🎉 API Key Setup Complete!
Ready to generate amazing captions? Let's create your first caption!