2024-09-17 03:18:12 +08:00
< div align = "center" >
2023-06-24 11:30:16 +08:00
2024-09-18 01:25:00 +08:00

2023-12-16 21:26:37 +08:00
# New API
2023-06-24 11:30:16 +08:00
2026-01-28 22:38:14 +08:00
🍥 **Next-Generation LLM Gateway and AI Asset Management System**
2024-12-13 20:15:50 +08:00
2025-11-08 22:32:39 +08:00
< p align = "center" >
2026-02-11 20:37:53 +08:00
< a href = "./README.zh_CN.md" > 简体中文< / a > |
< a href = "./README.zh_TW.md" > 繁體中文< / a > |
< strong > English< / strong > |
< a href = "./README.fr.md" > Français< / a > |
2025-11-08 22:32:39 +08:00
< a href = "./README.ja.md" > 日本語< / a >
< / p >
2024-09-17 03:18:12 +08:00
2024-12-13 20:15:50 +08:00
< p align = "center" >
< a href = "https://raw.githubusercontent.com/Calcium-Ion/new-api/main/LICENSE" >
< img src = "https://img.shields.io/github/license/Calcium-Ion/new-api?color=brightgreen" alt = "license" >
2026-02-11 18:14:38 +08:00
< / a > <!--
-->< a href = "https://github.com/Calcium-Ion/new-api/releases/latest" >
2024-12-13 20:15:50 +08:00
< img src = "https://img.shields.io/github/v/release/Calcium-Ion/new-api?color=brightgreen&include_prereleases" alt = "release" >
2026-02-11 18:14:38 +08:00
< / a > <!--
-->< a href = "https://hub.docker.com/r/CalciumIon/new-api" >
2024-12-13 20:15:50 +08:00
< img src = "https://img.shields.io/badge/docker-dockerHub-blue" alt = "docker" >
2026-02-11 18:14:38 +08:00
< / a > <!--
-->< a href = "https://goreportcard.com/report/github.com/Calcium-Ion/new-api" >
2024-12-13 20:15:50 +08:00
< img src = "https://goreportcard.com/badge/github.com/Calcium-Ion/new-api" alt = "GoReportCard" >
< / a >
< / p >
2025-11-08 22:32:39 +08:00
< p align = "center" >
2026-02-22 18:24:42 +08:00
< a href = "https://trendshift.io/repositories/20180" target = "_blank" >
< img src = "https://trendshift.io/api/badge/repositories/20180" alt = "QuantumNous%2Fnew-api | Trendshift" style = "width: 250px; height: 55px;" width = "250" height = "55" / >
2025-11-08 22:32:39 +08:00
< / a >
2026-01-28 13:29:10 +08:00
< br >
< a href = "https://hellogithub.com/repository/QuantumNous/new-api" target = "_blank" >
< img src = "https://api.hellogithub.com/v1/widgets/recommend.svg?rid=539ac4217e69431684ad4a0bab768811&claim_uid=tbFPfKIDHpc4TzR" alt = "Featured| HelloGitHub" style = "width: 250px; height: 54px;" width = "250" height = "54" / >
2026-02-11 18:14:38 +08:00
< / a > <!--
-->< a href = "https://www.producthunt.com/products/new-api/launches/new-api?embed=true&utm_source=badge-featured&utm_medium=badge&utm_campaign=badge-new-api" target = "_blank" rel = "noopener noreferrer" >
2026-01-28 13:29:10 +08:00
< img src = "https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1047693&theme=light&t=1769577875005" alt = "New API - All-in-one AI asset management gateway. | Product Hunt" style = "width: 250px; height: 54px;" width = "250" height = "54" / >
< / a >
2025-11-08 22:32:39 +08:00
< / p >
< p align = "center" >
2026-01-28 22:38:14 +08:00
< a href = "#-quick-start" > Quick Start< / a > •
< a href = "#-key-features" > Key Features< / a > •
< a href = "#-deployment" > Deployment< / a > •
< a href = "#-documentation" > Documentation< / a > •
< a href = "#-help-support" > Help< / a >
2025-11-08 22:32:39 +08:00
< / p >
2024-09-17 03:18:12 +08:00
< / div >
2026-01-28 22:38:14 +08:00
## 📝 Project Description
2024-12-13 20:15:50 +08:00
2026-02-11 20:37:53 +08:00
> [!IMPORTANT]
2026-01-28 22:38:14 +08:00
> - 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](https://openai.com/policies/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》](http://www.cac.gov.cn/2023-07/13/c_1690898327029107.htm), please do not provide any unregistered generative AI services to the public in China.
2025-11-08 22:32:39 +08:00
---
2026-01-28 22:38:14 +08:00
## 🤝 Trusted Partners
2025-11-08 22:32:39 +08:00
< p align = "center" >
2026-01-28 22:38:14 +08:00
< em > No particular order< / em >
2025-11-08 22:32:39 +08:00
< / p >
< p align = "center" >
< a href = "https://www.cherry-ai.com/" target = "_blank" >
< img src = "./docs/images/cherry-studio.png" alt = "Cherry Studio" height = "80" / >
2026-02-11 18:14:38 +08:00
< / a > <!--
-->< a href = "https://github.com/iOfficeAI/AionUi/" target = "_blank" >
2026-02-11 18:05:08 +08:00
< img src = "./docs/images/aionui.png" alt = "Aion UI" height = "80" / >
2026-02-11 18:14:38 +08:00
< / a > <!--
-->< a href = "https://bda.pku.edu.cn/" target = "_blank" >
2026-01-28 22:38:14 +08:00
< img src = "./docs/images/pku.png" alt = "Peking University" height = "80" / >
2026-02-11 18:14:38 +08:00
< / a > <!--
-->< a href = "https://www.compshare.cn/?ytag=GPU_yy_gh_newapi" target = "_blank" >
2026-01-28 22:38:14 +08:00
< img src = "./docs/images/ucloud.png" alt = "UCloud" height = "80" / >
2026-02-11 18:14:38 +08:00
< / a > <!--
-->< a href = "https://www.aliyun.com/" target = "_blank" >
2026-01-28 22:38:14 +08:00
< img src = "./docs/images/aliyun.png" alt = "Alibaba Cloud" height = "80" / >
2026-02-11 18:14:38 +08:00
< / a > <!--
-->< a href = "https://io.net/" target = "_blank" >
2025-11-08 22:32:39 +08:00
< img src = "./docs/images/io-net.png" alt = "IO.NET" height = "80" / >
< / a >
< / p >
---
2026-01-28 22:38:14 +08:00
## 🙏 Special Thanks
2025-11-08 22:32:39 +08:00
< p align = "center" >
< a href = "https://www.jetbrains.com/?from=new-api" target = "_blank" >
< img src = "https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png" alt = "JetBrains Logo" width = "120" / >
< / a >
< / p >
2024-12-13 20:15:50 +08:00
2025-08-21 12:49:56 +08:00
< p align = "center" >
2026-01-28 22:38:14 +08:00
< strong > Thanks to < a href = "https://www.jetbrains.com/?from=new-api" > JetBrains< / a > for providing free open-source development license for this project< / strong >
2025-08-21 12:49:56 +08:00
< / p >
2025-11-08 22:32:39 +08:00
---
2026-01-28 22:38:14 +08:00
## 🚀 Quick Start
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
### Using Docker Compose (Recommended)
2025-11-08 22:32:39 +08:00
```bash
2026-01-28 22:38:14 +08:00
# Clone the project
2025-11-08 22:32:39 +08:00
git clone https://github.com/QuantumNous/new-api.git
cd new-api
2026-01-28 22:38:14 +08:00
# Edit docker-compose.yml configuration
2025-11-08 22:32:39 +08:00
nano docker-compose.yml
2026-01-28 22:38:14 +08:00
# Start the service
2025-11-08 22:32:39 +08:00
docker-compose up -d
```
< details >
2026-01-28 22:38:14 +08:00
< summary > < strong > Using Docker Commands< / strong > < / summary >
2025-11-08 22:32:39 +08:00
```bash
2026-01-28 22:38:14 +08:00
# Pull the latest image
2025-11-08 22:32:39 +08:00
docker pull calciumion/new-api:latest
2026-01-28 22:38:14 +08:00
# Using SQLite (default)
2025-11-08 22:32:39 +08:00
docker run --name new-api -d --restart always \
-p 3000:3000 \
-e TZ=Asia/Shanghai \
-v ./data:/data \
calciumion/new-api:latest
2026-01-28 22:38:14 +08:00
# Using MySQL
2025-11-08 22:32:39 +08:00
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
```
2026-01-28 22:38:14 +08:00
> **💡 Tip:** `-v ./data:/data` will save data in the `data` folder of the current directory, you can also change it to an absolute path like `-v /your/custom/path:/data`
2025-11-08 22:32:39 +08:00
< / details >
---
2026-01-28 22:38:14 +08:00
🎉 After deployment is complete, visit `http://localhost:3000` to start using!
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
📖 For more deployment methods, please refer to [Deployment Guide ](https://docs.newapi.pro/en/docs/installation )
2025-11-08 22:32:39 +08:00
---
2025-08-21 12:49:56 +08:00
2026-01-28 22:38:14 +08:00
## 📚 Documentation
2025-03-12 22:12:09 +08:00
2025-11-08 22:32:39 +08:00
< div align = "center" >
2026-01-28 22:38:14 +08:00
### 📖 [Official Documentation](https://docs.newapi.pro/en/docs) | [](https://deepwiki.com/QuantumNous/new-api)
2025-11-08 22:32:39 +08:00
< / div >
2026-01-28 22:38:14 +08:00
**Quick Navigation:**
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
| Category | Link |
2025-11-08 22:32:39 +08:00
|------|------|
2026-01-28 22:38:14 +08:00
| 🚀 Deployment Guide | [Installation Documentation ](https://docs.newapi.pro/en/docs/installation ) |
| ⚙️ Environment Configuration | [Environment Variables ](https://docs.newapi.pro/en/docs/installation/config-maintenance/environment-variables ) |
| 📡 API Documentation | [API Documentation ](https://docs.newapi.pro/en/docs/api ) |
| ❓ FAQ | [FAQ ](https://docs.newapi.pro/en/docs/support/faq ) |
| 💬 Community Interaction | [Communication Channels ](https://docs.newapi.pro/en/docs/support/community-interaction ) |
2025-03-12 22:12:09 +08:00
2025-11-08 22:32:39 +08:00
---
2025-06-05 02:09:21 +08:00
2026-01-28 22:38:14 +08:00
## ✨ Key Features
2024-12-13 20:15:50 +08:00
2026-01-28 22:38:14 +08:00
> For detailed features, please refer to [Features Introduction](https://docs.newapi.pro/en/docs/guide/wiki/basic-concepts/features-introduction)
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
### 🎨 Core Functions
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
| Feature | Description |
2025-11-08 22:32:39 +08:00
|------|------|
2026-01-28 22:38:14 +08:00
| 🎨 New UI | Modern user interface design |
2026-02-11 20:37:53 +08:00
| 🌍 Multi-language | Supports Simplified Chinese, Traditional Chinese, English, French, Japanese |
2026-01-28 22:38:14 +08:00
| 🔄 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 |
### 💰 Payment and Billing
- ✅ Online recharge (EPay, Stripe)
- ✅ Pay-per-use model pricing
- ✅ Cache billing support (OpenAI, Azure, DeepSeek, Claude, Qwen and all supported models)
- ✅ Flexible billing policy configuration
### 🔐 Authorization and Security
- 😈 Discord authorization login
- 🤖 LinuxDO authorization login
- 📱 Telegram authorization login
- 🔑 OIDC unified authentication
- 🔍 Key quota query usage (with [neko-api-key-tool ](https://github.com/Calcium-Ion/neko-api-key-tool ))
### 🚀 Advanced Features
**API Format Support:**
- ⚡ [OpenAI Responses ](https://docs.newapi.pro/en/docs/api/ai-model/chat/openai/create-response )
- ⚡ [OpenAI Realtime API ](https://docs.newapi.pro/en/docs/api/ai-model/realtime/create-realtime-session ) (including Azure)
- ⚡ [Claude Messages ](https://docs.newapi.pro/en/docs/api/ai-model/chat/create-message )
- ⚡ [Google Gemini ](https://doc.newapi.pro/en/api/google-gemini-chat )
- 🔄 [Rerank Models ](https://docs.newapi.pro/en/docs/api/ai-model/rerank/create-rerank ) (Cohere, Jina)
**Intelligent Routing:**
- ⚖️ Channel weighted random
- 🔄 Automatic retry on failure
- 🚦 User-level model rate limiting
**Format Conversion:**
2026-01-07 20:52:13 +08:00
- 🔄 **OpenAI Compatible ⇄ Claude Messages**
- 🔄 **OpenAI Compatible → Google Gemini**
2026-01-28 22:38:14 +08:00
- 🔄 **Google Gemini → OpenAI Compatible** - Text only, function calling not supported yet
- 🚧 **OpenAI Compatible ⇄ OpenAI Responses** - In development
- 🔄 **Thinking-to-content functionality**
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
**Reasoning Effort Support:**
2025-11-08 22:32:39 +08:00
< details >
2026-01-28 22:38:14 +08:00
< summary > View detailed configuration< / summary >
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
**OpenAI series models:**
2025-11-08 22:32:39 +08:00
- `o3-mini-high` - High reasoning effort
- `o3-mini-medium` - Medium reasoning effort
- `o3-mini-low` - Low reasoning effort
- `gpt-5-high` - High reasoning effort
- `gpt-5-medium` - Medium reasoning effort
- `gpt-5-low` - Low reasoning effort
2026-01-28 22:38:14 +08:00
**Claude thinking models:**
- `claude-3-7-sonnet-20250219-thinking` - Enable thinking mode
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
**Google Gemini series models:**
- `gemini-2.5-flash-thinking` - Enable thinking mode
- `gemini-2.5-flash-nothinking` - Disable thinking mode
- `gemini-2.5-pro-thinking` - Enable thinking mode
- `gemini-2.5-pro-thinking-128` - Enable thinking mode with thinking budget of 128 tokens
- You can also append `-low` , `-medium` , or `-high` to any Gemini model name to request the corresponding reasoning effort (no extra thinking-budget suffix needed).
2025-11-08 22:32:39 +08:00
< / details >
---
2026-01-28 22:38:14 +08:00
## 🤖 Model Support
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
> For details, please refer to [API Documentation - Relay Interface](https://docs.newapi.pro/en/docs/api)
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
| Model Type | Description | Documentation |
2025-11-08 22:32:39 +08:00
|---------|------|------|
2026-01-28 22:50:47 +08:00
| 🤖 OpenAI-Compatible | OpenAI compatible models | [Documentation ](https://docs.newapi.pro/en/docs/api/ai-model/chat/openai/createchatcompletion ) |
| 🤖 OpenAI Responses | OpenAI Responses format | [Documentation ](https://docs.newapi.pro/en/docs/api/ai-model/chat/openai/createresponse ) |
| 🎨 Midjourney-Proxy | [Midjourney-Proxy(Plus) ](https://github.com/novicezk/midjourney-proxy ) | [Documentation ](https://doc.newapi.pro/api/midjourney-proxy-image ) |
| 🎵 Suno-API | [Suno API ](https://github.com/Suno-API/Suno-API ) | [Documentation ](https://doc.newapi.pro/api/suno-music ) |
| 🔄 Rerank | Cohere, Jina | [Documentation ](https://docs.newapi.pro/en/docs/api/ai-model/rerank/creatererank ) |
| 💬 Claude | Messages format | [Documentation ](https://docs.newapi.pro/en/docs/api/ai-model/chat/createmessage ) |
| 🌐 Gemini | Google Gemini format | [Documentation ](https://docs.newapi.pro/en/docs/api/ai-model/chat/gemini/geminirelayv1beta ) |
2026-01-28 22:38:14 +08:00
| 🔧 Dify | ChatFlow mode | - |
| 🎯 Custom | Supports complete call address | - |
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
### 📡 Supported Interfaces
2025-11-08 22:32:39 +08:00
< details >
2026-01-28 22:38:14 +08:00
< summary > View complete interface list< / summary >
2026-01-28 22:50:47 +08:00
- [Chat Interface (Chat Completions) ](https://docs.newapi.pro/en/docs/api/ai-model/chat/openai/createchatcompletion )
- [Response Interface (Responses) ](https://docs.newapi.pro/en/docs/api/ai-model/chat/openai/createresponse )
- [Image Interface (Image) ](https://docs.newapi.pro/en/docs/api/ai-model/images/openai/post-v1-images-generations )
2026-01-28 22:38:14 +08:00
- [Audio Interface (Audio) ](https://docs.newapi.pro/en/docs/api/ai-model/audio/openai/create-transcription )
2026-01-28 22:50:47 +08:00
- [Video Interface (Video) ](https://docs.newapi.pro/en/docs/api/ai-model/audio/openai/createspeech )
- [Embedding Interface (Embeddings) ](https://docs.newapi.pro/en/docs/api/ai-model/embeddings/createembedding )
- [Rerank Interface (Rerank) ](https://docs.newapi.pro/en/docs/api/ai-model/rerank/creatererank )
- [Realtime Conversation (Realtime) ](https://docs.newapi.pro/en/docs/api/ai-model/realtime/createrealtimesession )
- [Claude Chat ](https://docs.newapi.pro/en/docs/api/ai-model/chat/createmessage )
- [Google Gemini Chat ](https://docs.newapi.pro/en/docs/api/ai-model/chat/gemini/geminirelayv1beta )
2025-11-08 22:32:39 +08:00
< / details >
---
2026-01-28 22:38:14 +08:00
## 🚢 Deployment
2025-03-12 22:12:09 +08:00
2024-12-05 18:07:36 +08:00
> [!TIP]
2026-01-28 22:38:14 +08:00
> **Latest Docker image:** `calciumion/new-api:latest`
2024-12-05 18:07:36 +08:00
2026-01-28 22:38:14 +08:00
### 📋 Deployment Requirements
2024-12-30 17:24:19 +08:00
2026-01-28 22:38:14 +08:00
| Component | Requirement |
2025-11-08 22:32:39 +08:00
|------|------|
2026-01-28 22:38:14 +08:00
| **Local database** | SQLite (Docker must mount `/data` directory)|
| **Remote database** | MySQL ≥ 5.7.8 or PostgreSQL ≥ 9.6 |
| **Container engine** | Docker / Docker Compose |
2024-11-23 16:58:57 +08:00
2026-01-28 22:38:14 +08:00
### ⚙️ Environment Variable Configuration
2024-11-23 16:58:57 +08:00
2025-11-08 22:32:39 +08:00
< details >
2026-01-28 22:38:14 +08:00
< summary > Common environment variable configuration< / summary >
| Variable Name | Description | Default Value |
|--------|------|--------|
| `SESSION_SECRET` | Session secret (required for multi-machine deployment) | - |
| `CRYPTO_SECRET` | Encryption secret (required for Redis) | - |
| `SQL_DSN` | Database connection string | - |
| `REDIS_CONN_STRING` | Redis connection string | - |
| `STREAMING_TIMEOUT` | Streaming timeout (seconds) | `300` |
| `STREAM_SCANNER_MAX_BUFFER_MB` | Max per-line buffer (MB) for the stream scanner; increase when upstream sends huge image/base64 payloads | `64` |
| `MAX_REQUEST_BODY_MB` | Max request body size (MB, counted **after decompression** ; prevents huge requests/zip bombs from exhausting memory). Exceeding it returns `413` | `32` |
| `AZURE_DEFAULT_API_VERSION` | Azure API version | `2025-04-01-preview` |
| `ERROR_LOG_ENABLED` | Error log switch | `false` |
| `PYROSCOPE_URL` | Pyroscope server address | - |
| `PYROSCOPE_APP_NAME` | Pyroscope application name | `new-api` |
| `PYROSCOPE_BASIC_AUTH_USER` | Pyroscope basic auth user | - |
| `PYROSCOPE_BASIC_AUTH_PASSWORD` | Pyroscope basic auth password | - |
| `PYROSCOPE_MUTEX_RATE` | Pyroscope mutex sampling rate | `5` |
| `PYROSCOPE_BLOCK_RATE` | Pyroscope block sampling rate | `5` |
| `HOSTNAME` | Hostname tag for Pyroscope | `new-api` |
📖 **Complete configuration:** [Environment Variables Documentation ](https://docs.newapi.pro/en/docs/installation/config-maintenance/environment-variables )
2025-10-14 17:51:33 +08:00
2025-11-08 22:32:39 +08:00
< / details >
2026-01-28 22:38:14 +08:00
### 🔧 Deployment Methods
2025-11-08 22:32:39 +08:00
< details >
2026-01-28 22:38:14 +08:00
< summary > < strong > Method 1: Docker Compose (Recommended)< / strong > < / summary >
2025-11-08 22:32:39 +08:00
```bash
2026-01-28 22:38:14 +08:00
# Clone the project
2025-11-08 22:32:39 +08:00
git clone https://github.com/QuantumNous/new-api.git
2024-11-30 20:47:26 +08:00
cd new-api
2025-10-14 17:51:33 +08:00
2026-01-28 22:38:14 +08:00
# Edit configuration
2025-10-14 17:51:33 +08:00
nano docker-compose.yml
2026-01-28 22:38:14 +08:00
# Start service
2025-11-08 22:32:39 +08:00
docker-compose up -d
2024-11-30 20:47:26 +08:00
```
2025-11-08 22:32:39 +08:00
< / details >
< details >
2026-01-28 22:38:14 +08:00
< summary > < strong > Method 2: Docker Commands< / strong > < / summary >
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
**Using SQLite:**
2025-11-08 22:32:39 +08:00
```bash
docker run --name new-api -d --restart always \
-p 3000:3000 \
-e TZ=Asia/Shanghai \
-v ./data:/data \
calciumion/new-api:latest
```
2025-02-12 16:54:53 +08:00
2026-01-28 22:38:14 +08:00
**Using MySQL:**
2025-11-08 22:32:39 +08:00
```bash
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
2023-12-14 11:01:53 +08:00
```
2024-07-19 03:06:20 +08:00
2026-02-11 20:37:53 +08:00
> **💡 Path explanation:**
2026-01-28 22:38:14 +08:00
> - `./data:/data` - Relative path, data saved in the data folder of the current directory
> - You can also use absolute path, e.g.: `/your/custom/path:/data`
2024-12-31 22:19:37 +08:00
2025-11-08 22:32:39 +08:00
< / details >
2024-09-26 01:54:33 +08:00
2025-11-08 22:32:39 +08:00
< details >
2026-01-28 22:38:14 +08:00
< summary > < strong > Method 3: BaoTa Panel< / strong > < / summary >
2024-01-08 00:25:12 +08:00
2026-01-28 22:38:14 +08:00
1. Install BaoTa Panel (≥ 9.2.0 version)
2. Search for **New-API** in the application store
3. One-click installation
2023-11-10 13:53:04 -06:00
2026-01-28 22:38:14 +08:00
📖 [Tutorial with images ](./docs/BT.md )
2024-09-17 03:18:12 +08:00
2025-11-08 22:32:39 +08:00
< / details >
2024-03-18 20:44:20 +08:00
2026-01-28 22:38:14 +08:00
### ⚠️ Multi-machine Deployment Considerations
2025-03-12 22:12:09 +08:00
2025-11-08 22:32:39 +08:00
> [!WARNING]
2026-01-28 22:38:14 +08:00
> - **Must set** `SESSION_SECRET` - Otherwise login status inconsistent
> - **Shared Redis must set** `CRYPTO_SECRET` - Otherwise data cannot be decrypted
2025-03-12 22:12:09 +08:00
2026-01-28 22:38:14 +08:00
### 🔄 Channel Retry and Cache
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
**Retry configuration:** `Settings → Operation Settings → General Settings → Failure Retry Count`
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
**Cache configuration:**
- `REDIS_CONN_STRING` : Redis cache (recommended)
- `MEMORY_CACHE_ENABLED` : Memory cache
2025-11-08 22:32:39 +08:00
---
2026-01-28 22:38:14 +08:00
## 🔗 Related Projects
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
### Upstream Projects
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
| Project | Description |
2025-11-08 22:32:39 +08:00
|------|------|
2026-01-28 22:38:14 +08:00
| [One API ](https://github.com/songquanpeng/one-api ) | Original project base |
| [Midjourney-Proxy ](https://github.com/novicezk/midjourney-proxy ) | Midjourney interface support |
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
### Supporting Tools
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
| Project | Description |
2025-11-08 22:32:39 +08:00
|------|------|
2026-01-28 22:38:14 +08:00
| [neko-api-key-tool ](https://github.com/Calcium-Ion/neko-api-key-tool ) | Key quota query tool |
| [new-api-horizon ](https://github.com/Calcium-Ion/new-api-horizon ) | New API high-performance optimized version |
2025-11-08 22:32:39 +08:00
---
2026-01-28 22:38:14 +08:00
## 💬 Help Support
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
### 📖 Documentation Resources
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
| Resource | Link |
2025-11-08 22:32:39 +08:00
|------|------|
2026-01-28 22:38:14 +08:00
| 📘 FAQ | [FAQ ](https://docs.newapi.pro/en/docs/support/faq ) |
| 💬 Community Interaction | [Communication Channels ](https://docs.newapi.pro/en/docs/support/community-interaction ) |
| 🐛 Issue Feedback | [Issue Feedback ](https://docs.newapi.pro/en/docs/support/feedback-issues ) |
| 📚 Complete Documentation | [Official Documentation ](https://docs.newapi.pro/en/docs ) |
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
### 🤝 Contribution Guide
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
Welcome all forms of contribution!
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
- 🐛 Report Bugs
- 💡 Propose New Features
- 📝 Improve Documentation
- 🔧 Submit Code
2025-11-08 22:32:39 +08:00
---
2024-12-16 18:12:17 +08:00
2026-02-03 18:34:46 +08:00
## 📜 License
This project is licensed under the [GNU Affero General Public License v3.0 (AGPLv3) ](./LICENSE ).
2026-02-11 22:05:35 +08:00
This is an open-source project developed based on [One API ](https://github.com/songquanpeng/one-api ) (MIT License).
2026-02-03 18:34:46 +08:00
If your organization's policies do not permit the use of AGPLv3-licensed software, or if you wish to avoid the open-source obligations of AGPLv3, please contact us at: [support@quantumnous.com ](mailto:support@quantumnous.com )
---
2024-12-13 20:15:50 +08:00
## 🌟 Star History
2023-11-10 13:53:04 -06:00
2025-11-08 22:32:39 +08:00
< div align = "center" >
2023-12-29 16:08:50 +08:00
[](https://star-history.com/#Calcium -Ion/new-api& Date)
2025-11-08 22:32:39 +08:00
< / div >
---
< div align = "center" >
2026-01-28 22:38:14 +08:00
### 💖 Thank you for using New API
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
If this project is helpful to you, welcome to give us a ⭐️ Star!
2025-11-08 22:32:39 +08:00
2026-01-28 22:38:14 +08:00
**[Official Documentation ](https://docs.newapi.pro/en/docs )** • ** [Issue Feedback ](https://github.com/Calcium-Ion/new-api/issues )** • ** [Latest Release ](https://github.com/Calcium-Ion/new-api/releases )**
2025-11-08 22:32:39 +08:00
< sub > Built with ❤️ by QuantumNous< / sub >
< / div >