Error reference
Free LLM API errors, explained and fixed.
Each page quotes the exact error a provider returns, explains what causes it, shows the fix on the provider itself, and then shows how freelm handles it automatically by failing over to another free provider. Limits are third-party facts, so every page carries the date it was checked.
Provider
Google Gemini API
429 RESOURCE_EXHAUSTED
Gemini API 429 RESOURCE_EXHAUSTED: quota exceeded, and how to fix it
Gemini's 429 RESOURCE_EXHAUSTED means one model's quota ran out, usually the free daily cap. How to tell a daily cap from a per-minute burst, and fix each.
400 FAILED_PRECONDITION
Gemini: "User location is not supported for the API use"
Gemini rejects requests from unsupported regions with 400 FAILED_PRECONDITION. What decides the location, the traps (edge runtimes, IPv6), and the fixes.
400 API_KEY_INVALID
Gemini "API key not valid. Please pass a valid API key."
Gemini's 400 API_KEY_INVALID: a mistyped or unloaded key, AI Studio's new AQ. keys in old clients, or an unrestricted key Google now blocks. How to find which.
503 UNAVAILABLE
Gemini 503 "The model is overloaded" or "experiencing high demand"
Gemini's 503 UNAVAILABLE ('The model is overloaded', now 'experiencing high demand') is a temporary capacity limit on one model, not your key. How to handle it.
Provider
OpenRouter
429 free-models-per-day
OpenRouter "Rate limit exceeded: free-models-per-day" (and per-min)
OpenRouter's free models allow 20 requests a minute and 50 a day, or 1,000 after buying 10 credits. How to read the 429, when it resets, and the upstream case.
404 No endpoints found
OpenRouter "No endpoints found that support tool use"
OpenRouter returns 404 'No endpoints found' when no provider for the model supports your request: tools, images, or your privacy and guardrail settings. Fixes.
Provider