Short answer: One API (Go, MIT) is the original OpenAI-format relay (last formal release v0.6.10, 2025-02-02; last commit on main 2025-02-21); New API (Go, GNU AGPL-3.0) is the active fork, on v1.0.0-rc releases since April 2026 (latest v1.0.0-rc.52, 2026-11-27), adding native /v1/messages, /v1/responses, weighted routing, ClickHouse logs, and seven UI locales; LiteLLM (Python, MIT core plus separate BerriAI Enterprise License for litellm/enterprise/, v1.111.1, 2026-11-29) fits Python/YAML teams needing routing strategies, cross-model fallbacks, and scheduled virtual-key budgets on PostgreSQL.
If you would rather skip provider accounts, databases, and proxy upgrades, a hosted gateway like Router One is the fourth option — and it can also serve New API or One API as one upstream channel. All versions, licenses, routes, and database facts below were verified against source and official docs on 2026-11-30.
Side-by-side comparison (checked 2026-11-30)
| Dimension | One API | New API | LiteLLM Proxy |
|---|---|---|---|
| License | MIT | GNU AGPL-3.0 with section 7 terms (attribution notice and project link stay in modified versions) | MIT core; litellm/enterprise/ under BerriAI Enterprise License |
| Language & deploy | Go (1.20) + React; single binary or Docker | Go (1.26) + React; Docker, Compose, or source | Python (3.10+); pip/uv, Docker, or Helm |
| Database | SQLite default; MySQL/PostgreSQL; optional LOG_SQL_DSN & Redis | SQLite default; MySQL/PostgreSQL; ClickHouse logs; optional Redis | Stateless YAML without DB; PostgreSQL required for virtual keys, spend logs & Admin UI; Redis to share counters across instances |
| Release & status | v0.6.10 (2025-02-02); last commit on main 2025-02-21; not archived | v1.0.0-rc.52 (2026-11-27); rc releases since 2026-04-29, last non-rc v0.13.2 (2026-04-27) | v1.111.1 (2026-11-29) |
| Supported APIs | /v1/chat/completions, embeddings, images, audio; no /v1/messages or /v1/responses | /v1/chat/completions, /v1/messages, /v1/responses (WS & /compact), Gemini native | /v1/chat/completions, /v1/messages, /v1/responses (WS & bridging), pass-through |
| Priority, weight & failover | Highest priority, random on ties (Weight unused); the first retry stays in the top tier, later ones leave it; optional auto-disable | Priority tiers, weighted random within tier; retry steps down; per-channel auto-disable & multi-key | Deployment order, routing strategies (weight, least-busy, latency, usage, cost); num_retries, cross-model fallbacks, cooldowns |
| Token / key limits | Cumulative RemainQuota, unlimited, expiry, model & subnet allowlists | Cumulative RemainQuota, unlimited, expiry, ModelLimits, IP allowlist, groups | Virtual keys (PostgreSQL): max_budget, model allowlist, expiry, RPM/TPM, allowed_routes |
| Budget periods | Cumulative quota only; no scheduled token reset | Cumulative tokens; periodic quota_reset_period on user plans | Native budget_duration (24h, 7d, 30d) & multi-window budget_limits |
| Logging & billing | Ratio multipliers (model × completion × group); SQL logs | Ratios, per-call pricing, cache ratios, tiered expressions; SQL or ClickHouse | Price map (model_prices_and_context_window.json) or custom model_info; PostgreSQL logs & callbacks |
| UI languages | v0.6.10: Chinese, English as a separate justsong/one-api-en image (main has en and zh) | 7 (zh, zh-TW, en, fr, ja, ru, vi) | English Admin UI |
| Best fit | Minimal MIT Go relay for OpenAI-format chat, embeddings, images and audio | Teams wanting a multilingual Go console, Messages/Responses & ratio billing | Python/K8s teams managing YAML routing, fallbacks & scheduled key budgets |
One API vs New API: what actually diverged
New API forked from One API, sharing Go, React, and SQLite startup, with four key differences (checked 2026-11-30):
- Protocol coverage.
songquanpeng/one-api(router/relay.go) serves/v1/chat/completionswithout/v1/messagesor/v1/responsesroutes. New API (v1.0.0-rc.52) natively registers/v1/messages(Claude Code),/v1/responses(Codex CLI, HTTP/WebSocket),/v1/responses/compact(note: Router One has no/v1/responses/compactroute), and Gemini routes. - Weighted routing and multi-key channels. One API stores
Weight, butmodel/ability.goandmodel/cache.gopick randomly on highest-priority ties without reading it. New API (model/channel_cache.go) steps down priority tiers on retry, uses weighted random within a tier, and adds multi-key round-robin and per-channel auto-disable. - Release cadence and license. One API stays MIT (
v0.6.10, 2025-02-02; last commit onmain2025-02-21). New API uses GNU AGPL-3.0 and has shipped onlyv1.0.0-rcreleases since 2026-04-29 (latestv1.0.0-rc.52, 2026-11-27; last non-rc releasev0.13.2), so pin tags and honor AGPL-3.0 on modified network deployments. - Acceptable use policy. Per New API's Acceptable Use Policy (
docs.newapi.ai, checked 2026-11-30), New API is designed for legally authorized scenarios, primarily self-use, internal team use and private deployment; deployers must hold lawful authorization for upstream API keys and model services and comply with upstream terms and applicable laws, with external-service compliance resting on the deployer.
New API vs LiteLLM: Go console vs Python config-first proxy
Both support Chat Completions, Anthropic Messages, and OpenAI Responses, with different operations:
- Database footprint. New API starts on one container with SQLite, adding MySQL, PostgreSQL, Redis, or ClickHouse later. LiteLLM runs statelessly from
config.yaml, while virtual keys,LiteLLM_SpendLogs, and Admin UI require PostgreSQL (plus Redis if several instances should share counters). - Routing and budget periods. New API routes by group, priority, and weight; tokens stay cumulative while periodic resets live on user plans. LiteLLM adds latency, least-busy, usage, and cost routing, cross-model
fallbacks, and native periodic resets (budget_duration,budget_limits) on virtual keys. - Billing and license. New API uses ratio multipliers (API billing multipliers), per-call pricing, and tiered expressions. LiteLLM calculates spend from
model_prices_and_context_window.jsonormodel_info. RootLICENSEapplies MIT to the core and a separate BerriAI Enterprise License tolitellm/enterprise/(dev/testing allowed; production requires a valid BerriAI Enterprise license). - Maintenance. Self-hosting requires timely upgrades; for LiteLLM's 2026 published advisories and fixed releases, see LiteLLM migration.
The fourth option: a hosted gateway (or combining both)
Self-hosting pays off when keys must stay on your network or you operate custom ratio billing. A hosted gateway is the simpler choice when a small team does not want to manage provider accounts, PostgreSQL, and proxy upgrades.
Router One is a hosted LLM API gateway offering https://api.router.one/v1, Anthropic Messages (https://api.router.one), and OpenAI Responses across 40+ catalog models:
- Routing and failover. Requests go to your exact model ID; retryable 429, 5xx, or timeout errors fail over to another healthy route for that same model, with failing routes automatically demoted. Cross-model fallback stays in your code (or
model="auto"). - Billing and logs. Rates are posted on the live model catalog and plans on the pricing page: a billed request uses plan quota when your plan covers that model and has quota left, and the wallet otherwise. Dashboard → Logs records each request the gateway forwards to a model (model, tokens, wallet charge or plan quota used, latency and status). Requests refused before any model is called — a 401 for the key, a 402 for funds, a 429 from the key's or account's own limits, or a 400 or 404 for the model ID or endpoint — leave no record; a streamed request that failed before any output may have none either.
- Per-key controls. A key's spend cap (maxSpend) limits what that key can charge to your wallet: once its cumulative wallet charges reach the cap, its wallet-billed requests return HTTP 402. Requests covered by your plan's quota draw from the account's shared plan quota and do not count toward any key's cap. A key can also carry a daily or monthly budget. It limits what that key can charge to your wallet in the period, resets at midnight Beijing time (UTC+8; monthly budgets on the 1st), and works alongside maxSpend: whichever runs out first stops the key's wallet-billed requests with HTTP 402. Requests covered by your plan's quota do not count toward it. A key can be limited to a model allowlist: it can only call the models you list, model="auto" is refused with HTTP 403, and channel ids such as aws/ or azure/ have to be added separately. Details: LLM API key budgets.
You can also combine both: keep New API or One API for your own console and point it at Router One as one managed upstream channel (New API setup, API relay station, LiteLLM alternative).
FAQ
What is the difference between One API and New API? One API (MIT, last release v0.6.10 on 2025-02-02, last commit on main 2025-02-21) serves OpenAI-format endpoints without /v1/messages or /v1/responses. New API (AGPL-3.0, latest v1.0.0-rc.52 on 2026-11-27) adds native /v1/messages, /v1/responses, weighted routing, ClickHouse logs, and seven UI locales.
What is New API, and does it have a stable v1.0.0 release? New API (QuantumNous/new-api) is an AGPL-3.0 Go/React self-hosted gateway. As of 2026-11-30 the newest release is v1.0.0-rc.52 (2026-11-27) and there is no non-rc v1.0.0; the last non-rc release is v0.13.2 (2026-04-27). Pin tags and test upgrades.
Should I choose New API or LiteLLM for a self-hosted LLM gateway? Pick New API for a lightweight Go console, SQLite startup, multilingual UI, and ratio billing. Pick LiteLLM for Python/Kubernetes teams managing YAML routing strategies, cross-model fallbacks, and periodic virtual-key budgets on PostgreSQL.
What databases do One API, New API, and LiteLLM require? One API and New API start on SQLite and scale to MySQL or PostgreSQL with optional Redis (New API adds ClickHouse via LOG_SQL_DSN). LiteLLM runs statelessly without a DB, while virtual keys, spend logs, and Admin UI require PostgreSQL; without Redis, each LiteLLM worker keeps its own counters.
Can One API and New API serve Claude Code and Codex CLI? One API has no /v1/messages or /v1/responses routes in router/relay.go. New API (v1.0.0-rc.52) and LiteLLM support both; see the New API setup guide to wire New API to Router One.
How do the licenses compare across One API, New API, and LiteLLM? One API is MIT. New API is GNU AGPL-3.0 with section 7 attribution terms, requiring source disclosure for modified network services. LiteLLM's root LICENSE puts the core under MIT and litellm/enterprise/ under a separate BerriAI Enterprise License that requires a valid license in production.
When should I use a hosted gateway instead of self-hosting? Use Router One when you want one endpoint, per-key cumulative and daily/monthly wallet budgets, model allowlists, and request logs without running databases or patching proxies — or wire Router One into New API as an upstream channel.