Loading repository dataβ¦
Loading repository dataβ¦
QuantumNous / repository
A unified AI model hub for aggregation & distribution. It supports cross-converting various LLMs into OpenAI-compatible, Claude-compatible, or Gemini-compatible formats. A centralized gateway for personal and enterprise model management. π₯
π₯ Next-Generation LLM Gateway and AI Asset Management System
[!IMPORTANT]
- This project is intended solely for lawful and authorized AI API gateway, organization-level authentication, multi-model management, usage analytics, cost accounting, and private deployment scenarios.
- Users must lawfully obtain upstream API keys, accounts, model services, and interface permissions, and must comply with upstream terms of service and applicable laws and regulations.
- Users should ensure their use complies with upstream terms of service and applicable laws and regulations.
- When providing generative AI services to the public, users should comply with applicable regulatory requirements and fulfill all filing, licensing, content safety, real-name verification, log retention, tax, and upstream authorization obligations required by their jurisdiction.
# Clone the project
git clone https://github.com/QuantumNous/new-api.git
cd new-api
# Edit docker-compose.yml configuration
nano docker-compose.yml
# Start the service
docker-compose up -d
# Pull the latest image
docker pull calciumion/new-api:latest
# Using SQLite (default)
docker run --name new-api -d --restart always \
-p 3000:3000 \
-e TZ=Asia/Shanghai \
-v ./data:/data \
calciumion/new-api:latest
# Using MySQL
docker run --name new-api -d --restart always \
-p 3000:3000 \
-e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" \
-e TZ=Asia/Shanghai \
-v ./data:/data \
calciumion/new-api:latest
π‘ Tip:
-v ./data:/datawill save data in thedatafolder of the current directory, you can also change it to an absolute path like-v /your/custom/path:/data
π After deployment is complete, visit http://localhost:3000 to start using!
[!WARNING] When operating this project as a public generative AI service or API resale service, users should first complete all required filing, licensing, content safety, real-name verification, log retention, tax, payment, and upstream authorization obligations.
π For more deployment methods, please refer to Deployment Guide
Quick Navigation:
| Category | Link |
|---|---|
| π Deployment Guide | Installation Documentation |
| βοΈ Environment Configuration | Environment Variables |
| π‘ API Documentation | API Documentation |
| β FAQ | FAQ |
| π¬ Community Interaction | Communication Channels |
For detailed features, please refer to Features Introduction
| Feature | Description |
|---|---|
| π¨ New UI | Modern user interface design |
| π Multi-language | Supports Simplified Chinese, Traditional Chinese, English, French, Japanese |
| π Data Compatibility | Fully compatible with the original One API database |
| π Data Dashboard | Visual console and statistical analysis |
| π Permission Management | Token grouping, model restrictions, user management |
API Format Support:
Intelligent Routing:
Format Conversion:
Reasoning Effort Support:
OpenAI series models:
o3-mini-high - High reasoning efforto3-mini-medium - Medium reasoning efforto3-mini-low - Low reasoning effortgpt-5-high - High reasoning effortgpt-5-medium - Medium reasoning effortgpt-5-low - Low reasoning effortClaude thinking models:
claude-3-7-sonnet-20250219-thinking - Enable thinking modeGoogle Gemini series models:
gemini-2.5-flash-thinking - Enable thinking modegemini-2.5-flash-nothinking - Disable thinking modegemini-2.5-pro-thinking - Enable thinking modegemini-2.5-pro-thinking-128 - Enable thinking mode with thinking budget of 128 tokens-low, -medium, or -high to any Gemini model name to request the corresponding reasoning effort (no extra thinking-budget suffix needed).For details, please refer to API Documentation - Gateway Interface
| Model Type | Description | Documentation |
|---|---|---|
| π€ OpenAI-Compatible | OpenAI compatible models | Documentation |
| π€ OpenAI Responses | OpenAI Responses format | Documentation |
| π¨ Midjourney-Proxy | Midjourney-Proxy(Plus) | Documentation |
| π΅ Suno-API | Suno API | Documentation |
| π Rerank | Cohere, Jina | Documentation |
| π¬ Claude | Messages format | Documentation |
| π Gemini | Google Gemini format | Documentation |
| π§ Dify | ChatFlow mode | - |
| π― Custom upstream | Supports configuring legally authorized upstream endpoints | - |