TensorPass

Best LLM gateways for a website: LiteLLM, OpenRouter, Vercel AI SDK, Subrouter, LibreChat, Open WebUI, TensorPass

Of seven tools that reach several AI models from a website, two let an anonymous visitor's own AI account pay for each answer: OpenRouter through OAuth PKCE and TensorPass through AI Connect. Ranked on payer, key custody, footprint, visitor route and licence.

Published on

Of the seven tools a developer meets when a website must reach several AI models, two let an anonymous visitor's own AI account pay for each answer: OpenRouter, through its OAuth PKCE sign-in, and TensorPass, through AI Connect. Most lists of the best LLM gateways rank LiteLLM, Bifrost and Portkey for internal traffic, where your servers hold every provider key and your card pays every token. A public chat on a SaaS marketing site asks a different question: who carries the inference bill when a stranger types into the box? This page ranks LiteLLM, OpenRouter, the Vercel AI SDK, Subrouter, LibreChat, Open WebUI and TensorPass on five criteria stated before the list. Every fact was read on 2 December 2026 from the tool's own documentation, licence file or package registry. We make TensorPass, so the criteria and the evidence sit in the open for you to check.

Key takeaways:

  • OpenRouter charges a 5.5% fee on Standard credit purchases ($0.80 minimum) and 8% on Business, with no markup on model prices, as listed on 2 December 2026.
  • LiteLLM 1.112.0, released on 1 December 2026, is MIT licensed outside its enterprise/ directory; the Enterprise licence is priced by quote.
  • On a 2 vCPU, 4 GB server tested on 21 October 2026, LiteLLM 1.106.2 added 18.1 ms per request and served 55 requests per second on one worker.
  • The Open WebUI licence allows you to remove its branding only up to 50 end users in a rolling 30-day period, unless you hold written permission or an enterprise licence.
  • TensorPass lists 21 visitor accounts on 2 December 2026 (14 sign-ins and 7 API keys); the AI Connect SDK, AI Wallet and the site key are free.

What a multi-provider setup means for a public site

A multi-provider setup is one code path that can answer with models from two or more AI companies. For internal tools, that path is an LLM gateway: a proxy on your servers that holds an OpenAI key, an Anthropic key and a Google key, then routes each request to one of them. LiteLLM calls more than 100 LLM providers through one OpenAI-format interface. Bifrost, Portkey, Kong and Apache APISIX fill the same slot.

A public chat changes who sends the requests. Your visitors are anonymous, and their count grows with your marketing. Each answer bills whoever holds the key. A gateway adds budgets, rate limits and virtual keys (scoped tokens the proxy issues in place of the real provider key), and each of those caps spending. None of them moves the payer away from your account.

The 2026 roundups measure the gateway itself. Geekflare reviewed 24 open source gateways and benchmarked five of them on one DigitalOcean server with 2 vCPU and 4 GB of RAM. "I looked at 24 open source LLM gateways," writes Chandan Kumar, founder of Geekflare. Maxim, the company that builds Bifrost, ranks five self-hosted gateways and places Bifrost first. Both rankings answer a throughput question for traffic you already pay for.

The question a marketing site actually faces

Your backend team runs LiteLLM for internal agents. Product now wants a chat on the public pricing page. Through that proxy, every visitor question costs you input and output tokens at your provider's list price. You have two routes. The site keeps paying and caps the damage with budgets. Or the visitor answers with an AI account they already hold, and your inference bill for that chat stays at $0. The seven tools below sit at different points between those two routes.

The five criteria behind this ranking of the best LLM gateways

Throughput rankings of the best LLM gateways score latency, memory and provider coverage. Those numbers matter once you have decided who pays. For a public chat, we score five things first, in this order:

  1. Payer per answer. Whose account is billed when a visitor gets a reply: your provider key, your prepaid credits, or the visitor's own plan, credits or key.
  2. Key custody. Where the secret that spends money lives: in your environment variables, in your gateway database, in the visitor's browser extension, or on your server after an OAuth exchange.
  3. What your site runs. A proxy container, a Python process, a database, a JavaScript library in the page, or nothing beyond your existing frontend.
  4. Visitor route to a model. How an anonymous visitor reaches a model: through your key, through a sign-in on your site, through an account they bring, or not at all.
  5. Licence. MIT, Apache 2.0, a BSD-style licence with a branding clause, a commercial licence, or no licence declared.

