Learn how to integrate and optimize your Google Gemini API usage with Prompt Assistant, available on the Chrome Web Store.
- Visit Google AI Studio
- Sign in with your Google account
- Click "Create API key"
- Copy your API key (starts with "AIza...")
- Keep it secure - never share publicly
- Open the extension from Chrome toolbar
- Click the API key button in the header
- Paste your API key in the input field
- Click Save - your key is stored locally and securely
- Verify connection - you'll see a green checkmark when successful
- Endpoint:
/v1/models/gemini-2.0-flash:generateContent - Purpose: Generate contextual questions based on user input
- Input: Initial prompt description and selected category
- Output: 3-5 targeted questions to refine the prompt
- Endpoint:
/v1/models/gemini-2.0-flash:generateContent - Purpose: Analyze prompt quality and effectiveness
- Metrics: Clarity score, specificity rating, improvement suggestions
- Real-time: Instant feedback as you type
- Endpoint:
/v1/models/gemini-2.0-flash:generateContent - Purpose: Automatically enhance prompt structure and clarity
- Features: Grammar improvement, context enhancement, format optimization
- Languages: Support for 13+ languages
- Free Tier: 15 requests per minute
- Paid Tier: 300 requests per minute
- Daily Limit: 1,500 requests (free), 1M+ (paid)
- Batch operations: Combine multiple optimizations
- Caching: Previously analyzed prompts are cached locally
- Fallback mode: Basic features work without API key
- Token efficient: Optimized prompts to minimize token usage
- Local processing: Basic analysis works offline
- Smart caching: Reduces redundant API calls
- Local storage: API keys stored only in your browser
- No data collection: Your prompts are not stored on our servers
- Encrypted transmission: All API calls use HTTPS
- Privacy first: Google's AI Studio privacy policy applies
- Rotate keys: Change your API key periodically
- Monitor usage: Check your Google Cloud console regularly
- Limit scope: Use project-specific API keys when possible
- Access control: Restrict API key permissions to necessary services only
Authentication Errors
Error: API key not valid
- Verify key format (starts with "AIza...")
- Check if Gemini API is enabled in Google Cloud Console
- Ensure billing is set up for your Google Cloud project
Rate Limit Exceeded
Error: Quota exceeded
- Wait for rate limit reset (1 minute)
- Upgrade to paid tier for higher limits
- Use caching features to reduce API calls
Network Issues
Error: Failed to fetch
- Check internet connection
- Verify no firewall blocking Google APIs
- Try refreshing the extension
- Timeout: Adjust request timeout (default: 30 seconds)
- Retry logic: Automatic retry on temporary failures
- Fallback mode: Graceful degradation without API
- Request batching: Combine multiple operations
- Smart caching: Cache frequently used responses
- Compression: Minimize payload size
- Request count: Monitor daily API usage
- Response time: Track API performance
- Error rates: Identify and resolve issues
- Cost analysis: Optimize for budget efficiency
- API availability: Regular connectivity tests
- Key validation: Periodic authentication verification
- Performance metrics: Response time monitoring
For technical support, contact hexquant@gmail.com or visit x(twitter)