

One API is an open-source LLM gateway originally developed by songquanpeng that proxies dozens of LLM providers behind a single OpenAI-compatible API. It includes built-in user management, token-based quota enforcement, and a multi-tenant admin UI, functioning as a self-hostable OpenAI-compatible service with user accounts and per-user billing built in.
One API routes requests across 30+ providers — OpenAI, Anthropic, Google, Baidu, Alibaba, Tencent, iFlytek, Moonshot, Zhipu, DeepSeek, Ollama, and OpenAI-compatible endpoints — and translates each request into the upstream's native format. Operators configure channels for each provider (an upstream API key plus routing weight), and the gateway distributes requests across channels with weighted load balancing and failover.
End users get accounts with email verification, password reset, and token-denominated wallets. Each request deducts tokens at configurable per-model rates; the API layer rejects requests once the wallet runs out. The admin UI surfaces usage logs and statistics per user, channel, model, and time range.
MIT. The full feature set is in the open-source repo with no paid tier. The upstream project is currently in slower maintenance, with active feature development happening in forks — QuantumNous's new-api is the most active of these.
Single Docker container plus MySQL or SQLite. Documentation is Chinese-first with community English translations.