Latency comes sixth. On 21 October 2026, the gap between the fastest and slowest median in the Geekflare benchmark was about 17.6 ms per request (0.46 ms for agentgateway against 18.1 ms for LiteLLM). A model answer on a public chat takes seconds, so the payer and the key custody decide more of your monthly cost than the proxy overhead does.

The ranking table: seven tools on payer, keys and footprint

The table ranks each tool for one job that throughput lists of the best LLM gateways skip: a chat on a public page where you do not want an inference bill per visitor. A tool lower in the table can still be the right internal gateway.

RankToolLicencePayer per answerKey custodyWhat your site runsPublic visitor routeChecked on
1TensorPass (AI Connect and AI Wallet)Apache 2.0 (SDK)The visitor's plan, credits or key; TensorPass plan at US$5 to US$50 a month for visitors without oneAI Wallet in the visitor's browserAI Connect packages in the page; your MCP server for toolsAI Wallet, OpenRouter sign-in or the TensorPass plan2 December 2026
2OpenRouter (OAuth PKCE)Proprietary serviceThe visitor's OpenRouter creditsYour server, after the code exchangeA callback route and encrypted key storageOpenRouter sign-in2 December 2026
3Vercel AI SDKApache 2.0Whoever the provider bills; your key by defaultWherever your provider config pointsA TypeScript library, ai 7.0.187Depends on the fetch you pass2 December 2026
4LiteLLMMIT, Enterprise by quoteYour provider keysYour proxy and its databaseA Python proxy, Docker imageYour key behind virtual keys2 December 2026
5LibreChatMITYour keys, or the user's own key when set to user_providedYour serverA full chat app, v0.8.9Account on your instance2 December 2026
6Open WebUIOpen WebUI LicenseYour keys or your local modelsYour serverA full chat app, v0.13.5The app's interface on your instance2 December 2026
7SubrouterNone foundThe person running it, on their own subscriptions~/.subrouter/auth.json on one machineA CLI plugin, @subrouter/cli 0.6.1None, personal use only2 December 2026

The order follows the first criterion. Tools where the visitor pays rank above tools where you pay. Inside each group, a smaller footprint on your servers ranks higher. LiteLLM ranks fourth here and second in Geekflare's internal-traffic list; both positions describe the same software measured on different jobs.

What the throughput lists of the best LLM gateways measure

The two roundups that rank highest for the best LLM gateways test internal traffic, and their numbers belong in your decision once the payer is settled. Geekflare ran five gateways on one DigitalOcean Droplet (2 vCPU, 4 GB of RAM, Ubuntu 24.04, Docker), each in front of the same stub NGINX provider that answers instantly. The baseline with no gateway was 0.17 ms. The median comes from 1,000 sequential requests, and throughput from 32 clients over 20 seconds.

GatewayVersionMedian requestRequests per second (32 clients)Idle memoryPeak memory
agentgateway1.6.00.46 ms3,3368 MB76 MB
Apache APISIX3.19.00.49 ms4,30268 MB91 MB
Bifrost2.3.21.2 ms970180 MB254 MB
Portkey1.15.22.8 ms61536 MB111 MB
LiteLLM1.106.218.1 ms55642 MB772 MB

All five runs date from 21 October 2026. Geekflare's final list of the best LLM gateways holds eight picks: Bifrost as best all-round, LiteLLM for provider coverage and team budgets, agentgateway for agents and MCP, Apache APISIX as the best free API gateway with LLM routing, New API for sharing provider keys with quotas, Higress for Kubernetes, Agent Router for teams on Envoy Gateway, and Portkey's gateway, described as stalled.

Maxim's list of the best LLM gateways for self-hosting runs Bifrost, LiteLLM, Kong AI Gateway, Apache APISIX and Agent Router, in that order. Maxim builds Bifrost. Its figures come from its own benchmark: 11 microseconds of overhead per request at 5,000 requests per second on an AWS t3.xlarge, and 59 microseconds on a t3.medium. The article publishes no overhead figure for LiteLLM. Neither final list scores who pays for an answer. Neither includes OpenRouter, the Vercel AI SDK or a chat app, because none of those sits in the proxy slot both tests measure.

