Skip to content

Proxies for AI Tools & APIs

A person working on a laptop showing lines of code on the screen
Photo via Pexels. An AI proxy is a middle layer between your app and the model, so one key and one endpoint can reach many providers.

Proxies for AI Tools & APIs

A proxy for AI tools is a middle layer that sits between your app or your agent and the model it uses, so one key, one endpoint, and one bill can reach many models. The same phrase also means something narrower: Jina Reader, a service that turns any web page into Markdown for a language model by adding r.jina.ai/ to the front of the URL. Both are called AI proxies, and they solve different problems. This guide explains both, with the rate limits, the free tiers, and the setup steps, so you can pick the one your project actually needs.

A person working on a laptop showing lines of code on the screen

Photo via Pexels. An AI proxy is a middle layer between your app and the model, so one key and one endpoint can reach many providers.

What Is an AI Proxy?

An AI proxy is a gateway that receives your request, rewrites it into the format the provider expects, and forwards it to the model. Your app talks to the proxy; the proxy talks to OpenAI, Anthropic, Google, or whoever serves the model. The most common form is an OpenAI-compatible endpoint: your existing code sends a standard chat-completions request to a different base URL, and the proxy handles the rest.

The reason to use one is simple. Every AI lab ships its own SDK, its own request shape, and its own billing page. A proxy collapses that into one endpoint and one key, adds routing and failover, and gives you one bill. If a provider is down or rate-limited, a good proxy falls through to another provider or another model without your code changing.

There are three kinds. A hosted gateway such as OpenRouter runs the layer for you, so there is no infrastructure to operate. A self-hosted proxy such as LiteLLM runs inside your own network, so your data stays on your hardware and you pay no platform fee, in exchange for operating the database and the server yourself. And a command-line proxy such as CLIProxyAPI exposes local endpoints that your coding tools, Claude Code, Gemini CLI, and Codex, can call with the keys you already have.

If the basic idea of a proxy is new to you, start with our guide to what are proxies used for before setting one up.

Jina Reader: The r.jina.ai Proxy

Most of the searches behind this page are for one service: Jina Reader, at r.jina.ai. It is not a network proxy and it is not a model gateway. It is a URL-to-Markdown reader: you put https://r.jina.ai/ in front of any public URL, and you get the page back as clean text a language model can use. The many keyword variants, r.jina.ai http text proxy, r.jina.ai https text proxy, r.jina.ai http proxy, r.jina.ai https proxy, r.jina.ai text proxy, r.jina.ai proxy reader, r.jina.ai reader proxy, r.jina.ai proxy markdown, r.jina.ai http markdown proxy, r.jina.ai http proxy markdown, r.jina.ai http proxy reader, r.jina.ai http web proxy, are all the same service, reached through slightly different phrasings.

The setup is one line. To read a page, request:

https://r.jina.ai/https://example.com

The Reader fetches the page, strips the navigation and the ads, and returns Markdown. It works without a key, at 20 requests a minute, which is enough for a quick test or a small script. Add a free API key and the limit rises to 500 requests a minute, with 10 million free tokens included per key. Paid tokens cost about $0.05 per million after that, and a premium key raises the limit to 5,000 requests a minute. The free tier is real, but check the current limits page before sizing a production job around it: Jina’s own pages disagree in places, with its FAQ quoting different numbers from its rate-limit table, and some independent guides quote 100 requests a minute for a free key instead of 500.

A computer screen showing lines of HTML code

Photo via Pexels. The different r.jina.ai URL forms are the same Reader called in different ways, not different products.

What the URL Forms Mean

The different URL forms are not different products. They are the same Reader called in different ways:

  • r.jina.ai/http text proxy and r.jina.ai https text proxy: the Reader over HTTP or HTTPS, returning the page as text. Use the HTTPS form; the HTTP form is the same service reached without encryption.
  • r.jina.ai/http pdf proxy and r.jina.ai/http pdf text proxy: the Reader reading a PDF file at a URL, returning its text. The Reader can process PDF and HTML files uploaded through its API, though its FAQ says it cannot process local files, so use a URL the Reader can reach.
  • r.jina.ai/http markdown proxy and r.jina.ai/http proxy markdown: the Reader returning Markdown, which is its default output. Markdown is the format a language model reads best, because headings, lists, and links survive the conversion.
  • r.jina.ai http proxy reader and r.jina.ai proxy reader: the Reader itself, as a service.
  • r.jina.ai/http web proxy: the Reader used as a web proxy for an agent, so the agent can read pages it cannot fetch itself.

