# LiteLLM Pricing vs TensorPass: the Gateway Cost Next to a Chat Your Visitors Pay For

Source: https://tensorpass.app/blog/comparisons/battles/litellm-vs-tensorpass-the-cost-of-running-a-gateway-next-to-a-visitor-paid-chat
Published on 5 December 2026.

> LiteLLM pricing starts at $0: the proxy is MIT licensed and self-hosted, and the enterprise licence is quoted on request. A public chat still needs a database, a server, upgrade hours and every token your visitors trigger.

LiteLLM pricing starts at $0: the proxy is MIT licensed and self-hosted, and the enterprise licence is quoted on request with no public figure on 5 December 2026. The free licence leaves you the rest of the bill. A public chat on LiteLLM needs a database, a server, upgrade hours and every token your visitors trigger. This battle adds those lines for a public chat at 10,000 answers a month and sets them against TensorPass, where no gateway runs and each visitor's own AI account pays the tokens. You already run LiteLLM for internal tools. The question here is whether the same proxy should serve strangers on your website.

> **Key takeaways:**
> - LiteLLM Open Source costs $0 on 5 December 2026, and the Enterprise licence is sized to your annual gateway request capacity and priced on request.
> - An illustrative self-hosted budget lands at about $2,060 to $2,330 a month before tokens, of which about $1,730 is 20 engineering hours.
> - 10,000 chat answers of 1,748 input and 60 output tokens on gpt-6.1-terra cost $20.48 at list price on 5 December 2026.
> - Two LiteLLM release incidents in 2026 put three compromised versions on PyPI: 1.82.7 and 1.82.8 on 24 March, 1.107.0 on 21 October.
> - With AI Connect the token bill of the public chat moves to the visitor's account; your server keeps its MCP server.

## LiteLLM pricing: the open source proxy and the enterprise licence

**LiteLLM** is an open source AI gateway: a **proxy** that exposes more than 100 providers behind one OpenAI-compatible API, with keys, budgets and logs in front of them. The LiteLLM pricing page lists two tiers on 5 December 2026. Open Source is "$0" and "Free forever · self-hosted". Enterprise shows no price, only "Talk to sales" and "Annual · sized to your usage".

The free tier covers more than a hobby setup. It ships virtual keys, users and teams, spend tracking, budgets and rate limits, LLM fallbacks, request logging and Prometheus metrics. For a platform team running internal tools, that list covers most of the daily work.

The **enterprise licence** is a key on the same image. LiteLLM describes Enterprise as "the open-source AI Gateway plus single sign-on, audit logs, delegated admin roles, and support", switched on by the `LITELLM_LICENSE` environment variable. Enterprise and Open Source share one image and one version number, so nothing migrates when you buy. A 30-day trial key is available, and purchase runs through AWS Marketplace, Azure Marketplace or a direct invoice.

The licence matters for a public chat on two lines. SSO for the Admin UI is free for up to 5 users; a sixth admin requires the licence. The prompt injection guardrails that call Lakera and Aporia, plus `llamaguard_moderations`, `llmguard_moderations` and `hide_secrets`, sit behind the key. Custom guardrails and Presidio PII masking stay in the open source build.

LiteLLM pricing for Enterprise is no longer public. Older public quotes put a Basic tier at $250 a month and Premium at $30,000 a year; LiteLLM itself does not confirm those figures on 5 December 2026. The pricing page says the licence is priced "to your annual gateway request capacity, deployment architecture, and support needs" and "never per token". The optional 24/7 SLA promises a 1 hour response for Sev 0 and 72 hours for security patches.

## What a self-hosted LiteLLM costs to run each month

Beyond LiteLLM pricing for the licence, a self-hosted proxy carries seven cost lines before the first token. LiteLLM publishes no total cost of ownership, so every figure below is an estimate or an input you price yourself.

1. **Compute.** The production guide starts load tests at 1 vCPU and 4 GiB of memory per worker; three high availability instances come to about $150 to $250 a month in one illustrative budget.
2. **PostgreSQL.** Virtual keys and spend tracking require a database. A managed instance with backups costs about $100 to $200 a month in the same budget, and up to $400 in its prose.
3. **Redis.** LiteLLM asks for Redis 7.0 or newer as soon as you run more than one proxy instance.
4. **Load balancer.** About $30 to $50 a month.
5. **Monitoring and logs.** About $50 to $100 a month, before tuning time.
6. **Engineering and on call.** About 20 hours a month, valued at roughly $1,730 on a $150,000 salary.
7. **Upgrades and incident response.** Unpriced in every source we read, and real in 2026.

The illustrative total is about $2,060 to $2,330 a month before tokens. The same publisher labels the table "assumptions, not measured data". A second estimate sizes the staff line at 0.2 to 0.5 full time engineers on $120,000 to $150,000 salaries, about $2,000 to $6,250 a month before benefits.