LiteLLM: the open source proxy your servers run

LiteLLM ranks second in both roundups we read, behind Bifrost each time. Its repository counted 64.3k GitHub stars on 2 December 2026. PyPI lists version 1.112.0, released on 1 December 2026, as the latest stable release. The proxy runs from a Docker image at ghcr.io/berriai/litellm, and the project recommends images tagged -stable, which pass 12-hour load tests before publication.

Licence. The repository licence splits in two. Code under litellm/enterprise/ follows its own enterprise licence. Everything else is MIT. LiteLLM charges no platform fee on the open source proxy. LiteLLM Enterprise adds single sign-on, SCIM, audit logs, team admins, secret managers, IP allowlists and support SLAs on the same image, switched on by a LITELLM_LICENSE key. The enterprise page publishes no price; pricing depends on deployment size and comes from sales, with a 30-day free trial and purchase through AWS Marketplace, Azure Marketplace or invoice.

Payer and keys. Your provider keys sit in the proxy configuration or its secret manager. The proxy issues virtual keys, tracks spend per project or user, and enforces budgets. Every answer still bills your OpenAI, Anthropic or Google account. For a public chat, that means each visitor question lands on your invoice, with LiteLLM's budget as the ceiling.

Footprint. On 21 October 2026, LiteLLM 1.106.2 used 642 MB of memory at idle and 772 MB at peak on a 2 vCPU, 4 GB DigitalOcean Droplet. Its median request took 18.1 ms against a 0.17 ms baseline with no gateway, and it served 55 requests per second with 32 clients on one worker. Bifrost 2.3.2 took 1.2 ms and served 970 requests per second on the same machine.

Where LiteLLM sits among the best LLM gateways for a public chat

LiteLLM keeps its place for internal traffic: the widest provider coverage of the five benchmarked tools and team budgets out of the box. For a visitor-facing chat, it moves the payer nowhere. You can keep it running for internal agents and route the public chat elsewhere, which is the first combination we describe further down.

OpenRouter: one account, 700+ models and a fee on credits

OpenRouter is a hosted router: one API, one account, more than 700 models from over 100 providers on its Standard plan, as listed on 2 December 2026. It passes through each provider's price with no markup on inference. Its revenue comes from a fee charged when credits are bought. OpenRouter sits outside both self-hosted lists of the best LLM gateways because it runs as a hosted service.

Plan features. The Free plan includes 25+ free models from 4 free providers and 5 workspaces, without auto-routing, budgets or prompt caching. Standard adds auto-routing, budgets, prompt caching, a management API key and data-policy routing, with provider rate limits passed through. Business adds EU and US in-region routing, Workload Identity Federation and up to 1,000 workspaces. Enterprise adds SSO and SAML, contractual SLAs and invoicing options. For a public chat on your own credits, the Standard budgets are the feature that caps a runaway month.

Fee schedule. The Standard plan charges 5.5% on credit purchases, with a $0.80 minimum. The Business plan charges 8%. Crypto payments carry a 5% fee. Enterprise customers negotiate their fee. The free tier caps free models at 20 requests per minute and 50 requests per day, rising to 1,000 per day once the account has bought at least $10 of credits. With your own provider keys (BYOK, bring your own key), the first $25,000 of list-price inference each month carries no fee, then OpenRouter charges 5% of the list price.

Worked example. Your site buys $200 of Standard credits to serve a public chat. The fee is 5.5% of $200, or $11, so $211 leaves your card for $200 of inference. A visitor who buys $10 of credits on their own account pays the $0.80 minimum, since 5.5% of $10 is $0.55. Under the OAuth route described next, that second purchase is the visitor's, and your card pays $0 for their answers.

OAuth PKCE for visitors. OpenRouter documents a sign-in that issues "an API key tied to their account", so the user's requests bill their own OpenRouter credits. Your page creates a code verifier, sends the visitor to openrouter.ai/auth with its SHA-256 challenge, receives a code on your callback URL, then exchanges it at /api/v1/auth/keys. The returned key can spend the visitor's credits until they revoke it. OpenRouter advises encrypted storage on your server or in the OS keychain, outside browser storage.

