About One API
One API is an LLM API management and key redistribution system that lets you reach many large language models through the standard OpenAI API format. It is distributed as a single executable and a Docker image, and the repository description is written in both Chinese and English with an English interface available.
It supports a long list of providers, including OpenAI and Azure OpenAI, Anthropic Claude, Google Gemini, Mistral, DeepSeek, Groq, Ollama, Cohere, xAI and many Chinese model services. Administrators can load balance across several channels, use stream mode, deploy on multiple machines, manage tokens with expiry, quotas, IP ranges and allowed models, generate redemption codes, group users and channels with different rates, retry failed requests and customize branding. A management API allows extension without code changes.
One API is licensed under MIT. The README warns that users must follow OpenAI's terms of use and applicable laws, and must not offer unregistered generative AI services to the public in China. It also instructs administrators to change the default root password after the first login.
Key features
- OpenAI-format API for many model providers
- Load balancing across channels
- Token management with quotas and expiry
- Redemption codes and user groups
- Multi-machine deployment
- Automatic retry on failed requests
- Single binary and Docker image
Good fit for
- Managing API keys for several LLM providers
- Giving a team one OpenAI-compatible endpoint
One API: questions and answers
- What is One API used for?
- One API is an open-source LLM API gateway that unifies many model providers behind the OpenAI API format, with key management and redistribution. It is a good fit for managing API keys for several LLM providers and giving a team one OpenAI-compatible endpoint.
- Is One API open source?
- Yes. One API is open source under the MIT licence. Its source code is on GitHub at songquanpeng/one-api and is written mainly in JavaScript.
- Is One API free?
- Yes. One API is open source, so the software itself is free to use.
- Can I self-host One API?
- Yes. One API can be self-hosted on your own server or infrastructure; there is no official hosted version.
- What is One API an alternative to?
- One API is an open-source alternative to OpenRouter and Portkey. Other open-source alternatives to OpenRouter include New API, LiteLLM and LLM Gateway.
- Is One API actively maintained?
- The most recent commit to One API was on 9 January 2026, and the latest release is v0.6.10, published on 2 February 2025. The project has 37k stars on GitHub, with 289 added in the last 30 days.
Open-source alternatives to One API
See all
New API
AI Infrastructure
A unified AI model hub for aggregation & distribution. It supports cross-converting variou
AGPL-3.0vs OpenRouter★ 52k
LiteLLM
AI Infrastructure
The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (o
OSSvs Amazon Bedrock★ 63k
LLM Gateway
AI Infrastructure
Route, manage, and analyze your LLM requests across multiple providers with a unified API
OSSvs Amazon Bedrock★ 1.7k
Helicone
AI Infrastructure
🧊 Open source LLM observability platform. One line of code to monitor, evaluate, and expe
Apache-2.0vs OpenRouter★ 6.3k
Portkey AI Gateway
AI Infrastructure
A blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardra
MITvs Amazon Bedrock★ 13k
Ollama
AI Infrastructure
Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other model
MITvs ChatGPT★ 187k
SaaS alternatives to One API
See all
OpenRouter
AI Infrastructure
Unified API gateway for accessing many large language models from one endpoint
SaaS
Portkey
AI Infrastructure
AI gateway and observability platform for managing LLM requests
SaaS
Tokenwise
AI Infrastructure
One-line LLM proxy that learns from your requests, tests where you overpay and cuts that cost in one click
SaaS
AllToken
AI Infrastructure
Unified API gateway to LLMs from OpenAI, Anthropic and Google with usage tracking and routing
SaaS
api-hub.ai
AI Infrastructure
Single API for accessing many AI models behind one endpoint
SaaS
Polyrouter
AI Infrastructure
Routes your AI traffic through a single endpoint
SaaS