None of these need a proxy server in the network sense. The Reader is a hosted service, and the only setup is the URL prefix.

Jina Search and the Rest of the Family

Jina Reader has a sibling, s.jina.ai, which is a search endpoint rather than a reader: it searches the web and returns results as Markdown. Search needs a key, where the Reader works without one, and its limits are lower, 100 requests a minute on a free key and 1,000 on premium. If you only need to read pages, use the Reader. If you need to search, use the search endpoint, and budget for it: each search costs a fixed 10,000 tokens.

Jina AI became part of Elastic in October 2025, and its site is now branded Elastic, with enterprise and commercial enquiries going to Elastic Sales. The Reader code itself is open source under Apache-2.0, published on GitHub, and there is an official Docker image, so you can self-host the Reader on your own hardware with no 20-requests-a-minute ceiling. Self-hosting is the route to take when the shared rate limit is the problem, rather than the Reader’s features.

The Reader has real limits. It fetches one URL per call, and there is no crawl endpoint: fetching a full website means queueing, deduplication, and politeness logic in your own project, and Jina’s own documentation points full-site fetching at a Colab notebook you run yourself. If you need to fetch pages at scale from an address that is not shared with everyone else, a residential proxy gives your reader its own exit address, though it will not raise Jina’s own rate limits. It returns Markdown or JSON text only, with no field-level extraction, and nothing that watches a page over time. If you need a crawl, scheduled checks, or structured fields, a dedicated scraper is the right tool, and our guide to the best proxy providers covers the providers that offer those.

LLM API Proxies: One Endpoint, Many Models

The other kind of AI proxy is a model gateway: one OpenAI-compatible endpoint that reaches many providers. OpenRouter is the best-known hosted example. Your app sends a standard POST /api/v1/chat/completions request to https://openrouter.ai/api/v1, specifies a model slug such as anthropic/claude-sonnet-4.5 or meta-llama/llama-3.3-70b-instruct, and OpenRouter routes it to the best available provider for that model. The catalog holds 300 or more models across dozens of providers, and you can browse the full list at openrouter.ai/models or query it with GET /api/v1/models.

Switching to OpenRouter is a base-URL swap. If your code already uses the OpenAI SDK, point its base URL at OpenRouter and swap the key:

from openai import OpenAI
client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="your-openrouter-key",
)
Lines of code on a dark computer screen

Photo via Pexels. Switching to a gateway is a base-URL swap: the same SDK code works, pointed at a different endpoint.

OpenRouter routes on two layers. Provider routing picks which vendor serves a given model, by default favouring cheaper endpoints and deprioritising any provider that saw outages in the last 30 seconds. Model fallbacks try a chain of alternative models when every provider for your chosen model fails. If you do not want to manage model selection at all, set the model to openrouter/auto and let the Auto Router pick. Inference is billed at each provider’s list price, with no per-token markup, and the platform fee is charged when you buy credits, 5.5% on pay-as-you-go purchases, with a $0.80 minimum. OpenRouter is SOC 2 Type 2 compliant, supports GDPR, and offers Zero Data Retention per request or account-wide.

LiteLLM is the self-hosted alternative. It is an open-source AI gateway and proxy for 100 or more providers, in OpenAI ChatCompletions and Completions format, with virtual keys, budgets, rate limits, spend tracking, and failover. It runs as a Docker container or a Kubernetes pod, and exposes the same OpenAI-compatible endpoint inside your network. The choice between the two is where the routing layer should run: OpenRouter runs it for you, so there is no infrastructure to operate; LiteLLM runs inside your own infrastructure, so your data stays on your network and you pay no platform fee, in exchange for operating PostgreSQL, Redis, and Docker yourself. The two are not mutually exclusive: LiteLLM can use OpenRouter as an upstream provider, so you get LiteLLM’s local access control and logging while OpenRouter handles multi-provider failover and model breadth.