That last point puts a key custody duty on your site. You become the holder of a secret that spends someone else's money. For a marketing site, that means a database table of encrypted keys, a revocation path and a security review. OpenRouter ranks second here because the visitor pays; it sits below TensorPass because your server holds the visitor's key.

Vercel AI SDK: a library, and the fetch hook where a visitor's account can answer

The Vercel AI SDK is a TypeScript library, ai on npm, at version 7.0.187 on 2 December 2026, under the Apache 2.0 licence. Its repository counted 28.3k stars. It gives one API for streamText, generateText, tool calls and structured output across OpenAI, Anthropic, Google and other providers. By default, it routes through the Vercel AI Gateway.

The SDK appears in none of the best LLM gateways roundups we read, because it is a library with no proxy process. It runs wherever your code runs, in a route handler or in the page. The payer is whoever the provider configuration bills. Pass your OpenAI key to createOpenAI and every answer bills you.

The fetch hook. The provider factories createOpenAI, createAnthropic and createGoogleGenerativeAI accept a fetch option, documented as a custom fetch implementation that defaults to the global fetch and works as middleware to intercept requests. That option is where a visitor's account can answer. If the fetch you pass hands the request to an AI account the visitor controls, the SDK keeps its streaming, tool loop and schema handling, and the bill moves to the visitor. TensorPass uses that exact slot, as the TensorPass section shows.

The SDK earns third place because it carries no opinion on the payer. It is the layer most public chats on Next.js already use, and the one where you choose between your key and the visitor's account with a single option.

Subrouter: one person's subscriptions on one machine

Subrouter describes itself as "Like OpenRouter, but for your personal AI subscriptions." When one subscription hits its limit, the next one takes over. The README lists 10 subscription types: Claude Pro and Max, ChatGPT Plus and Pro through the Codex backend, SuperGrok and Grok Build, opencode Go, GitHub Copilot, Poe, the MiniMax Token Plan, Kimi Code, the Z.ai GLM Coding Plan and the Alibaba Coding Plan.

You add accounts with npx @subrouter/cli login <provider>, then load it as a plugin in opencode or Pi with the model subrouter/default. A preset is an ordered list of provider and model candidates. When a quota or authentication error arrives before output starts, Subrouter puts that account on cooldown and tries the next one. It runs no API server. Credentials sit in ~/.subrouter/auth.json and presets in ~/.subrouter/config.json.

The README states that Subrouter is for personal use only. On 2 December 2026, @subrouter/cli stood at version 0.6.1, the repository showed 20 stars and 100 commits, and we found no licence declared on the README page or in the npm entry. For a website, Subrouter offers no route at all: it spends one person's own subscriptions from one machine. It ranks seventh for that reason. It earns its place in this list because people searching for the best LLM gateways meet it next to OpenRouter, and its README describes a different problem.

A key, a browser tile and a server module on a dark surface, three places a chat's spending secret can live

LibreChat and Open WebUI: self-hosted chat apps

LibreChat and Open WebUI are complete chat applications. You deploy them on your servers, and people use the app's own interface to reach several model providers. Neither app competes with the best LLM gateways on throughput. Both sit one layer above a gateway, as the interface people type into.

LibreChat

LibreChat is MIT licensed, counted 47.7k GitHub stars on 2 December 2026, and its README presents version 0.8.9. It connects to Anthropic, AWS Bedrock, OpenAI, Azure OpenAI, Google, Vertex AI and any OpenAI-compatible endpoint, OpenRouter included. Authentication covers OAuth2, LDAP and email login, with passkeys added in 0.8.9.

LibreChat has one feature that moves the payer. Setting OPENAI_API_KEY, ANTHROPIC_API_KEY or GOOGLE_KEY to user_provided lets each user enter their own API key in the web interface. The user pays for their answers. Your LibreChat server holds that key to make the calls, and the user needs an account on your instance first. For a public marketing page, that adds a sign-up on your instance and a request for a raw API key before the first answer.

