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
- Built with
- JavaScript
- Tags
- llm
- api-gateway
- openai-api
- key-management
- proxy
- self-hosted
- docker
- ai
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 LiteLLM, New API 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.
Open-source alternatives to One API
See all
LiteLLM
AI Infrastructure
The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (o
OSSvs Amazon Bedrock★ 60k
New API
AI Infrastructure
A unified AI model hub for aggregation & distribution. It supports cross-converting variou
AGPL-3.0vs OpenRouter★ 49k
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.2k
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★ 182k
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
SaaSAI Stats
AI Infrastructure
Database of AI models plus an OpenAI-compatible gateway with usage, pricing and reliability monitoring
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
AnyRouter
AI Infrastructure
Unified LLM gateway that routes coding agents and MCP servers through a single endpoint
SaaS

