Fix "Provider returned error", 429 and other API errors in SillyTavern
Short answer: SillyTavern doesn't run the AI. These errors come from the service you connected, usually OpenRouter, or from the company behind the model you picked (OpenRouter calls it the provider). Most are temporary or a limit: retry once, then switch models, then check your credits and your free-model limits.
What the error means, and what to do
The codes come from OpenRouter's errors documentation. SillyTavern's pop-up usually shows the message, not the number; the number often appears in the console window where SillyTavern runs.
| You see | OpenRouter says | Do this |
|---|---|---|
| "Provider returned error" | The provider failed the request; one documented type is that it "returned an invalid or empty response" | Retry once; if it repeats, pick another model |
| 429, "Too Many Requests" | "You are being rate limited" | See free-model limits below: wait, switch model, or lift the cap |
| 401 | "Invalid credentials (OAuth session expired, disabled/invalid API key)" | Click Authorize again in API Connections, or paste a fresh key |
| 402 | "Your account or API key has insufficient credits" | Add credits, or raise the credit limit on your key |
| 403 | "Forbidden (insufficient permissions, guardrail block, or moderation flag)" | The request was refused or flagged, or your own OpenRouter settings blocked it; check them, or try another model |
| 408 | "Your request timed out" | Retry; lower Context Size or the response length |
| 500, "Internal Server Error" | "An unexpected internal error"; the provider's own message is hidden on this one | Retry once; if it repeats, pick another model |
| 502 | "Your chosen model is down or we received an invalid response from it" | Retry later or switch models |
| 503 | "There is no available model provider that meets your routing requirements" | Loosen any provider choices you made, or pick another model |
Fixes, quickest first
- Retry once. Many provider errors are momentary. Don't hammer Regenerate: on free models every attempt is a request against your daily limit.
- Switch to a similar model. In API Connections, pick another model; OpenRouter's models page lists the alternatives and their prices.
- Check your key and credits (401, 402): authorize again, add credits, or raise the key's limit.
- Make the request smaller (408): lower Context Size (tokens) or Max Response Length (tokens) in the AI Response Configuration panel (the sliders icon in the top bar).
- Loosen provider choices (503): if you picked providers for a model, allow more of them.
How far OpenRouter's free models go
Free model variants have an ID ending in :free. As of 10 Nov 2026 OpenRouter listed 13 of them, plus a
Free Models Router (openrouter/free) that "selects free models at random". Their limits, from
OpenRouter's limits page:
| Credits you've bought (all time) | Requests per minute | Requests per day |
|---|---|---|
| Less than $10 | 20 | 50 |
| At least $10 | 20 | 1,000 |
- Every swipe and regenerate is another request. Swiping through five replies costs five.
- The day is a UTC day: OpenRouter counts "free-model requests recorded so far in the current UTC day".
- Out of free requests? Wait for the next UTC day, buy $10 of credits once (SillyTavern's docs: "To get permanent access to free models with a generous daily limit, you need to buy at least $10 in credits once"), or use the paid version of the model, which OpenRouter says "has no platform-level request cap".
When you're on a paid model and still get 429
Then the provider behind the model is busy. Try again in a minute or two, pick a similar model, or avoid the busiest
hours for very popular new models. When a retry time is known, OpenRouter sends a Retry-After header;
SillyTavern doesn't show it, so just wait.
When a reply stops halfway with an error
OpenRouter answers "200 OK" as soon as the provider accepts the request, so a failure after that is reported inside the reply instead, and it doesn't switch to another provider once part of the answer has reached you. Regenerate the message.
Running SillyTavern with us? SillyTavernOnline has a built-in OpenRouter sign-in: our add-on keeps your key in your browser, not on our servers. You connect your own model and pay your provider directly; we don't resell tokens. See plans
How we checked
On 10 Nov 2026 we took the error codes, limits and mid-reply behaviour from OpenRouter's documentation, counted the free variants in OpenRouter's public models list, and checked the button and setting names against SillyTavern 1.19.0. On 24 Nov 2026 we read OpenRouter's errors page again: the wording quoted in the table is unchanged, and we added the 500 row from it. New to SillyTavern? Start with your first chat in six steps.
Sources
- OpenRouter: Errors, Limits, Models
- SillyTavern docs: OpenRouter
- All fetched 10 Nov 2026; the errors page again on 24 Nov 2026. We're not affiliated with OpenRouter.
SillyTavernOnline is an unofficial, independent hosting service. It is not affiliated with, endorsed by, or sponsored by the SillyTavern project or its contributors. SillyTavern is free, open-source software licensed under the AGPL-3.0.