Open WebUI

Open WebUI counted 160.0k GitHub stars on 2 December 2026, the most of the seven tools, and its latest GitHub release was v0.13.5. It connects to local models through Ollama and to cloud models through OpenAI-compatible APIs, and its README describes a self-hosted platform built to run entirely offline.

The Open WebUI License keeps three BSD-style clauses and adds a fourth on branding. You may not alter or remove the "Open WebUI" name or logo in any deployment, except when the deployment serves 50 or fewer end users in a rolling 30-day period, when you have written permission from the copyright holder, or when you hold an enterprise licence. A public chat on a marketing site passes 50 end users in a month at modest traffic. In that case, the Open WebUI branding stays visible unless you buy the enterprise licence.

Both apps rank below LiteLLM for one reason: they bring a whole interface you would embed or replace, where the other tools slot into the chat you already designed.

TensorPass on the same five criteria

TensorPass gives your site two pieces: AI Connect, the open source SDK in your page, and AI Wallet, the browser extension that holds the visitor's AI accounts. The inference runs on the visitor's account. Here is TensorPass scored on the five criteria, with each figure read from our docs and changelog on 2 December 2026.

  1. Payer per answer. The visitor's own AI account. AI Wallet supports 21 accounts: 14 sign-ins and 7 API keys. Eleven sign-ins bill the visitor's provider plan, two (OpenRouter and Nous Portal) bill prepaid credits, and one bills the TensorPass plan. A visitor with no AI account can take the TensorPass plan at US$5 a month (Light), US$20 (Pro) or US$50 (Max), paid by the visitor.
  2. Key custody. Provider sign-ins and keys belong to AI Wallet in the visitor's browser. The SDK contains no sign-in or key handling.
  3. What your site runs. The AI Connect packages under the @tensorpass scope, at version 0.1.11 on 29 November 2026, plus your own MCP server when the chat calls your tools. You still host that MCP server and your site.
  4. Visitor route to a model. AI Wallet runs in desktop Chrome, Edge, Brave and Opera from the Chrome Web Store, and in desktop Firefox from Firefox Add-ons, where it has been public since 18 November 2026. A Safari version is planned. A visitor without the extension can sign in with OpenRouter, or with the TensorPass plan on a site that passes a site key.
  5. Licence. The AI Connect SDK is under Apache 2.0. Its packages have been on npm since 16 November 2026, with provenance signed by the GitHub build. The SDK, AI Wallet, the WordPress plugin, the Shopify app and the site key are free.

The Vercel AI SDK guide in five lines

With the Vercel AI SDK, your existing streamText code stays. You build the provider with createOpenAI({ apiKey: aiconnect.sdkOptions.apiKey, fetch: aiconnect.fetch }). The provider requires a key string, so a placeholder fills it and the wallet ignores it. The model name you pass is ignored too, because the visitor picks the model in the wallet. A request returns 401 when the site is not connected, 403 when the visitor declines or the wallet is locked, and 429 when the visitor's plan is spent.

Two constraints matter for a backend developer. aiconnect.fetch runs in the browser only, so a call that lived in a server route moves into the page, with your tools served over MCP. The SDK retries twice by default; setting maxRetries: 0 returns faster, since on Auto the wallet already switches to the visitor's next account. Non-image files and provider-specific tools such as OpenAI's web search get a 400.

Packages, SDKs and languages

AI Connect works with six AI SDKs without rewriting their code: the OpenAI, Anthropic and Google Gen AI SDKs, the Vercel AI SDK, LangChain and LlamaIndex. The packages are @tensorpass/aiconnect for the connection and its fetch, @tensorpass/aiconnect-react for the connect window and the useAiConnect and useAiChat hooks, and @tensorpass/aiconnect-design for the --aic-* CSS tokens. AI Wallet and the connect window are available in English, French, Hebrew, Arabic and simplified Chinese, right to left in Hebrew and Arabic. The 0.1.11 release of 29 November 2026 describes AI Wallet 0.1.10. On the throughput tables of the best LLM gateways, TensorPass has no row, since it adds no proxy of yours between the page and the model.

Combinations that work for a public chat