Close-up of code on a computer monitor

Photo via Pexels. A model gateway normalises hundreds of models behind one API, so switching providers is a base-URL swap.

CLI Proxies for Coding Tools

Coding agents have their own proxy kind. CLIProxyAPI is an open-source Go proxy that exposes OpenAI, Gemini, Claude, and Codex-compatible endpoints through OAuth, with 43,000 or more stars on GitHub. It lets your coding tools, Claude Code, Gemini CLI, and Codex, call models through one local proxy, using the keys you already have. The related keywords, gemini cli proxy, claude-code-proxy, claude proxy github, gemini code assist proxy, antigravity claude proxy, and antigravity-claude-proxy, are all this same idea: a local proxy that sits between a coding tool and the model API, so the tool can use a different model or a different key without changing its own settings.

Aiproxy-python is a smaller, Python-based reverse proxy for LLM APIs, published on PyPI, that routes requests to ChatGPT, Claude, and Gemini through one endpoint. It is a library rather than a hosted service, and it fits a project that wants a proxy inside its own code rather than a separate service.

Xinference takes a different route again: it is an open-source platform for running models locally, and its proxy mode exposes a local model through an OpenAI-compatible endpoint, so tools that speak OpenAI can call a model running on your own machine. That is the xinference proxy to openai keyword: a local model, presented as an OpenAI endpoint, with no external provider involved.

A developer working at a desk with a laptop showing code

Photo via Pexels. A CLI proxy runs locally, so your coding tools can use a different model without changing their own settings.

Gemini, Claude, and ChatGPT Proxies

The per-model keywords, gemini proxy, claude proxy, chatgpt proxy, openai proxy, gemini proxy guide, gemini openai proxy, gemini-proxy, and proxy claude, are all asking the same question for a different model: how do I call this model through a proxy? The answer is the same in each case, and it depends on which kind of proxy you mean.

To call a model through a gateway, point your SDK at the gateway’s base URL and name the model in the request, as shown for OpenRouter above. To call a model through a network proxy, set the proxy in your HTTP client or in the environment, and the SDK’s requests will travel through it. To use a coding tool with a different model, run a CLI proxy such as CLIProxyAPI locally and point the tool at it. The three are different layers, and mixing them up is the most common mistake in this area: a network proxy changes where the traffic goes, a gateway changes which model answers, and a CLI proxy changes which key and endpoint a coding tool uses.

Braintrust AI Proxy is a narrower case: it is a proxy for the Braintrust evaluation platform, so prompts and completions pass through it for logging and evaluation rather than for routing. The claude-max-api-proxy keyword is a specific proxy for Claude Max subscribers, which routes API calls through a Max subscription rather than a separate API key. Both are niche tools, and both should be checked against their own documentation before use, because their terms change faster than general guides can track.

Free AI Proxies and What to Watch For

A free AI proxy is a proxy that costs nothing to use, and the phrase covers three very different things. The first is a genuine free tier: Jina Reader’s keyless 20 requests a minute, OpenRouter’s free models, and the 10 million free tokens on a new Jina key. These are real, documented, and safe to use within their limits. The second is an open-source proxy you run yourself, such as LiteLLM, CLIProxyAPI, or the Jina Reader Docker image: free in money, but you pay in the time and hardware to run it. The third is a free proxy list or a free proxy site that offers to route your API calls: these are the ones to avoid, because an AI proxy sees your prompts and your API keys, and a free service with no business model is either logging that traffic or selling it.

The same caution applies to “proxi ai” and “site proxy ai” and “chatgpt proxy site”: these are usually search-engine phrasings for a proxy site or a proxy tool, not a named product, and they should be treated as unvetted. Before routing any API call through a proxy, check three things: who operates it, whether its source code is public, and whether it stores your prompts. A proxy that stores prompts is a data leak, and a proxy that stores keys is a credential leak. Never put a production API key into a proxy you have not vetted, and never share a key in a public issue, a forum post, or a screenshot.