Jiquan Ngiam, Co-founder and CEO of Mintive, writes: "There is no universal model-spend threshold at which self-hosting becomes cheaper." Both cost guides come from vendors of competing gateways. We use their line items and keep their totals as ranges.

Your own case is smaller. 10,000 answers in 30 days average 333 answers a day. At that rate the guide's starting point of 1 vCPU and 4 GiB for one worker is the first size to load test, and the cheapest honest setup is one VM, one managed Postgres and your hours. The hours stay, because the gateway still needs patching.

### Launching the proxy: version 1.112.2 on 5 December 2026

GitHub marks LiteLLM v1.112.2 as the latest stable release, published on 4 December 2026, next to v1.108.25 on the LTS line. We read the Docker quickstart on 5 December 2026. Its compose file starts the proxy on port 4000 with PostgreSQL. The `.env` file needs `LITELLM_MASTER_KEY` and `LITELLM_SALT_KEY`, both starting with `sk-`. The salt key encrypts the provider keys you add in the UI; changing it later leaves them unreadable. The guide asks you to pin a tested release tag or digest before production, so your compose file names `ghcr.io/berriai/litellm:v1.112.2` instead of `latest`. Without a database the proxy still answers, but a request that carries a virtual key fails with `No connected db.` In production the guide adds `LITELLM_MODE="PRODUCTION"`, `json_logs: true`, spend writes batched every 60 seconds and one worker per pod on Kubernetes. That is the floor for a public chat: an image tag you track, two secrets you guard, a database you back up.

## The token bill at 10,000 public answers

LiteLLM pricing adds no markup to provider prices. Your site pays every token the public chat sends.

On 5 December 2026, gpt-6.1-terra lists at $1.00 per million input tokens and $5.00 per million output tokens on short context. A chat answer of 1,748 input tokens and 60 output tokens costs $0.001748 for the input and $0.000300 for the output, $0.002048 in all. At 10,000 answers that is $20.48 a month. A retrieval answer that sends 8,000 input tokens of context and returns 400 tokens costs $0.010, so $100 a month at the same traffic.

The token line is small next to the hours. It also has no ceiling of its own. A public chat answers anyone who opens the page, and a scraper or a prompt loop multiplies the input tokens without a visitor ever reading the answer. LiteLLM budgets and rate limits cap the damage per key. A public widget that runs on one virtual key shares that budget across every visitor, so the cap stops the chat for all of them when it trips.

On the cheaper gpt-6-luna at $0.10 and $0.50 per million tokens, the same chat answer costs $0.0002048, about $2.05 for 10,000 answers. Cheaper models shrink the token line. The gateway line stays the same size.