The seven tools do not exclude each other. Read the job column first: the best LLM gateways for one row are the wrong pick for the next.

JobTool that fitsPayer
Internal agents and evaluation jobsLiteLLM or BifrostYour provider keys
Public chat on marketing pagesTensorPass or OpenRouter OAuthThe visitor
Chat UI code in a Next.js appVercel AI SDKSet by the fetch you pass
Customer workspace behind loginLibreChat with user_provided keysEach signed-in user
Team chat on local modelsOpen WebUI with OllamaYour hardware
One developer's own subscriptionsSubrouterThat developer

Four combinations cover the cases we see on SaaS marketing sites.

LiteLLM inside, TensorPass outside. Keep LiteLLM for internal agents, evaluation jobs and support tooling, where your keys and budgets belong. Serve the public chat through AI Connect, so visitor questions never reach your proxy. Your LiteLLM spend then tracks employee usage only.

Vercel AI SDK with aiconnect.fetch. If your chat UI already uses useChat or streamText, swap the provider's fetch and move the call into the page. Tools you exposed through server actions move behind your MCP server. The SDK keeps the tool loop with stepCountIs(4) or whatever limit you set.

OpenRouter as the fallback sign-in. OpenRouter is one of the 14 TensorPass sign-ins. A visitor without AI Wallet signs in with OpenRouter from the page, and the answer bills their OpenRouter credits. You reach the OpenRouter catalogue of 700+ models without building the OAuth callback and key table yourself.

LibreChat for logged-in customers. If your product has an authenticated area where customers already hold accounts, LibreChat with user_provided keys gives power users a full chat with their own API keys. Keep it behind login; the marketing page stays on a lighter route.

The combination to avoid is a LiteLLM proxy with your production keys wired straight to an anonymous public chat with no budget. On a 4 GB server, LiteLLM's 55 requests per second on one worker caps throughput, while your provider invoice has no such cap.

Key exposure and prompt injection on a public chat

A public chat carries two risks that an internal dashboard keeps behind login: a leaked secret that spends money, and prompt injection, text in a visitor message or a fetched page that tries to override your instructions. Throughput lists of the best LLM gateways leave this column out. The seven tools place the spending secret in different spots, so the reach of a leak differs.

  1. LiteLLM. Your real provider keys sit in the proxy config or a secret manager. Virtual keys scope access, and Enterprise adds key rotation, JWT authentication and licensed guardrails, including hide_secrets and lakera_prompt_injection.
  2. OpenRouter OAuth. Each visitor key can spend that visitor's credits until they revoke it. A breach of your key table exposes every connected visitor.
  3. LibreChat. Keys entered under user_provided are held by your LibreChat server, with the same exposure pattern as the OpenRouter table.
  4. Open WebUI. Your keys sit in its environment, for example OPENAI_API_KEY.
  5. Vercel AI SDK. The key sits wherever you configured the provider. A key placed in browser code is readable by any visitor.
  6. Subrouter. Subscription credentials sit in ~/.subrouter/auth.json on one machine.
  7. TensorPass. For a visitor with AI Wallet, sign-ins and keys belong to the wallet in the visitor's browser. The SDK contains no sign-in or key handling.

On prompt injection, LiteLLM Enterprise is the one tool of the seven whose pages we read that lists a named guardrail for it. A guardrail reduces the risk without removing it. Keep tool permissions narrow on a public chat: read-only tools for catalogue search, and no tool that writes data on behalf of an anonymous visitor.

How we checked each tool on 2 December 2026

This ranking comes from a dated desk check of each tool's own pages, licence files and package registries. We read every source listed at the end on 2 December 2026. Figures taken from the two roundups of the best LLM gateways stay theirs, with the date of each test. We did not rerun Geekflare's latency benchmark; the latency and memory figures above are Geekflare's, measured on 21 October 2026 on a 2 vCPU, 4 GB DigitalOcean Droplet with Ubuntu 24.04, 1,000 sequential requests and 32 clients over 20 seconds.