Close-up of code on a laptop screen

Photo via Pexels. An AI proxy sees your prompts and your keys, so vet it before routing production traffic through it.

Choosing the Right AI Proxy

Start with the job, not the product. If you need to feed web pages to a model, use Jina Reader: prepend r.jina.ai/ to the URL, and add a free key when 20 requests a minute is not enough. If you need one endpoint for many models, use OpenRouter if you want a hosted service, or LiteLLM if you want to self-host. If you need a coding tool to use a different model, run CLIProxyAPI locally. If you need to run a model on your own hardware and expose it as an OpenAI endpoint, use Xinference.

Then check the limits before you build on them. Jina Reader’s rate limits are published per key tier, and its FAQ and its rate-limit table disagree, so check the table. OpenRouter’s model catalog changes as providers join and leave, so check the model list before hard-coding a slug. A CLI proxy’s compatibility is version-specific, so check its README against the version of the coding tool you run. And a free tier is a starting point, not a production plan: 20 requests a minute is a drip for anything loop-shaped, and a keyless tier is shared with everyone else using it.

If you are choosing between a proxy and a scraper for feeding pages to a model, the difference is the job: a reader turns one page into text, a scraper fetches many pages on a schedule. Our guide to the best proxies for web scraping compares the providers and tools for the scraping side.

Frequently Asked Questions

What is r.jina.ai?

Jina Reader is a hosted service that turns any public web page into Markdown for a language model. Put https://r.jina.ai/ in front of the URL, and the page comes back as clean text. It works without a key at 20 requests a minute.

Is Jina Reader free?

Basic use is free. Reading a page works with no key at 20 requests a minute, and a free API key raises that to 500 requests a minute with 10 million free tokens. Paid tokens cost about $0.05 per million after that.

What is the difference between r.jina.ai and s.jina.ai?

The Reader, r.jina.ai, reads one URL and returns it as Markdown. The search endpoint, s.jina.ai, searches the web and returns results as Markdown. Search needs a key, and each search costs a fixed 10,000 tokens.

What is an AI proxy?

An AI proxy is a gateway between your app and the model it uses. It receives your request, rewrites it into the provider’s format, and forwards it, so one key and one endpoint can reach many models, with routing, failover, and unified billing.

What is OpenRouter?

OpenRouter is a hosted LLM gateway with one OpenAI-compatible endpoint for 300 or more models across dozens of providers. Your app sends a standard chat-completions request to https://openrouter.ai/api/v1, names a model slug, and OpenRouter routes it to the best available provider.

Can I use a proxy with Claude Code or Gemini CLI?

Yes. CLIProxyAPI is an open-source local proxy that exposes Claude, Gemini, OpenAI, and Codex-compatible endpoints, so your coding tools can call models through it with the keys you already have.

Is there a free AI proxy?

Yes, with limits. Jina Reader is free at 20 requests a minute without a key, OpenRouter has free models, and open-source proxies such as LiteLLM and CLIProxyAPI are free to run yourself. Avoid free proxy lists that route API calls through unknown operators, because the proxy sees your prompts and keys.

Does an AI proxy store my prompts?

It depends on the proxy. A self-hosted proxy stores nothing outside your network. A hosted gateway may log requests for billing and debugging; OpenRouter offers Zero Data Retention per request or account-wide. Check the provider’s data policy before sending sensitive prompts.

Video: Building a RAG App That Answers From Your Own Documents

Build an AI That Answers From YOUR Documents — Free RAG Tutorial, by AI Earning Lab. Checked live 23 November 2026. The video description states there are no affiliate links in the video.

Sources

7

Every factual claim on this page was verified against a named source above.

Priya Nair

Written by

Priya Nair Proxy Guides Writer

Priya's byline covers proxy setup guides and proxy error troubleshooting. Steps follow the official documentation of the browser, tool or operating system involved, with the version noted. Guides start from the error message or setting the reader is looking at and work towards the fix.

How our articles are researched, reviewed and updated