Fixing Rate Limit Errors
Understand and resolve rate limit errors to ensure smooth operation of Gemini CLI within API quotas.
Understanding Rate Limits
Rate limits protect the Google AI API from overuse. Common limits include:
- • Requests per minute (RPM): Maximum API calls per minute
- • Tokens per minute (TPM): Maximum tokens processed per minute
- • Requests per day (RPD): Daily API call limit
Quick Fixes
1. Wait and Retry
The simplest solution is to wait a few minutes before retrying:
sleep 60 && gemini "your command here"
2. Use Smaller Prompts
Break large prompts into smaller chunks.