Use case

Proxies for Leonardo.Ai: The API SDKs, the Web App and the Apps Behind a Proxy, and What the Terms Say

Where a proxy goes for Leonardo.Ai, from its SDK code and docs: the Python and TypeScript SDKs, the web app and apps, API limits, and what the terms say.

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→

Leonardo.Ai makes images and video on the web, in apps for iPhone and Android, and through an API with official SDKs, and each of those takes a proxy from a different place. This page shows where, from the code of the SDKs and the Leonardo docs, read on 28 September 2026. We did not run the SDKs for it.

Leonardo clientWhere the proxy goes
The web appThe browser. Chrome uses the system proxy.
The iOS and Android appsThe Wi-Fi settings of the phone.
The Python SDKHTTPS_PROXY, or your own httpx client.
The TypeScript SDKNODE_USE_ENV_PROXY=1, or a ProxyAgent.

The API and the SDKs

The Leonardo docs list two official SDKs, and both call the API at https://cloud.leonardo.ai/api/rest/v1 with a bearer key from your account.

Python. leonardo-ai-sdk 7.0.0 builds a plain httpx client, httpx.Client(follow_redirects=True), and sets nothing else. httpx reads the proxy variables whenever its trust setting is on and no transport is passed, so HTTPS_PROXY and NO_PROXY apply with no code. To set a proxy in code, the README lets you pass your own httpx client.

TypeScript. @leonardo-ai/sdk 4.21.3 wraps the fetch built into Node. That fetch ignores HTTPS_PROXY unless Node starts with NODE_USE_ENV_PROXY=1, the behaviour our ChatGPT lab measured for another SDK on the same fetch. The README way is an undici ProxyAgent, passed through a custom HTTPClient.

export HTTPS_PROXY="http://USERNAME:PASSWORD@HOST:PORT"
export NODE_USE_ENV_PROXY=1   # the TypeScript SDK on Node only

Our Node.js guide lists the Node versions that honour the switch.

What no address changes

The API limits generation jobs in three ways: concurrency, a queue and a rate limit. The default concurrency is 10 jobs at a time, and further requests wait in the queue. "These limits can be customized with a Custom API Plan", the docs add. In the web app, the help center traces missing premium features and tokens to a login method or email that differs from the one used to buy. None of this follows an address.

What the terms say

The Leonardo terms, last updated on 19 January 2026, do not mention VPNs or proxies. They set other rules: you must be at least 13, you may not "Circumvent user authentication or security of any of our networks, accounts or hosts", and you must not be in a country under a US embargo. One more line matters to anyone on the free plan: under section 8.7, ownership of the intellectual property in outputs made on a free plan vests in Leonardo on creation. We give no steps around any of these rules.

What we checked

From our server in a US data center, leonardo.ai and its API docs answered 403, and the web app answered 429. The help center loaded, and the API answered 401 without a key. That is why this page reads the terms and the docs in their newest Web Archive copies. The Leonardo app for iPhone was listed in 42 of the 44 App Store storefronts we checked, with no listing in Bangladesh or China.

Where our lines fit

A proxy of your own fits Leonardo in two plain cases: a company network where traffic must leave through a known exit, and a server that calls the API from behind one. Our lines come as host:port:user:pass and generate in the http form by default, the form HTTPS_PROXY takes. For one fixed exit, a dedicated ISP address costs $2.70/IP per month. On a phone or in a browser, the proxy goes where our guides for Chrome, iPhone and Android show. 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 for the Leonardo SDKs. 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 the Leonardo SDKs or apps for this page. The SDK findings rest on the code of leonardo-ai-sdk 7.0.0 and the README of @leonardo-ai/sdk 4.21.3. The live terms and docs refused our server, so we read their newest archived copies, from September and August 2026. We give no steps for getting past a network that blocks Leonardo. We will check again by 28 December 2026.

Sources

Frequently asked questions

How do I use the Leonardo API behind a proxy?
In Python, set HTTPS_PROXY: the leonardo-ai-sdk client is a plain httpx client, which reads it, or you pass your own httpx client. In TypeScript on Node, the SDK uses the built-in fetch, which reads HTTPS_PROXY only with NODE_USE_ENV_PROXY=1, or you pass an undici ProxyAgent through a custom HTTPClient.
Does Leonardo have an API and SDKs?
Yes. The Leonardo docs list official Python and TypeScript SDKs, and both call https://cloud.leonardo.ai/api/rest/v1 with a bearer key from your account.
Does a proxy raise Leonardo API limits?
No. The API limits generation jobs by concurrency, a queue and a rate limit, with a default concurrency of 10, and a Custom API Plan raises them. An address is not part of that.
Does Leonardo allow VPNs or proxies?
The terms of 19 January 2026 do not mention them. They ask users to be at least 13, forbid getting around authentication or security, and require that users are not in a country under a US embargo.
Why is Leonardo not loading?
The Leonardo help center covers network and browser troubleshooting. From our server in a US data center, leonardo.ai answered 403 and the web app 429. If a company or school network blocks Leonardo, that is the choice of whoever runs it, and we give no steps around it.
Who owns images made on the free Leonardo plan?
Leonardo does. Section 8.7 of the terms says that on a free plan, ownership of the intellectual property in outputs vests in Leonardo on creation.

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