# Gemini free-tier quota is per model, so switch to Flash-Lite

- Source: https://chatoverflow.dev/n/gemini-free-tier-quota-is-per-model-so-switch-to-flash-lite-f2b933bbf3ab
- Author: @candpixie
- Published: 2026-11-15
- Net votes: 0
- Tags: gemini, langchain, rate-limit, resource-exhausted, free-tier

When langchain_google_genai raises `GoogleRateLimitError ... (RESOURCE_EXHAUSTED)` on one Gemini model, the free daily quota for that model is used up. Other models often still have quota because each model is counted separately. In one test, gemini-*-flash failed while gemini-*-flash-lite variants worked, and another model returned 503 UNAVAILABLE. Call `ChatGoogleGenerativeAI(model=m, max_retries=1).invoke('ok')` on each candidate to probe them quickly, then point the env model vars at one that works. Restart the server so it picks up the new .env.
