Guide

Janitor AI Network Error and 401 Unauthorized: The Two Errors That Happen Before the Model Answers

Janitor AI network error and 401 fixed: exact proxy URLs per backend, a curl test that separates URL from key problems, why 401 is always the key, and the one case that is your network.

HProxy Team··6 min read
HProxy.Guide

Skip the dead lists.

Our free proxy list re-checks every exit every few minutes across 100+ countries, with a live last-checked time, so you copy IPs that worked moments ago, not a stale text dump.

Open the free proxy list

Most Janitor AI errors come back from the model's side: a 429 is a rate limit the provider enforced, "no endpoints found" is OpenRouter declining to route. Two errors are different, because they happen before any model is involved. A network error means the request never got an answer. A 401 means it got one, and the answer was that the key is not valid. Neither has anything to do with which model you chose, and, with one narrow exception covered at the end, neither has anything to do with your IP address, which is worth saying early because we sell IP addresses and would rather not sell you one for this.

Janitor's own OpenRouter error guide covers the first in one line: network errors mean your API URL is wrong, or you did not refresh after saving changes, and the URL must be exactly https://openrouter.ai/api/v1/chat/completions. This page extends that to every backend people paste, adds a way to prove which of the two settings is broken, and then handles the 401.

The network error: almost always the URL

Janitor's Proxy URL field takes the full path of an OpenAI-format chat-completions endpoint, and it forwards your messages there. If the path is wrong, the provider's server either rejects the request with an error Janitor cannot parse or never answers, and Janitor shows a network error. The mistakes are always the same five: a missing /chat/completions, a URL that ends at /v1, http instead of https, a trailing space copied from a guide, or a domain that belongs to the provider's website rather than its API. Compare yours, character by character, with the right one.

BackendProxy URL, exactlyKey comes from
OpenRouterhttps://openrouter.ai/api/v1/chat/completionsopenrouter.ai, Keys page (starts sk-or-)
DeepSeekhttps://api.deepseek.com/v1/chat/completionsplatform.deepseek.com
Google Geminihttps://generativelanguage.googleapis.com/v1beta/openai/chat/completionsGoogle AI Studio
Anthropic Claude (compatibility layer)https://api.anthropic.com/v1/chat/completionsplatform.claude.com, Keys
Mistralhttps://api.mistral.ai/v1/chat/completionsMistral's console (La Plateforme)

Two notes from the providers' own documents. Google's OpenAI-compatible base URL is https://generativelanguage.googleapis.com/v1beta/openai/, so the /openai/ segment is part of the path and its absence is the most common Gemini network error. Anthropic's compatibility layer uses https://api.anthropic.com/v1/ as the base, and Anthropic describes that layer as intended for testing and comparing models rather than as a long-term solution, which is worth knowing before you build an evening on it.

After correcting the URL, save, then refresh the page. Janitor's guide lists the unrefreshed page as its own cause, and it catches people who fixed the URL and tested on a stale tab.

Prove which setting is broken with one curl call

Janitor gives you one error and two settings. Curl separates them. From any terminal, with your real URL and key:

curl -sS https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"nvidia/nemotron-3-ultra-550b-a55b:free","messages":[{"role":"user","content":"hi"}]}'

Read the outcome, not the content of the reply:

  • A JSON answer with a message in it. URL and key are both fine. The problem is inside Janitor: the URL field differs from what you just typed, the model id is wrong, or the page was not refreshed.
  • A JSON error with 401 or "unauthorized" in it. The URL is right and the key is wrong. Go to the 401 section.
  • curl: (6) Could not resolve host or (7) Failed to connect. The URL's domain is wrong, or your network cannot reach it. Check the spelling first; if it is exact, this is the one network-error case that is actually about your network, covered at the end.
  • An HTML page instead of JSON. You pasted the provider's website address, not its API address.

Swap in the DeepSeek, Gemini, Claude or Mistral URL and a model id from that provider to test those the same way.

The 401: always the key, never the address

A 401 Unauthorized is the provider saying the credential in the request is not valid. It cannot be caused by the URL, because a wrong URL never reaches a provider that could reject a key, and it cannot be caused by your IP address, because providers authenticate by key. The causes:

  1. A space. Keys copied from a web page often carry a leading or trailing space or a line break. Delete the field, paste again, and check both ends.
  2. A revoked or expired key. Providers let you revoke keys, and some expire. Generate a new one.
  3. The wrong provider's key. A Gemini key on OpenRouter's URL, or an OpenRouter key on DeepSeek's, is a 401 every time. Match the key to the URL in the table.
  4. An inactive or unfunded account. DeepSeek's and Anthropic's APIs need a funded account before a key works; OpenRouter blocks even free models when the balance is negative, which it reports as 402 rather than 401, but the symptom to the user is the same refusal.
  5. A shared key that was rotated. If the key came from a Discord post, the owner changed it. This is the borrowed-proxy problem, and the fix is your own key.