![A padlock on a server keyboard beside unplugged network cables, for the 2026 LiteLLM release incidents](https://renderings.laboetie.io/media/am6YqUxhWkRgDowuWD0qK/w2560)

## The 2026 supply chain incidents and the clean releases

Malicious LiteLLM releases reached users twice in 2026, and both times through the open source release path. On 24 March 2026, litellm 1.82.7 and 1.82.8 reached PyPI with malicious code; LiteLLM reports they were live from 10:39 UTC for about 40 minutes before PyPI quarantined them, and it flags installs up to 16:00 UTC. Users of the official proxy Docker image were not affected that day. LiteLLM advised pinning v1.82.6 and announced v1.83.0 as a clean release on 30 March. On 21 October 2026, attackers pushed v1.107.0 through LiteLLM's own release pipeline with GitHub CLI credentials of three developers. The PyPI wheels were live from 11:39 to 13:23 UTC, and the Docker Hub tags `v1.107.0`, `latest`, `main-latest` and `main-stable` stayed compromised until 14:20 UTC. LiteLLM states that customers on the private enterprise release were not impacted, and it asks everyone else to pin 1.106.2, rebuild from scratch and rotate every provider key, master key and `DATABASE_URL` password the host could reach.

Two facts follow for a platform engineer. A `latest` tag pulled on 21 October between 11:46 and 14:20 UTC installed the October payload. A gateway that holds your provider keys turns a package compromise into a key rotation across every provider you route.

## The same chat on TensorPass: no gateway, one MCP server

**AI Connect** is our open source SDK under Apache 2.0, and it answers in the visitor's browser with the AI account the visitor connects in **AI Wallet**. Our existing SDKs guide shows the switch on the OpenAI SDK: `new OpenAI(aiconnect.sdkOptions)`. The guide states that "No request reaches the address the SDK targets." The API key is a placeholder the wallet ignores, and the visitor chooses the model in the wallet.

At 10,000 answers the token line of your site falls from $20.48 to $0, because each visitor's ChatGPT, Claude or Gemini plan answers. No proxy runs, so the Postgres for spend logs, the Redis for shared limits and the release tag you track leave the bill. A scraper that loops on your chat spends its own account.

Your server keeps one job. Catalogue search, order lookup and any action on your data stay on your server as tools on an **MCP server**, which the model calls from the page. You host it, patch it and pay for it. The guide names its limits on 5 December 2026: embeddings, image and audio endpoints return 404, and `aiconnect.fetch` answers in the browser only, with a 401 on a server. On Auto the wallet already falls back to the visitor's other accounts, so you can pass `maxRetries: 0`.

## Keeping LiteLLM for internal traffic

Your internal tools stay where they are. Employee assistants, batch jobs and agents that run on server keys are the traffic LiteLLM was built for: virtual keys per team, budgets, fallbacks and spend reports. Those requests carry your company's keys, so a gateway that meters them pays for itself in control.

The public chat has another payer. Splitting the two removes the shared key from the public widget and keeps your proxy's spend logs about your own teams. It also keeps the LiteLLM pricing question narrow: SSO beyond 5 admins and audit logs remain internal needs, priced against internal use.

[Every battle against TensorPass](/blog/comparisons/battles) sets the other gateways and wallets on the same question. Teams leaving the proxy for their site chat compare [LiteLLM alternatives](/blog/comparisons/alternatives/litellm-alternatives-without-a-gateway-for-your-site-chat), and the arena ranks [multi-provider AI for a website](/blog/comparisons/arenas/multi-provider-ai-for-a-website-litellm-openrouter-vercel-ai-sdk-ranked) across seven tools.

## LiteLLM pricing against TensorPass at 10,000 answers

The table adds the token line of the public chat to LiteLLM pricing and to each gateway line. Figures are monthly, in US dollars, read on 5 December 2026; ranges come from the illustrative budgets above.

| Monthly line, 10,000 public answers | LiteLLM self-hosted | TensorPass with AI Connect |
| :- | :- | :- |
| Software licence | $0 (MIT), Enterprise quoted | $0 (Apache 2.0 SDK, free site key) |
| Compute for the gateway | $150 to $250 for 3 instances | No gateway |
| PostgreSQL for keys and spend | $100 to $400 | No gateway database |
| Load balancer and monitoring | $80 to $150 | None for the chat |
| Engineering and on call | about $1,730 for 20 hours | Hours on your MCP server |
| Tokens, gpt-6.1-terra chat answer | $20.48 | $0, paid by each visitor's account |
| Tokens, 8,000 token retrieval answer | $100 | $0, paid by each visitor's account |
| Server you still run | Proxy, Postgres, Redis above 1 instance | Your MCP server |

## FAQ: LiteLLM pricing and a public chat

### Is LiteLLM pricing per token?

No. The open source proxy costs $0 under the MIT licence, and the enterprise licence is priced "to your annual gateway request capacity, deployment architecture, and support needs", never per token, on the pricing page read on 5 December 2026. Providers bill you their own list prices for every token. At 10,000 chat answers on gpt-6.1-terra, that provider line comes to $20.48 a month.

### How much does the LiteLLM enterprise licence cost?

LiteLLM publishes no price on 5 December 2026. Sales quote the annual licence on request and reply within one business day. Older public quotes put a Basic tier at $250 a month and Premium at $30,000 a year; LiteLLM does not confirm them. A 30-day trial key is emailed on request, and purchase runs direct, through AWS Marketplace or through Azure Marketplace.

### Which LiteLLM versions were compromised in 2026?

Three PyPI versions. Releases 1.82.7 and 1.82.8 were live on 24 March 2026 from 10:39 UTC for about 40 minutes. Release 1.107.0 was live on 21 October 2026 from 11:39 to 13:23 UTC on PyPI and until 14:20 UTC on Docker Hub. LiteLLM points users to 1.82.6 or 1.83.0 for March and to 1.106.2 for October.

### Does TensorPass remove every server cost of a site chat?

No. With AI Connect the visitor's account pays the tokens and no gateway runs. Your site still hosts the MCP server that exposes its tools, such as catalogue search, and pays for that hosting. The AI Connect SDK, AI Wallet and the site key are free, and the existing SDKs guide on 5 December 2026 lists the endpoints that return 404.

## How TensorPass moves your public chat off the gateway

We keep your SDK code and change who pays for each answer. The existing SDKs guide covers the OpenAI SDK, the Anthropic SDK, Google Gen AI, the Vercel AI SDK, LangChain and LlamaIndex.

**The SDK.** AI Connect is under Apache 2.0, public on GitHub since 12 November 2026, and its four packages are on npm under the @tensorpass scope since 16 November 2026. AI Connect 0.1.12 reached npm on 2 December 2026.

**The wallet.** AI Wallet runs in desktop Chrome, Edge, Brave and Opera from the Chrome Web Store, and in desktop Firefox from Firefox Add-ons, public on both since 18 November 2026.

**The plan for visitors without an AI account.** The TensorPass plan costs 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.

The SDK, the wallet, the MCP servers and the site key are free. If you would rather hand the work over, we make a site AI native in under 24 hours, priced on quote. Start with [the existing SDKs guide](/docs/guides/existing-sdks) and point your current chat code at AI Connect.

## Your next steps before the public chat goes live on LiteLLM

Price the seven lines with your own cloud bill and your own hours before you route the public chat through the proxy. Pin `v1.112.2` or the LTS tag, and write down who rotates the provider keys the next time a release goes wrong. Then compare that monthly figure with a chat that runs no gateway. LiteLLM pricing stays at $0 for the licence; the gateway, the hours and the $20.48 to $100 token line at 10,000 answers are the part your site pays.

**Also worth reading:**

- [Every battle against TensorPass](/blog/comparisons/battles)
- [LiteLLM alternatives without a gateway for your site chat](/blog/comparisons/alternatives/litellm-alternatives-without-a-gateway-for-your-site-chat)
- [Multi-provider AI for a website ranked](/blog/comparisons/arenas/multi-provider-ai-for-a-website-litellm-openrouter-vercel-ai-sdk-ranked)
- [Use an existing AI SDK with AI Connect](/docs/guides/existing-sdks)

**Sources:**

- [Pricing](https://www.litellm.ai/pricing): LiteLLM, read 5 December 2026
- [Enterprise](https://docs.litellm.ai/docs/enterprise): LiteLLM documentation, read 5 December 2026
- [Production best practices](https://docs.litellm.ai/docs/proxy/prod): LiteLLM documentation, read 5 December 2026
- [Docker quickstart](https://docs.litellm.ai/docs/proxy/docker_quick_start): LiteLLM documentation, read 5 December 2026
- [Releases](https://github.com/BerriAI/litellm/releases): BerriAI on GitHub, read 5 December 2026
- [Security Update: Suspected Supply Chain Incident](https://docs.litellm.ai/blog/security-update-march-2026): LiteLLM, 24 March 2026
- [Security incident of 21 October 2026](https://docs.litellm.ai/blog/security-incident-oct-21-2026): LiteLLM, 21 October 2026
- [LiteLLM Pricing 2026: Open-Source and Enterprise Cost Breakdown](https://www.truefoundry.com/blog/litellm-pricing-guide): TrueFoundry, 30 November 2026
- [LiteLLM Pricing: Open Source vs Enterprise and Total Cost Factors](https://www.mintive.com/blog/litellm-pricing): Mintive, 27 October 2026
- [API pricing](https://developers.openai.com/api/docs/pricing): OpenAI, read 5 December 2026
- [Use an existing AI SDK](https://tensorpass.app/docs/guides/existing-sdks): TensorPass docs, read 5 December 2026
- [Changelog](https://tensorpass.app/docs/changelog): TensorPass docs, read 5 December 2026

## Questions

**Is LiteLLM pricing per token?**
No. The open source proxy costs $0 under the MIT licence, and the enterprise licence is priced "to your annual gateway request capacity, deployment architecture, and support needs", never per token, on the pricing page read on 5 December 2026. Providers bill you their own list prices for every token. At 10,000 chat answers on gpt-6.1-terra, that provider line comes to $20.48 a month.

**How much does the LiteLLM enterprise licence cost?**
LiteLLM publishes no price on 5 December 2026. Sales quote the annual licence on request and reply within one business day. Older public quotes put a Basic tier at $250 a month and Premium at $30,000 a year; LiteLLM does not confirm them. A 30-day trial key is emailed on request, and purchase runs direct, through AWS Marketplace or through Azure Marketplace.

**Which LiteLLM versions were compromised in 2026?**
Three PyPI versions. Releases 1.82.7 and 1.82.8 were live on 24 March 2026 from 10:39 UTC for about 40 minutes. Release 1.107.0 was live on 21 October 2026 from 11:39 to 13:23 UTC on PyPI and until 14:20 UTC on Docker Hub. LiteLLM points users to 1.82.6 or 1.83.0 for March and to 1.106.2 for October.

**Does TensorPass remove every server cost of a site chat?**
No. With AI Connect the visitor's account pays the tokens and no gateway runs. Your site still hosts the MCP server that exposes its tools, such as catalogue search, and pays for that hosting. The AI Connect SDK, AI Wallet and the site key are free, and the existing SDKs guide on 5 December 2026 lists the endpoints that return 404.