If your product talks to more than one large language model, you have probably considered LiteLLM, or started looking for a LiteLLM alternative. LiteLLM is an open-source proxy that puts a single OpenAI-compatible endpoint in front of every provider. It is solid infrastructure, and this post will not pretend otherwise.
The useful question is not which tool is better. It is who owns the model list, and what that ownership costs you per month. What follows compares a self-hosted LiteLLM proxy with a managed gateway (AtmoRouter, which we build) on the three things that decide it in practice: model-list maintenance, operational surface, and token spend. Every number below is illustrative and labelled as such; rates move, and the model page is authoritative.
Same call shape, two deployment models
Both options collapse to a base URL and a key in your client. The similarity ends there.
LiteLLM is a proxy you run: a config.yaml, then litellm --config config.yaml, serving on 0.0.0.0:4000. You own the process, the host, and the upgrade schedule. The core proxy is open source; some features require an Enterprise license, exported as LITELLM_LICENSE.
AtmoRouter is hosted. You create a key in the dashboard and point the client at https://atmorouter.dev/v1 for the OpenAI Chat Completions API, or at https://atmorouter.dev with the Anthropic SDK, which appends /v1/messages itself. Nothing to deploy.
The model list: config.yaml versus GET /v1/models
In LiteLLM the model list is a file you maintain. Each entry maps a user-facing model_name to a litellm_params block:
yamlmodel_list:
- model_name: fast-coder # what your client sends
litellm_params:
model: openai/zai/glm-5.3 # what LiteLLM sends upstream
api_base: https://atmorouter.dev/v1
api_key: os.environ/ATMOROUTER_API_KEY
- model_name: bulk-summariser
litellm_params:
model: openai/mm/MiniMax-M3
api_base: https://atmorouter.dev/v1The openai/ prefix tells LiteLLM to use an OpenAI-compatible handler and passes the rest of the string through as the model id. Two entries sharing a model_name become a load-balanced group.
AtmoRouter has no config file. GET https://atmorouter.dev/v1/models returns the live catalogue with ids, context limits and prices attached; with your own key the response also lists your private combo/<slug> entries. Model strings resolve by exact id — no bare-name aliasing, no fallback. A typo returns 404 model_not_found, and that 404 fires before any balance check, so it never means the wallet is empty. The docs ask you to read the list at startup rather than hardcoding ids.
What you actually operate
Running LiteLLM without a database is easy: one YAML, no keys, no state. The weight arrives when you want per-user keys and spend tracking. At that point the proxy needs Postgres (DATABASE_URL), a master_key beginning with sk-, and keys minted through /key/generate. Add Redis once routing and rate-limit state must be shared. Spend is computed from LiteLLM's bundled price map, so against a custom api_base you set model_info.input_cost_per_token and output_cost_per_token yourself, or the numbers drift.
One detail that bites during upgrades: since v1.103.0, a settings key declared in config.yaml is owned by the file, and the same key written through the Admin UI is refused with a 400 that names the key and its section. Before that version the database won. If your team splits configuration between file and UI, that change is a migration, not a patch.
The hosted surface is smaller: keys, per-key allowlists and rate limits, and usage logs with per-request tokens, latency and cost.
Cost math: tokens are cheap, operations are the variable
Illustrative arithmetic: 200M input tokens and 8M output tokens a month, at "from" prices taken from the live catalogue on 2026-11-17.
| Model id | From input | From output | Illustrative month | |---|---|---|---| | mm/MiniMax-M3 | $0.00075 | $0.003 | ~$0.17 | | zai/glm-5.3 | $0.0035 | $0.011 | ~$0.79 | | alicn/deepseek-v4.1-flash | $0.043125 | $0.1725 | ~$10.01 | | grok/grok-4.6 | $0.07 | $0.21 | ~$15.68 | | cc/claude-sonnet-5-5 | $0.345 | $1.725 | ~$82.80 | | ali/qwen3.8-max-0902 | $0.5 | $1.5 | ~$112.00 |
USD per million tokens. "From" is the lowest advertised offer in the latest snapshot, not a rate promised on every request; each request bills at the offer actually selected, so re-check the model page before you budget.
Read the table as a shape, not a forecast. A small VM plus a managed Postgres runs roughly $20–40 a month before anyone is paid for the hours, and two engineer-hours a month exceed most rows. If your workload sits in the top rows, proxy hosting is your largest line item. If it sits at the bottom, hosting is rounding error and the only variable that matters is the rate you pay. Cached input bills at 10% of the input rate where the model supports caching, which matters for agent loops that resend a long prefix.
Where LiteLLM is the better tool
This post is AtmoRouter-authored, so read this section as a list of reasons not to use us.
- You need a provider or modality the hosted catalogue does not cover the same way. AtmoRouter's inference surface is chat and messages, with no image or video endpoints; LiteLLM handles embeddings and a far wider provider list.
- You want routing logic in code you control: custom strategies, fallback chains across deployments, Redis-backed cooldowns.
- You cannot route traffic through another company's gateway at all — air-gapped, regulated, or internal-only models.
If any of those is a hard requirement, run the proxy and skip the rest.
When a managed gateway is the cheaper answer
The proxy gets expensive when its main job is to be a stable list. You pay in upgrades, in the Postgres and Redis you now page on, and in keeping the price map accurate enough that your cost numbers are true.
The hosted trade is narrower. Failed requests are not billed. Balance is prepaid, so there is no subscription and no seat fee, and a request against an empty balance fails with 402 — a predictable failure instead of a surprise invoice. Each JSON response carries an X-Atmorouter-Cost header holding the exact amount deducted, and streams report the final usage.cost, so reconciliation does not depend on a table you maintain. The price of that is dependence on us: tiers, availability and catalogue contents are ours to change, and the docs say so plainly.
Migration: behind the proxy, or in place of it
Option one keeps LiteLLM and adds AtmoRouter as a deployment; the YAML above is the whole change. Option two removes the proxy, and with it the retry chain that came bundled with it: retry 429, 502 and 503 with exponential backoff, never retry 400, 401, 403 or 404, and treat 402 as a top-up signal rather than a transient error.
Test the failure path before cutover:
bashcurl -s https://atmorouter.dev/v1/chat/completions \
-H "Authorization: Bearer $ATMOROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "zai/glm-5.3", "messages": [{"role": "user", "content": "hi"}]}' \
-D - | head -n 20Check the status line and the X-Atmorouter-Cost header first. Then send the same request with one character changed in the model id: you want 404 and model_not_found, not a quiet downgrade to something cheaper. With a proxy in front you never saw that error, because the proxy resolved the alias for you.
FAQ
Is AtmoRouter a drop-in LiteLLM alternative?
For chat and messages traffic, yes: point an OpenAI-compatible client at https://atmorouter.dev/v1, or the Anthropic SDK at https://atmorouter.dev, and use exact catalogue ids. For embeddings, image generation or providers outside the catalogue, keep LiteLLM.
Can I keep LiteLLM and still use AtmoRouter?
Yes. Add AtmoRouter as a deployment with the openai/ prefix and api_base: https://atmorouter.dev/v1, as in the YAML above. Set input_cost_per_token and output_cost_per_token in model_info if you rely on LiteLLM spend tracking.
How do I know what each request actually cost?
Non-streaming responses carry an X-Atmorouter-Cost header with the amount deducted, and streams report usage.cost at the end. Usage logs show tokens, latency and cost per request.
Do prices in this post stay accurate?
No. They are "from" prices from the live catalogue on 17 November 2026. Rates refresh, so check GET /v1/models or the model page before you budget.
Next step
Create a key at atmorouter.dev and read the catalogue instead of a blog post: GET https://atmorouter.dev/v1/models returns ids, limits and prices, and the migration guide covers moving a client across. If LiteLLM stays in front, the config above is the entire integration; if it does not, start with the retry and fallback patterns so you are not rebuilding them after you remove the proxy.