AI模型聚合管理中转分发系统,一个应用管理您的所有AI模型,支持将多种大模型转为统一格式调用,支持OpenAI、Claude、Gemini等格式,可供个人或者企业内部管理与分发渠道使用。
|
|
3 settimane fa | |
|---|---|---|
| .github | 1 mese fa | |
| bin | 2 anni fa | |
| common | 4 settimane fa | |
| constant | 4 settimane fa | |
| controller | 4 settimane fa | |
| docs | 3 settimane fa | |
| dto | 4 settimane fa | |
| electron | 1 mese fa | |
| logger | 1 mese fa | |
| middleware | 1 mese fa | |
| model | 1 mese fa | |
| relay | 3 settimane fa | |
| router | 1 mese fa | |
| service | 1 mese fa | |
| setting | 4 settimane fa | |
| types | 1 mese fa | |
| web | 4 settimane fa | |
| .dockerignore | 2 mesi fa | |
| .env.example | 1 mese fa | |
| .gitignore | 1 mese fa | |
| Dockerfile | 2 mesi fa | |
| LICENSE | 5 mesi fa | |
| README.en.md | 4 settimane fa | |
| README.fr.md | 4 settimane fa | |
| README.ja.md | 4 settimane fa | |
| README.md | 4 settimane fa | |
| VERSION | 2 anni fa | |
| docker-compose.yml | 2 mesi fa | |
| go.mod | 1 mese fa | |
| go.sum | 1 mese fa | |
| main.go | 2 mesi fa | |
| makefile | 6 mesi fa | |
| new-api.service | 2 mesi fa |
Quick Start • Key Features • Deployment • Documentation • Help
[!NOTE]
This is an open-source project developed based on One API[!IMPORTANT]
- This project is for personal learning purposes only, with no guarantee of stability or technical support
- Users must comply with OpenAI's Terms of Use and applicable laws and regulations, and must not use it for illegal purposes
- According to the 《Interim Measures for the Management of Generative Artificial Intelligence Services》, please do not provide any unregistered generative AI services to the public in China.
No particular order
Thanks to JetBrains for providing free open-source development license for this project
# 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
🎉 After deployment is complete, visit http://localhost:3000 to start using!
📖 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 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:
For details, please refer to API Documentation - Relay Interface
| Model Type | Description | Documentation |
|---|---|---|
| 🤖 OpenAI GPTs | gpt-4-gizmo-* series | - |
| 🎨 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 | Supports complete call address | - |
[!TIP] Latest Docker image:
calciumion/new-api:latest
| Component | Requirement |
|---|---|
| Local database | SQLite (Docker must mount /data directory) |
| Remote database | MySQL ≥ 5.7.8 or PostgreSQL ≥ 9.6 |
| Container engine | Docker / Docker Compose |
[!WARNING]
- Must set
SESSION_SECRET- Otherwise login status inconsistent- Shared Redis must set
CRYPTO_SECRET- Otherwise data cannot be decrypted
Retry configuration: Settings → Operation Settings → General Settings → Failure Retry Count
Cache configuration:
REDIS_CONN_STRING: Redis cache (recommended)MEMORY_CACHE_ENABLED: Memory cache| Project | Description |
|---|---|
| One API | Original project base |
| Midjourney-Proxy | Midjourney interface support |
| Project | Description |
|---|---|
| neko-api-key-tool | Key quota query tool |
| new-api-horizon | New API high-performance optimized version |
| Resource | Link |
|---|---|
| 📘 FAQ | FAQ |
| 💬 Community Interaction | Communication Channels |
| 🐛 Issue Feedback | Issue Feedback |
| 📚 Complete Documentation | Official Documentation |
Welcome all forms of contribution!