One API is a management and relay service that exposes many large-language-model vendors through one OpenAI-compatible HTTP API. It handles keys, channels, quotas, and user accounts from a web console.
Overview
One API centralizes access to diverse LLM backends—covering OpenAI, Azure OpenAI, Anthropic Claude, Google Gemini, DeepSeek, domestic Chinese models, and others listed in project docs—behind a single OpenAI-style interface. Administrators add upstream channel keys in the console, create access tokens for clients, and route traffic with optional load balancing across channels.
The web UI supports user registration and login (including email and third-party OAuth options documented in the project), per-token quotas and IP restrictions, channel and user grouping with configurable rate multipliers, redemption codes for balance top-ups, usage ledgers, announcements, and customizable branding pages. Streaming responses are supported so clients can render incremental output, and failed requests can retry automatically per configuration.
Deployment is built around a single executable or Docker image listening on a configurable port, with optional MySQL or PostgreSQL instead of SQLite for production, Redis caching, and multi-node master–slave layouts sharing one database. Environment variables control session secrets, sync intervals, rate limits, proxies, and operational tuning for high concurrency installs.
Downstream apps such as ChatGPT-style web front ends or bots point their API base URL and token at a self-hosted One API instance, optionally pinning a specific channel on admin-issued tokens. The admin API also allows automation without modifying core source when a system access token is configured.
Key features
- OpenAI-compatible unified API surface
- Multi-provider channel management
- Token quotas, expiry, and IP allowlists
- Load balancing across upstream keys
- Streaming chat completions
- User groups and billing multipliers
- Docker and bare-binary deployment
- Redis-backed multi-server scaling
Use cases
- Sharing one API key pool across a team
- Reselling or budgeting model usage
- Pointing chat UIs at private endpoints
- Mixing Azure, OpenAI, and Claude channels
- Self-hosted LLM gateway on company infra