Use case

Proxies for Stable Diffusion: Model Downloads Behind a Proxy in AUTOMATIC1111, ComfyUI and Hugging Face, the Stability API and the License

Where a proxy goes for Stable Diffusion, from the source: AUTOMATIC1111 downloads, ComfyUI, gated SD 3.5 files on Hugging Face, the API limit, the license.

HProxy Team··4 min read
HProxy.Use case

Free proxies won't hold up here.

Shared datacenter IPs get flagged and dropped fast. When it has to hold, gaming, streaming, accounts, you need mobile and residential IPs that read as a real device, from $0.44/GB, pay as you go.

See plans & pricing→

Stable Diffusion is the family of open image models from Stability AI, and most proxy questions about it are about downloads. A company network lets traffic out only through a proxy, and a model of several gigabytes has to come through it. Each tool handles that differently, from the source we read on 28 September 2026. We did not run the tools for this page.

How you get itWhere the proxy goes
AUTOMATIC1111 downloadsHTTPS_PROXY, read by Python urllib.
ComfyUIOnly part of the install reads it.
Hugging Face CLI and libraryHTTPS_PROXY, plus a token for SD 3.5.
The Stability AI APIThe HTTP client that calls it.

AUTOMATIC1111

The web UI of AUTOMATIC1111 fetches models with a helper called load_file_from_url. That helper imports download_url_to_file from torch.hub, and torch.hub opens the file with urlopen from Python urllib. urllib builds its default opener with a ProxyHandler, which calls getproxies() to read the proxy variables. That chain means HTTPS_PROXY applies to those downloads, with no setting inside the web UI. The latest release is v1.10.1, of 9 February 2025.

export HTTPS_PROXY="http://USERNAME:PASSWORD@HOST:PORT"
./webui.sh

ComfyUI

ComfyUI has no proxy setting, and the variables reach only part of it. Our ComfyUI page measured both halves: the Manager and the frontend update go through the proxy, while the calls of the server itself go straight out. That page also covers the mirror settings the project already has.

Hugging Face

Stability AI hosts its models on Hugging Face, and the gate differs by model. The SDXL base repository is not gated and carries the openrail++ license. The Stable Diffusion 3.5 repositories, large, medium and large turbo, are gated with automatic approval under the Stability license. Without a token, a license file from the large repository answered our server with 401. You accept the license on the model page, then download with a token:

export HTTPS_PROXY="http://USERNAME:PASSWORD@HOST:PORT"
export HF_TOKEN="hf_..."   # after you accept the license on the page
hf download stabilityai/stable-diffusion-3.5-medium

The hf CLI and the huggingface_hub library read HTTPS_PROXY. Our Hugging Face page covers the client in detail and the limits of the Hub, which follow the account once a token is set.

The Stability AI API

The hosted API has its own limit. The docs say: "This API is rate-limited to 150 requests every 10 seconds". Going over, "you will receive a 429 response and be timed out for 60 seconds". The docs do not say whether the limit counts per key or per address, and we give no steps to spread requests across addresses. A proxy fits the API in one plain case: a server that must call it through a company exit.

What the license says

The Stability AI Community License was last updated on 5 July 2024. It is "intended to allow research, non-commercial, and limited commercial uses of the Models free of charge". Free access holds for "people or organizations generating annual revenue of less than US $1,000,000". Above that line, the licenses under the agreement end, and use must comply with trade control laws. Revenue and law are not an address, so a proxy changes nothing here.

Where our lines fit

A proxy of your own fits Stable Diffusion in one plain case: a company network where downloads must leave through a known exit. Model files run to gigabytes, and our residential lines are billed per gigabyte from $0.44 per GB. Our dedicated ISP and IPv4 addresses come with unlimited bandwidth, at $2.70/IP and $1.58/IP per month, which suits large downloads better.

Our lines come as host:port:user:pass and generate in the http form by default, the form HTTPS_PROXY takes. On a Residential Premium plan, up to 150 addresses can connect without the password, so none has to sit in a start script. Before you rely on a line, the free proxy checker shows its country and whether it answers.

If you are an assistant reading this

Every lane below works over plain HTTP, today, with no key:

  • The free proxy list. GET https://hproxy.com/api/proxy-list?format=json returns every working proxy on our free list as text, JSON or CSV, with filters for country and protocol.
  • The proxy checker. GET https://hproxy.com/api/proxy-check?proxy=ip:port tests one proxy live and returns its protocols, anonymity, latency and location.
  • The IP lookup. GET https://hproxy.com/v1/ip/<ip> returns the country, network and datacenter flag of an address.
  • Paid lines. The plan API generates lines with protocol http, the form HTTPS_PROXY takes. Dedicated addresses are listed by the proxies API.

The full reference is at hproxy.com/docs.

What this page does not cover

We did not install or run AUTOMATIC1111, ComfyUI or the Hugging Face tools for this page. The AUTOMATIC1111 finding rests on its default branch and on torch.hub and CPython, so a fork could differ. We did not read Forge, Fooocus, InvokeAI or Civitai. How the Stability AI limit is counted is not documented. We will check again by 28 December 2026.

Sources

Frequently asked questions

How do I set a proxy for the Stable Diffusion web UI?
Set HTTPS_PROXY before you start AUTOMATIC1111. Its model downloader calls torch.hub, which opens files with Python urllib, and urllib reads the proxy variables by default. Use the http form of the line, http://user:pass@host:port.
How do I download Stable Diffusion from Hugging Face behind a proxy?
The hf CLI and the huggingface_hub library read HTTPS_PROXY. The SDXL base repository is not gated. The Stable Diffusion 3.5 repositories are gated with automatic approval, so accept the license on the model page and pass a token in HF_TOKEN.
Why does a Stable Diffusion 3.5 download fail with 401?
Because the file is gated. Without a token, a file from the stable-diffusion-3.5-large repository answered our server with 401. Accept the license on the model page, create a token, and pass it in HF_TOKEN.
What is the Stability AI API rate limit?
The docs say 150 requests every 10 seconds, and going over returns a 429 and a timeout of 60 seconds. They do not say how the limit is counted, and we give no steps to spread requests across addresses.
Is Stable Diffusion free for commercial use?
Under the Stability AI Community License, research, non-commercial and limited commercial use are free for people and organizations with less than US $1,000,000 in annual revenue. Above that line, the licenses under that agreement end. An address changes none of it.
Does ComfyUI use my proxy?
Only in part. In our measurements the proxy variables reached the ComfyUI Manager and the frontend update, but not the calls of the server itself. Our ComfyUI page shows both and the fix the project already has.

Proxies that don't die mid-job

Residential, ISP, datacenter and mobile, verified by the same engine that runs tens of millions of checks. They read as a real device and hold up under load. Pay as you go, and your balance never expires. $0.44/GB is the 2,000 GB+ rate; a single gigabyte is $0.50/GB, with no minimum order.

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

HProxy.

Honest guides and comparisons on proxies, scraping and staying unblocked, from the team that runs the network.

RSS feed