One API
App : A product you use directly
The original model API manager: a single binary that presents many providers behind an OpenAI-compatible interface.
One API paved the way for self-hosted gateways, and many projects derive from it, including New API. It groups providers behind an OpenAI-format API, balances load, and manages tokens, quotas and groups. It is very well served for Chinese providers. For a new deployment, compare it with New API, which is richer in routing and permission features. A security point not to miss: the administrator account is created with a known default password, to be changed at first login. The repository has had no activity for eleven months: best kept for existing installations.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
One API addresses a common problem: every AI model provider has its own API, its own keys and its own pricing. This self-hosted software brings them together behind a single address that follows the OpenAI API format. Your usual tools can connect to it by simply changing the base address and the key.
In practice, you deploy the application with Docker or from a single binary, then log in as administrator. On the Channels page, you add your providers' keys, then you create access tokens on the Tokens page. Requests are then relayed to the configured channels, with load balancing when several channels are available.
The project also handles quotas, user and channel groups, redemption codes and several login methods. It is particularly well served for Chinese providers, in addition to OpenAI, Azure, Claude, Gemini or Mistral. It is aimed at people comfortable with self-hosting who want to share or centralize access to several models.
It is not suited if you are looking for a turnkey service with no installation or administration. For a new deployment, compare it with New API, which is richer in routing and permission features. The code is under the MIT license, with an obligation to keep the project's mention and link in the page footer, unless the author gives permission.
What it offers
- ·Exposes many providers (OpenAI, Azure OpenAI, Claude, Gemini, Mistral, DeepSeek, Ollama, xAI and many Chinese players) behind an OpenAI-format API.
- ·Spreads load across several channels and can automatically retry on failure.
- ·Manages access tokens with expiration date, quota, allowed IP ranges and allowed models.
- ·Lets you create user groups and channel groups with different pricing multipliers.
- ·Offers batch-generated redemption codes, detailed quota tracking, display in dollars and invitation rewards.
- ·Provides several login methods: email with a whitelist, GitHub, Feishu and WeChat Official Account (extra deployment required).
- ·Supports streaming mode, the image generation API and model mapping to redirect a request to another model.
- ·Can be deployed across several machines and customized: system name, logo, footer, home and About pages, management API.
In practice
- Price
- Free
- Available on
- web, api
- FR interface
- No
Security and data
- Rating
- Security: one caveat, see the card
- Your data
- Local or cloud depending on use
- Maintenance
- Inactive for over six months
- Last release
- 2 February 2025
Links and repository checked on 30 November 2026 · added on 30 November 2026
How to install One API
docker run --name one-api -d --restart always -p 3000:3000 -e TZ=Asia/Shanghai -v /home/ubuntu/data/one-api:/data justsong/one-api