For each tool, we recorded the version in its registry on the day of reading: LiteLLM 1.112.0 on PyPI, ai 7.0.187 on npm, @subrouter/cli 0.6.1 on npm, LibreChat 0.8.9 from its README, Open WebUI v0.13.5 from its GitHub releases, and AI Connect 0.1.11 from the TensorPass changelog. We read each licence from the raw file in the repository: MIT for LiteLLM outside enterprise/, Apache 2.0 for the Vercel AI SDK, MIT for LibreChat and the Open WebUI License with its branding clause. Subrouter declared no licence on either page we read.

For OpenRouter, we read the pricing page, the FAQ and the OAuth PKCE guide. For TensorPass, we read the docs overview, the providers page, the Vercel AI SDK guide and the changelog. We did not read any provider's terms of service for this page. A hands-on install of each build is the next update of this page, with the commands and outputs dated.

FAQ: best LLM gateways for a public website chat

Which of the best LLM gateways lets a visitor pay for their own answers?

Among the gateways in the 2026 roundups, none moves the payer: LiteLLM, Bifrost, Portkey, Kong and Apache APISIX all bill the keys your server holds. OpenRouter's OAuth PKCE sign-in issues a key tied to the visitor's account, so their credits pay. TensorPass routes each answer to an account the visitor holds in AI Wallet, among 21 accounts listed on 2 December 2026, with OpenRouter as one of them.

Which of the best LLM gateways is fastest in independent tests?

On 21 October 2026, Geekflare ran five gateways on one 2 vCPU, 4 GB server. agentgateway 1.6.0 had the lowest median at 0.46 ms per request, and Apache APISIX 3.19.0 served the most traffic at 4,302 requests per second with 32 clients. LiteLLM 1.106.2 took 18.1 ms and served 55 requests per second on one worker. A model answer takes seconds, so these gaps weigh less on a public chat than the payer per answer does.

Is LiteLLM free for a public chat?

The LiteLLM proxy is MIT licensed outside its enterprise/ directory and charges no platform fee. Single sign-on, audit logs and other Enterprise features need a licence priced by quote, with a 30-day free trial. Every answer on a public chat still bills your own provider keys, so the proxy is free while the inference is yours. LiteLLM budgets cap that spend per key, team or user.

How much does OpenRouter take on each answer?

OpenRouter takes nothing per request. It passes provider prices through with no markup and charges a fee when credits are bought: 5.5% on Standard with a $0.80 minimum, 8% on Business and 5% on crypto payments, as listed on 2 December 2026. With your own provider keys, the first $25,000 of list-price inference each month carries no fee, then 5% of list price applies.

Can I use Open WebUI as the chat on my marketing site?

You can deploy it, with one licence condition. The Open WebUI License forbids altering or removing the Open WebUI branding when a deployment serves more than 50 end users in a rolling 30-day period, unless you hold written permission or an enterprise licence. Open WebUI connects to Ollama and OpenAI-compatible APIs, so each answer runs on your keys or on your own hardware.

Does the Vercel AI SDK work as an LLM gateway?

The Vercel AI SDK is a TypeScript library, version 7.0.187 of ai on 2 December 2026, under Apache 2.0. It unifies calls to OpenAI, Anthropic, Google and other providers inside your code, and by default it routes through the Vercel AI Gateway. Its fetch option lets you replace the transport, which is how AI Connect sends an answer to the visitor's own account while the SDK keeps streaming and tools.

Can Subrouter serve visitors on a website?

Subrouter states in its README that it is for personal use only. It rotates one person's own subscriptions, 10 types listed on 2 December 2026 including Claude Pro and ChatGPT Plus, inside a coding harness such as opencode or Pi. It runs no API server and stores credentials in ~/.subrouter/auth.json on that person's machine. It offers no route for website visitors.

How TensorPass helps you ship the public chat

We built TensorPass for the developer who already runs a gateway internally and wants a public chat with no inference bill per visitor.

The SDK and the wallet. The AI Connect SDK, AI Wallet, the WordPress plugin, the Shopify app, the Agent Skills, the MCP servers and the site key are free. The SDK is under Apache 2.0, and its npm packages carry provenance signed by the GitHub build.

The TensorPass plan. A visitor with no AI account can answer through the TensorPass plan at US$5, US$20 or US$50 a month, paid by the visitor. Your site earns 5% of each plan payment made from its AI window, for 12 months, with a 60-day hold, paid in USDC once US$50 is available.

