API Key Errors During Generation
Table of Contents
Gemini API Errors
RESOURCE_EXHAUSTED / 429
Request quota exceeded. Fix: top up your quota in Google AI Studio or wait for the daily limit to reset. Switch to a paid Google AI tier.
API_KEY_INVALID
Invalid key. Fix: create a new key in Google AI Studio and update it in Account → My API Keys.
OpenAI API Errors
insufficient_quota
Balance exhausted. Fix: add billing at platform.openai.com (minimum $5). Without a balance, the API key does not work even if valid.
invalid_api_key
Invalid or revoked key. Fix: create a new key in the API Keys section at platform.openai.com.
OpenRouter API Errors (Longreads Only)
No credits / balance insufficient
OpenRouter account has no balance. Fix: add credits at openrouter.ai → Credits. Minimum top-up: $5.
Invalid API key
Invalid or revoked key. Fix: create a new key at openrouter.ai → Keys and update it in Account → My API Keys → OpenRouter API.
Rate limit exceeded
Request rate limit hit. Fix: wait 5–10 minutes and retry. If this happens repeatedly, check the rate limits on your key in the OpenRouter dashboard.
General: If Nothing Helps
Remove your personal key from settings — the system will automatically fall back to the system key. Contact Support if the problem persists with system keys.
In this section
Was this article helpful?