[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-2131":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":16,"starSnapshotCount":16,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},2131,"new-api","QuantumNous\u002Fnew-api","QuantumNous","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. 🍥","https:\u002F\u002Fwww.newapi.ai",null,"Go",38342,8704,117,519,0,179,1323,5790,985,120,"GNU Affero General Public License v3.0",false,"main",[26,27,28,29,30,31,32],"ai-gateway","claude","deepseek","gemini","newapi","openai","rerank","2026-06-12 04:00:13","\u003Cdiv align=\"center\">\n\n![new-api](\u002Fweb\u002Fdefault\u002Fpublic\u002Flogo.png)\n\n# New API\n\n🍥 **Next-Generation LLM Gateway and AI Asset Management System**\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".\u002FREADME.zh_CN.md\">简体中文\u003C\u002Fa> |\n  \u003Ca href=\".\u002FREADME.zh_TW.md\">繁體中文\u003C\u002Fa> |\n  \u003Cstrong>English\u003C\u002Fstrong> |\n  \u003Ca href=\".\u002FREADME.fr.md\">Français\u003C\u002Fa> |\n  \u003Ca href=\".\u002FREADME.ja.md\">日本語\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fraw.githubusercontent.com\u002FCalcium-Ion\u002Fnew-api\u002Fmain\u002FLICENSE\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FCalcium-Ion\u002Fnew-api?color=brightgreen\" alt=\"license\">\n  \u003C\u002Fa>\u003C!--\n  -->\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FCalcium-Ion\u002Fnew-api\u002Freleases\u002Flatest\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002FCalcium-Ion\u002Fnew-api?color=brightgreen&include_prereleases\" alt=\"release\">\n  \u003C\u002Fa>\u003C!--\n  -->\u003Ca href=\"https:\u002F\u002Fhub.docker.com\u002Fr\u002FCalciumIon\u002Fnew-api\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdocker-dockerHub-blue\" alt=\"docker\">\n  \u003C\u002Fa>\u003C!--\n  -->\u003Ca href=\"https:\u002F\u002Fgoreportcard.com\u002Freport\u002Fgithub.com\u002FCalcium-Ion\u002Fnew-api\">\n    \u003Cimg src=\"https:\u002F\u002Fgoreportcard.com\u002Fbadge\u002Fgithub.com\u002FCalcium-Ion\u002Fnew-api\" alt=\"GoReportCard\">\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Ftrendshift.io\u002Frepositories\u002F20180\" target=\"_blank\">\n    \u003Cimg src=\"https:\u002F\u002Ftrendshift.io\u002Fapi\u002Fbadge\u002Frepositories\u002F20180\" alt=\"QuantumNous%2Fnew-api | Trendshift\" style=\"width: 250px; height: 55px;\" width=\"250\" height=\"55\"\u002F>\n  \u003C\u002Fa>\n  \u003Cbr>\n  \u003Ca href=\"https:\u002F\u002Fhellogithub.com\u002Frepository\u002FQuantumNous\u002Fnew-api\" target=\"_blank\">\n    \u003Cimg src=\"https:\u002F\u002Fapi.hellogithub.com\u002Fv1\u002Fwidgets\u002Frecommend.svg?rid=539ac4217e69431684ad4a0bab768811&claim_uid=tbFPfKIDHpc4TzR\" alt=\"Featured｜HelloGitHub\" style=\"width: 250px; height: 54px;\" width=\"250\" height=\"54\" \u002F>\n  \u003C\u002Fa>\u003C!--\n  -->\u003Ca href=\"https:\u002F\u002Fwww.producthunt.com\u002Fproducts\u002Fnew-api\u002Flaunches\u002Fnew-api?embed=true&utm_source=badge-featured&utm_medium=badge&utm_campaign=badge-new-api\" target=\"_blank\" rel=\"noopener noreferrer\">\n    \u003Cimg src=\"https:\u002F\u002Fapi.producthunt.com\u002Fwidgets\u002Fembed-image\u002Fv1\u002Ffeatured.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\" \u002F>\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"#-quick-start\">Quick Start\u003C\u002Fa> •\n  \u003Ca href=\"#-key-features\">Key Features\u003C\u002Fa> •\n  \u003Ca href=\"#-deployment\">Deployment\u003C\u002Fa> •\n  \u003Ca href=\"#-documentation\">Documentation\u003C\u002Fa> •\n  \u003Ca href=\"#-help-support\">Help\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003C\u002Fdiv>\n\n## 📝 Project Description\n\n> [!IMPORTANT]\n> - This project is for personal learning purposes only, with no guarantee of stability or technical support\n> - Users must comply with OpenAI's [Terms of Use](https:\u002F\u002Fopenai.com\u002Fpolicies\u002Fterms-of-use) and **applicable laws and regulations**, and must not use it for illegal purposes\n> - According to the [《Interim Measures for the Management of Generative Artificial Intelligence Services》](http:\u002F\u002Fwww.cac.gov.cn\u002F2023-07\u002F13\u002Fc_1690898327029107.htm), please do not provide any unregistered generative AI services to the public in China.\n\n---\n\n## 🤝 Trusted Partners\n\n\u003Cp align=\"center\">\n  \u003Cem>No particular order\u003C\u002Fem>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fwww.cherry-ai.com\u002F\" target=\"_blank\">\n    \u003Cimg src=\".\u002Fdocs\u002Fimages\u002Fcherry-studio.png\" alt=\"Cherry Studio\" height=\"80\" \u002F>\n  \u003C\u002Fa>\u003C!--\n  -->\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FiOfficeAI\u002FAionUi\u002F\" target=\"_blank\">\n    \u003Cimg src=\".\u002Fdocs\u002Fimages\u002Faionui.png\" alt=\"Aion UI\" height=\"80\" \u002F>\n  \u003C\u002Fa>\u003C!--\n  -->\u003Ca href=\"https:\u002F\u002Fbda.pku.edu.cn\u002F\" target=\"_blank\">\n    \u003Cimg src=\".\u002Fdocs\u002Fimages\u002Fpku.png\" alt=\"Peking University\" height=\"80\" \u002F>\n  \u003C\u002Fa>\u003C!--\n  -->\u003Ca href=\"https:\u002F\u002Fwww.compshare.cn\u002F?ytag=GPU_yy_gh_newapi\" target=\"_blank\">\n    \u003Cimg src=\".\u002Fdocs\u002Fimages\u002Fucloud.png\" alt=\"UCloud\" height=\"80\" \u002F>\n  \u003C\u002Fa>\u003C!--\n  -->\u003Ca href=\"https:\u002F\u002Fwww.aliyun.com\u002F\" target=\"_blank\">\n    \u003Cimg src=\".\u002Fdocs\u002Fimages\u002Faliyun.png\" alt=\"Alibaba Cloud\" height=\"80\" \u002F>\n  \u003C\u002Fa>\u003C!--\n  -->\u003Ca href=\"https:\u002F\u002Fio.net\u002F\" target=\"_blank\">\n    \u003Cimg src=\".\u002Fdocs\u002Fimages\u002Fio-net.png\" alt=\"IO.NET\" height=\"80\" \u002F>\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n---\n\n## 🙏 Special Thanks\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fwww.jetbrains.com\u002F?from=new-api\" target=\"_blank\">\n    \u003Cimg src=\"https:\u002F\u002Fresources.jetbrains.com\u002Fstorage\u002Fproducts\u002Fcompany\u002Fbrand\u002Flogos\u002Fjb_beam.png\" alt=\"JetBrains Logo\" width=\"120\" \u002F>\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cstrong>Thanks to \u003Ca href=\"https:\u002F\u002Fwww.jetbrains.com\u002F?from=new-api\">JetBrains\u003C\u002Fa> for providing free open-source development license for this project\u003C\u002Fstrong>\n\u003C\u002Fp>\n\n---\n\n## 🚀 Quick Start\n\n### Using Docker Compose (Recommended)\n\n```bash\n# Clone the project\ngit clone https:\u002F\u002Fgithub.com\u002FQuantumNous\u002Fnew-api.git\ncd new-api\n\n# Edit docker-compose.yml configuration\nnano docker-compose.yml\n\n# Start the service\ndocker-compose up -d\n```\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Using Docker Commands\u003C\u002Fstrong>\u003C\u002Fsummary>\n\n```bash\n# Pull the latest image\ndocker pull calciumion\u002Fnew-api:latest\n\n# Using SQLite (default)\ndocker run --name new-api -d --restart always \\\n  -p 3000:3000 \\\n  -e TZ=Asia\u002FShanghai \\\n  -v .\u002Fdata:\u002Fdata \\\n  calciumion\u002Fnew-api:latest\n\n# Using MySQL\ndocker run --name new-api -d --restart always \\\n  -p 3000:3000 \\\n  -e SQL_DSN=\"root:123456@tcp(localhost:3306)\u002Foneapi\" \\\n  -e TZ=Asia\u002FShanghai \\\n  -v .\u002Fdata:\u002Fdata \\\n  calciumion\u002Fnew-api:latest\n```\n\n> **💡 Tip:** `-v .\u002Fdata:\u002Fdata` will save data in the `data` folder of the current directory, you can also change it to an absolute path like `-v \u002Fyour\u002Fcustom\u002Fpath:\u002Fdata`\n\n\u003C\u002Fdetails>\n\n---\n\n🎉 After deployment is complete, visit `http:\u002F\u002Flocalhost:3000` to start using!\n\n📖 For more deployment methods, please refer to [Deployment Guide](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Finstallation)\n\n---\n\n## 📚 Documentation\n\n\u003Cdiv align=\"center\">\n\n### 📖 [Official Documentation](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs) | [![Ask DeepWiki](https:\u002F\u002Fdeepwiki.com\u002Fbadge.svg)](https:\u002F\u002Fdeepwiki.com\u002FQuantumNous\u002Fnew-api)\n\n\u003C\u002Fdiv>\n\n**Quick Navigation:**\n\n| Category | Link |\n|------|------|\n| 🚀 Deployment Guide | [Installation Documentation](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Finstallation) |\n| ⚙️ Environment Configuration | [Environment Variables](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Finstallation\u002Fconfig-maintenance\u002Fenvironment-variables) |\n| 📡 API Documentation | [API Documentation](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi) |\n| ❓ FAQ | [FAQ](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fsupport\u002Ffaq) |\n| 💬 Community Interaction | [Communication Channels](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fsupport\u002Fcommunity-interaction) |\n\n---\n\n## ✨ Key Features\n\n> For detailed features, please refer to [Features Introduction](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fguide\u002Fwiki\u002Fbasic-concepts\u002Ffeatures-introduction)\n\n### 🎨 Core Functions\n\n| Feature | Description |\n|------|------|\n| 🎨 New UI | Modern user interface design |\n| 🌍 Multi-language | Supports Simplified Chinese, Traditional Chinese, English, French, Japanese |\n| 🔄 Data Compatibility | Fully compatible with the original One API database |\n| 📈 Data Dashboard | Visual console and statistical analysis |\n| 🔒 Permission Management | Token grouping, model restrictions, user management |\n\n### 💰 Payment and Billing\n\n- ✅ Online recharge (EPay, Stripe)\n- ✅ Pay-per-use model pricing\n- ✅ Cache billing support (OpenAI, Azure, DeepSeek, Claude, Qwen and all supported models)\n- ✅ Flexible billing policy configuration\n\n### 🔐 Authorization and Security\n\n- 😈 Discord authorization login\n- 🤖 LinuxDO authorization login\n- 📱 Telegram authorization login\n- 🔑 OIDC unified authentication\n- 🔍 Key quota query usage (with [neko-api-key-tool](https:\u002F\u002Fgithub.com\u002FCalcium-Ion\u002Fneko-api-key-tool))\n\n### 🚀 Advanced Features\n\n**API Format Support:**\n- ⚡ [OpenAI Responses](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Fchat\u002Fopenai\u002Fcreate-response)\n- ⚡ [OpenAI Realtime API](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Frealtime\u002Fcreate-realtime-session) (including Azure)\n- ⚡ [Claude Messages](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Fchat\u002Fcreate-message)\n- ⚡ [Google Gemini](https:\u002F\u002Fdoc.newapi.pro\u002Fen\u002Fapi\u002Fgoogle-gemini-chat)\n- 🔄 [Rerank Models](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Frerank\u002Fcreate-rerank) (Cohere, Jina)\n\n**Intelligent Routing:**\n- ⚖️ Channel weighted random\n- 🔄 Automatic retry on failure\n- 🚦 User-level model rate limiting\n\n**Format Conversion:**\n- 🔄 **OpenAI Compatible ⇄ Claude Messages**\n- 🔄 **OpenAI Compatible → Google Gemini**\n- 🔄 **Google Gemini → OpenAI Compatible** - Text only, function calling not supported yet\n- 🚧 **OpenAI Compatible ⇄ OpenAI Responses** - In development\n- 🔄 **Thinking-to-content functionality**\n\n**Reasoning Effort Support:**\n\n\u003Cdetails>\n\u003Csummary>View detailed configuration\u003C\u002Fsummary>\n\n**OpenAI series models:**\n- `o3-mini-high` - High reasoning effort\n- `o3-mini-medium` - Medium reasoning effort\n- `o3-mini-low` - Low reasoning effort\n- `gpt-5-high` - High reasoning effort\n- `gpt-5-medium` - Medium reasoning effort\n- `gpt-5-low` - Low reasoning effort\n\n**Claude thinking models:**\n- `claude-3-7-sonnet-20250219-thinking` - Enable thinking mode\n\n**Google Gemini series models:**\n- `gemini-2.5-flash-thinking` - Enable thinking mode\n- `gemini-2.5-flash-nothinking` - Disable thinking mode\n- `gemini-2.5-pro-thinking` - Enable thinking mode\n- `gemini-2.5-pro-thinking-128` - Enable thinking mode with thinking budget of 128 tokens\n- 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).\n\n\u003C\u002Fdetails>\n\n---\n\n## 🤖 Model Support\n\n> For details, please refer to [API Documentation - Relay Interface](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi)\n\n| Model Type | Description | Documentation |\n|---------|------|------|\n| 🤖 OpenAI-Compatible | OpenAI compatible models | [Documentation](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Fchat\u002Fopenai\u002Fcreatechatcompletion) |\n| 🤖 OpenAI Responses | OpenAI Responses format | [Documentation](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Fchat\u002Fopenai\u002Fcreateresponse) |\n| 🎨 Midjourney-Proxy | [Midjourney-Proxy(Plus)](https:\u002F\u002Fgithub.com\u002Fnovicezk\u002Fmidjourney-proxy) | [Documentation](https:\u002F\u002Fdoc.newapi.pro\u002Fapi\u002Fmidjourney-proxy-image) |\n| 🎵 Suno-API | [Suno API](https:\u002F\u002Fgithub.com\u002FSuno-API\u002FSuno-API) | [Documentation](https:\u002F\u002Fdoc.newapi.pro\u002Fapi\u002Fsuno-music) |\n| 🔄 Rerank | Cohere, Jina | [Documentation](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Frerank\u002Fcreatererank) |\n| 💬 Claude | Messages format | [Documentation](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Fchat\u002Fcreatemessage) |\n| 🌐 Gemini | Google Gemini format | [Documentation](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Fchat\u002Fgemini\u002Fgeminirelayv1beta) |\n| 🔧 Dify | ChatFlow mode | - |\n| 🎯 Custom | Supports complete call address | - |\n\n### 📡 Supported Interfaces\n\n\u003Cdetails>\n\u003Csummary>View complete interface list\u003C\u002Fsummary>\n\n- [Chat Interface (Chat Completions)](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Fchat\u002Fopenai\u002Fcreatechatcompletion)\n- [Response Interface (Responses)](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Fchat\u002Fopenai\u002Fcreateresponse)\n- [Image Interface (Image)](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Fimages\u002Fopenai\u002Fpost-v1-images-generations)\n- [Audio Interface (Audio)](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Faudio\u002Fopenai\u002Fcreate-transcription)\n- [Video Interface (Video)](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Faudio\u002Fopenai\u002Fcreatespeech)\n- [Embedding Interface (Embeddings)](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Fembeddings\u002Fcreateembedding)\n- [Rerank Interface (Rerank)](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Frerank\u002Fcreatererank)\n- [Realtime Conversation (Realtime)](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Frealtime\u002Fcreaterealtimesession)\n- [Claude Chat](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Fchat\u002Fcreatemessage)\n- [Google Gemini Chat](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fapi\u002Fai-model\u002Fchat\u002Fgemini\u002Fgeminirelayv1beta)\n\n\u003C\u002Fdetails>\n\n---\n\n## 🚢 Deployment\n\n> [!TIP]\n> **Latest Docker image:** `calciumion\u002Fnew-api:latest`\n\n### 📋 Deployment Requirements\n\n| Component | Requirement |\n|------|------|\n| **Local database** | SQLite (Docker must mount `\u002Fdata` directory)|\n| **Remote database** | MySQL ≥ 5.7.8 or PostgreSQL ≥ 9.6 |\n| **Container engine** | Docker \u002F Docker Compose |\n\n### ⚙️ Environment Variable Configuration\n\n\u003Cdetails>\n\u003Csummary>Common environment variable configuration\u003C\u002Fsummary>\n\n| Variable Name | Description | Default Value |\n|--------|------|--------|\n| `SESSION_SECRET` | Session secret (required for multi-machine deployment) | - |\n| `CRYPTO_SECRET` | Encryption secret (required for Redis) | - |\n| `SQL_DSN` | Database connection string | - |\n| `REDIS_CONN_STRING` | Redis connection string | - |\n| `STREAMING_TIMEOUT` | Streaming timeout (seconds) | `300` |\n| `STREAM_SCANNER_MAX_BUFFER_MB` | Max per-line buffer (MB) for the stream scanner; increase when upstream sends huge image\u002Fbase64 payloads | `64` |\n| `MAX_REQUEST_BODY_MB` | Max request body size (MB, counted **after decompression**; prevents huge requests\u002Fzip bombs from exhausting memory). Exceeding it returns `413` | `32` |\n| `AZURE_DEFAULT_API_VERSION` | Azure API version | `2025-04-01-preview` |\n| `ERROR_LOG_ENABLED` | Error log switch | `false` |\n| `PYROSCOPE_URL` | Pyroscope server address | - |\n| `PYROSCOPE_APP_NAME` | Pyroscope application name | `new-api` |\n| `PYROSCOPE_BASIC_AUTH_USER` | Pyroscope basic auth user | - |\n| `PYROSCOPE_BASIC_AUTH_PASSWORD` | Pyroscope basic auth password | - |\n| `PYROSCOPE_MUTEX_RATE` | Pyroscope mutex sampling rate | `5` |\n| `PYROSCOPE_BLOCK_RATE` | Pyroscope block sampling rate | `5` |\n| `HOSTNAME` | Hostname tag for Pyroscope | `new-api` |\n\n📖 **Complete configuration:** [Environment Variables Documentation](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Finstallation\u002Fconfig-maintenance\u002Fenvironment-variables)\n\n\u003C\u002Fdetails>\n\n### 🔧 Deployment Methods\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Method 1: Docker Compose (Recommended)\u003C\u002Fstrong>\u003C\u002Fsummary>\n\n```bash\n# Clone the project\ngit clone https:\u002F\u002Fgithub.com\u002FQuantumNous\u002Fnew-api.git\ncd new-api\n\n# Edit configuration\nnano docker-compose.yml\n\n# Start service\ndocker-compose up -d\n```\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Method 2: Docker Commands\u003C\u002Fstrong>\u003C\u002Fsummary>\n\n**Using SQLite:**\n```bash\ndocker run --name new-api -d --restart always \\\n  -p 3000:3000 \\\n  -e TZ=Asia\u002FShanghai \\\n  -v .\u002Fdata:\u002Fdata \\\n  calciumion\u002Fnew-api:latest\n```\n\n**Using MySQL:**\n```bash\ndocker run --name new-api -d --restart always \\\n  -p 3000:3000 \\\n  -e SQL_DSN=\"root:123456@tcp(localhost:3306)\u002Foneapi\" \\\n  -e TZ=Asia\u002FShanghai \\\n  -v .\u002Fdata:\u002Fdata \\\n  calciumion\u002Fnew-api:latest\n```\n\n> **💡 Path explanation:**\n> - `.\u002Fdata:\u002Fdata` - Relative path, data saved in the data folder of the current directory\n> - You can also use absolute path, e.g.: `\u002Fyour\u002Fcustom\u002Fpath:\u002Fdata`\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Method 3: BaoTa Panel\u003C\u002Fstrong>\u003C\u002Fsummary>\n\n1. Install BaoTa Panel (≥ 9.2.0 version)\n2. Search for **New-API** in the application store\n3. One-click installation\n\n📖 [Tutorial with images](.\u002Fdocs\u002FBT.md)\n\n\u003C\u002Fdetails>\n\n### ⚠️ Multi-machine Deployment Considerations\n\n> [!WARNING]\n> - **Must set** `SESSION_SECRET` - Otherwise login status inconsistent\n> - **Shared Redis must set** `CRYPTO_SECRET` - Otherwise data cannot be decrypted\n\n### 🔄 Channel Retry and Cache\n\n**Retry configuration:** `Settings → Operation Settings → General Settings → Failure Retry Count`\n\n**Cache configuration:**\n- `REDIS_CONN_STRING`: Redis cache (recommended)\n- `MEMORY_CACHE_ENABLED`: Memory cache\n\n---\n\n## 🔗 Related Projects\n\n### Upstream Projects\n\n| Project | Description |\n|------|------|\n| [One API](https:\u002F\u002Fgithub.com\u002Fsongquanpeng\u002Fone-api) | Original project base |\n| [Midjourney-Proxy](https:\u002F\u002Fgithub.com\u002Fnovicezk\u002Fmidjourney-proxy) | Midjourney interface support |\n\n### Supporting Tools\n\n| Project | Description |\n|------|------|\n| [neko-api-key-tool](https:\u002F\u002Fgithub.com\u002FCalcium-Ion\u002Fneko-api-key-tool) | Key quota query tool |\n| [new-api-horizon](https:\u002F\u002Fgithub.com\u002FCalcium-Ion\u002Fnew-api-horizon) | New API high-performance optimized version |\n\n---\n\n## 💬 Help Support\n\n### 📖 Documentation Resources\n\n| Resource | Link |\n|------|------|\n| 📘 FAQ | [FAQ](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fsupport\u002Ffaq) |\n| 💬 Community Interaction | [Communication Channels](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fsupport\u002Fcommunity-interaction) |\n| 🐛 Issue Feedback | [Issue Feedback](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs\u002Fsupport\u002Ffeedback-issues) |\n| 📚 Complete Documentation | [Official Documentation](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs) |\n\n### 🤝 Contribution Guide\n\nWelcome all forms of contribution!\n\n- 🐛 Report Bugs\n- 💡 Propose New Features\n- 📝 Improve Documentation\n- 🔧 Submit Code\n\n---\n\n## 📜 License\n\nThis project is licensed under the [GNU Affero General Public License v3.0 (AGPLv3)](.\u002FLICENSE).\n\nThis is an open-source project developed based on [One API](https:\u002F\u002Fgithub.com\u002Fsongquanpeng\u002Fone-api) (MIT License).\n\nIf 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)\n\n---\n\n## 🌟 Star History\n\n\u003Cdiv align=\"center\">\n\n[![Star History Chart](https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=Calcium-Ion\u002Fnew-api&type=Date)](https:\u002F\u002Fstar-history.com\u002F#Calcium-Ion\u002Fnew-api&Date)\n\n\u003C\u002Fdiv>\n\n---\n\n\u003Cdiv align=\"center\">\n\n### 💖 Thank you for using New API\n\nIf this project is helpful to you, welcome to give us a ⭐️ Star！\n\n**[Official Documentation](https:\u002F\u002Fdocs.newapi.pro\u002Fen\u002Fdocs)** • **[Issue Feedback](https:\u002F\u002Fgithub.com\u002FCalcium-Ion\u002Fnew-api\u002Fissues)** • **[Latest Release](https:\u002F\u002Fgithub.com\u002FCalcium-Ion\u002Fnew-api\u002Freleases)**\n\n\u003Csub>Built with ❤️ by QuantumNous\u003C\u002Fsub>\n\n\u003C\u002Fdiv>\n","New API 是一个统一的人工智能模型中心，支持将各种大型语言模型（LLM）转换为与OpenAI、Claude或Gemini兼容的格式，并提供集中化的个人和企业级模型管理门户。项目采用Go语言开发，具有跨平台转换、模型管理和分发等核心功能，能够帮助用户轻松集成不同来源的AI服务。适用于需要整合多种AI资源并进行统一调度的应用场景，如企业内部AI工具链构建、开发者快速接入多样化AI能力等。",2,"2026-06-11 02:48:18","top_all"]