Done for you. If you prefer that we wire it, TensorPass makes a site AI native in under 24 hours, priced on quote. Questions go to [email protected].

Start with the Vercel AI SDK guide for AI Connect: it shows the fetch swap, the tool loop and the error codes on one page. If you came here from a search for the best LLM gateways, the guide answers the public-chat half of that question.

Your next step: pick a payer before you pick among the best LLM gateways

Write down who pays for a public answer before you compare latency. If the answer is your company, LiteLLM with strict budgets stays a sound choice, and the chart of AI chat options for websites lists the hosted alternatives. If the answer is the visitor, compare OpenRouter's OAuth flow with AI Connect on key custody, then read the three-way comparison of LiteLLM, OpenRouter and TensorPass. The overview of every way to let visitors bring their own AI covers the remaining routes, and the BYOK and bring-your-own-AI tools set against TensorPass go product by product.

Run the check in this order this week. Confirm the payer per answer. Confirm where the key lives. Then test the shortlist on your own traffic, because the best LLM gateways for internal agents and the right route for a public chat can be two different tools on the same site.

Also worth reading:

Sources:

Questions

Which of the best LLM gateways lets a visitor pay for their own answers?
Among the gateways in the 2026 roundups, none moves the payer: LiteLLM, Bifrost, Portkey, Kong and Apache APISIX all bill the keys your server holds. OpenRouter's OAuth PKCE sign-in issues a key tied to the visitor's account, so their credits pay. TensorPass routes each answer to an account the visitor holds in AI Wallet, among 21 accounts listed on 2 December 2026, with OpenRouter as one of them.
Which of the best LLM gateways is fastest in independent tests?
On 21 October 2026, Geekflare ran five gateways on one 2 vCPU, 4 GB server. agentgateway 1.6.0 had the lowest median at 0.46 ms per request, and Apache APISIX 3.19.0 served the most traffic at 4,302 requests per second with 32 clients. LiteLLM 1.106.2 took 18.1 ms and served 55 requests per second on one worker. A model answer takes seconds, so these gaps weigh less on a public chat than the payer per answer does.
Is LiteLLM free for a public chat?
The LiteLLM proxy is MIT licensed outside its enterprise/ directory and charges no platform fee. Single sign-on, audit logs and other Enterprise features need a licence priced by quote, with a 30-day free trial. Every answer on a public chat still bills your own provider keys, so the proxy is free while the inference is yours. LiteLLM budgets cap that spend per key, team or user.
How much does OpenRouter take on each answer?
OpenRouter takes nothing per request. It passes provider prices through with no markup and charges a fee when credits are bought: 5.5% on Standard with a $0.80 minimum, 8% on Business and 5% on crypto payments, as listed on 2 December 2026. With your own provider keys, the first $25,000 of list-price inference each month carries no fee, then 5% of list price applies.
Can I use Open WebUI as the chat on my marketing site?
You can deploy it, with one licence condition. The Open WebUI License forbids altering or removing the Open WebUI branding when a deployment serves more than 50 end users in a rolling 30-day period, unless you hold written permission or an enterprise licence. Open WebUI connects to Ollama and OpenAI-compatible APIs, so each answer runs on your keys or on your own hardware.
Does the Vercel AI SDK work as an LLM gateway?
The Vercel AI SDK is a TypeScript library, version 7.0.187 of ai on 2 December 2026, under Apache 2.0. It unifies calls to OpenAI, Anthropic, Google and other providers inside your code, and by default it routes through the Vercel AI Gateway. Its fetch option lets you replace the transport, which is how AI Connect sends an answer to the visitor's own account while the SDK keeps streaming and tools.
Can Subrouter serve visitors on a website?
Subrouter states in its README that it is for personal use only. It rotates one person's own subscriptions, 10 types listed on 2 December 2026 including Claude Pro and ChatGPT Plus, inside a coding harness such as opencode or Pi. It runs no API server and stores credentials in ~/.subrouter/auth.json on that person's machine. It offers no route for website visitors.
Read the quickstartRead the changelog