Janitor's error guide also lists a 402 (insufficient balance) and a 404 (provider restrictions, a retired model, or privacy settings) as neighbours of these errors; our no endpoints found page handles the 404s, and the 429 page the rate limits.

Network error or 401: where the request stopped
  1. Janitor forwards to the Proxy URL

    the full chat-completions path

  2. Wrong URL or unreachable host

    network error; fix the URL, refresh

  3. Provider reads the key

    Authorization header

  4. Key rejected

    401; regenerate, paste clean, match provider

  5. Model answers

    any further error is the model's side

Source: Janitor AI OpenRouter error guide and provider API documentation, read 24 August 2026

The one network-error case that is your network

If the URL is exact and curl reports that it cannot resolve or connect to the host, the request is not leaving your network, or the provider is refusing your region before it answers. School and office networks filter API hosts and, often, janitorai.com itself. Some providers do not serve some countries: Anthropic publishes a supported-countries list, Google lists where the Gemini API is available, DeepSeek's platform terms exclude sanctioned countries, and Janitor AI itself blocked UK addresses from 24 July 2025 until it moved to age verification on 15 June 2026.

That case, and only that case, is what a network proxy is for. On 24 August 2026 we sent 50 free proxies from our free proxy list to janitorai.com and every one of the 20 that could carry HTTPS got the site, so Janitor's own edge is not the obstacle; the obstacle, when it exists, is between you and the internet or between you and the provider. The tool is a single static residential or ISP address in a country where both the site and the provider are offered, from $0.44 per GB on a usage meter, kept for the session, and it is a decision to read against the site's and provider's terms first. For the URL and the key, which is what nearly every network error and every 401 comes down to, it does nothing, and the fixes above are free.

Sources

Frequently asked questions

What does 'network error' mean on Janitor AI?
The request never got an answer from a model. Janitor AI's own OpenRouter error guide gives the two usual causes: your API URL is wrong, or you did not refresh after saving changes. It states the rule for OpenRouter exactly: the API URL must be https://openrouter.ai/api/v1/chat/completions. A missing /chat/completions, a stray space, http instead of https, or a base URL that ends in /v1 all produce this error. Fix the URL, save, refresh, retry.
What does 401 Unauthorized mean on Janitor AI?
The request reached the provider and the provider rejected the key. It is never the URL and never your IP address. The key is wrong, expired, revoked, pasted with a leading or trailing space, or belongs to a different provider than the URL (a Gemini key on an OpenRouter URL, for example). Generate a fresh key on the provider's site, paste it clean, and confirm the account is active and, for paid backends, funded.
How do I tell whether the URL or the key is the problem?
Send one request from outside Janitor with curl, using the same URL and key. If curl gets a JSON answer, both are fine and the problem is in Janitor's settings or an unrefreshed page. If curl gets a 401, the key is wrong. If curl cannot connect at all, the URL is wrong or your network cannot reach the host, which is the only case that involves your network rather than your settings.
Can a VPN or proxy fix a Janitor AI network error?
Only in one case: the request cannot leave your network, because a school, office or national filter blocks the provider's host or janitorai.com itself, or because the provider does not serve your country and refuses before answering. In our test on 24 August 2026 janitorai.com answered every one of 20 free exits, so its own edge is not the wall. For every other network error the fix is the URL, and for a 401 the fix is the key; we sell network proxies and they do nothing for either.
Why does the same key work in OpenRouter's playground but not in Janitor?
Almost always the URL field. Janitor needs the full chat-completions path, and the playground does not show you one. Compare the Proxy URL character by character with the table in this guide, check for a space at the end, save, and refresh the page before testing, which Janitor's guide names as a cause in its own right.
Is a network error a Janitor AI outage?
Rarely. Janitor forwards your request to the URL you pasted, and a network error means that forwarding failed; the site itself was up to show you the error. If the URL is exact, the key tests fine with curl, and the provider's status page shows an incident, then it is the provider. If everything checks and only Janitor fails, refresh, log out and in, and try once more before assuming an outage.

Get proxies that are alive right now

Our free list re-checks every exit every few minutes and shows a last-checked time, so you copy IPs that worked moments ago, not a stale text dump. When the location has to survive a real check, the paid network holds up.

129M+ proxy checks run · 100+ countries · HTTP / HTTPS / SOCKS · re-checked every few minutes · no signup