one-api-pro
oneapi-pro is an enterprise-grade AI API Gateway built on oneapi(one-api). It has undergone a full architectural redesign, adding support for subscription pla
What is one-api-pro?
oneapi-pro is an enterprise-grade AI API Gateway built on oneapi(one-api). It has undergone a full architectural redesign, adding support for subscription plans, active-active clusters, precise billing. 本项目与new-api | sub2api不同之处是oneapi-pro是面向企业AI网关的应用场景,并不适用于中转站
Overview of one-api-pro
What it is
one-api-pro is an enterprise-grade AI API gateway built on one-api (one-api). It has undergone a full architectural redesign, adding support for subscription plans, active-active clusters, and precise billing. It is designed for enterprise AI gateway use cases, not for relay stations.
Key features
- Visual dashboard built with Vue 3 and Arco Design, showing key metrics, usage trends, and per-model distribution.
- Fine-grained token management with per-model allowlists, IP restrictions, quota caps, expiration, and unlimited quotas.
- Subscription and plan system supporting token- or request-based billing, period-based rate limits, and per-model controls.
- Orders and real payments with full audit trail, native integrations for WeChat Pay and Alipay, and automatic upgrade pricing.
- Online top-up (quota balance) with preset amounts, custom amounts, and configurable exchange rate.
- Decentralized active-active cluster with each node running independent MySQL and Redis, synchronized via application-layer events.
- 30+ model providers unified behind an OpenAI-compatible interface, precise cost accounting, channel load balancing, multi-level permissions, and enterprise-grade security.
Use cases
- Enterprise AI API gateway managing multiple AI model providers under a unified interface.
- Billing and quota management for internal teams or external customers.
- Subscription-based AI service offerings with automated payment and plan upgrades.
- High-availability deployment across regions with active-active cluster support.
Getting started
bash git clone https://github.com/modelbus/one-api-pro.git cd one-api-pro cd web sh build.sh cd .. go build -ldflags '-s -w' -o one-api-pro ./one-api-pro --port 3000 --log-dir ./logs Visit http://localhost:3000 and log in with root / 123456.
License and pricing
The license is not stated in the provided metadata. The project is listed as open source.
Based on the project's public README and repository metadata.