新一代AI工具 是 AI Skill Hub 本期精选AI工具之一。在 GitHub 上收获超过 35.8k 颗 Star,综合评分 8.5 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
新一代AI工具 是一款基于 Go 开发的开源工具,专注于 ai-gateway、claude、deepseek 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
新一代AI工具 是一款基于 Go 开发的开源工具,专注于 ai-gateway、claude、deepseek 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:go install(推荐) go install github.com/QuantumNous/new-api@latest # 方式二:从源码编译 git clone https://github.com/QuantumNous/new-api cd new-api go build -o new-api . # 方式三:下载预编译二进制 # 访问 Releases 页面下载对应平台二进制文件 # https://github.com/QuantumNous/new-api/releases
# 查看帮助 new-api --help # 基本运行 new-api [options] <input> # 详细使用说明请查阅文档 # https://github.com/QuantumNous/new-api
# new-api 配置说明 # 查看配置选项 new-api --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export NEW_API_CONFIG="/path/to/config.yml"

[!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.
---
For detailed features, please refer to Features Introduction
API Format Support: - ⚡ OpenAI Responses - ⚡ OpenAI Realtime API (including Azure) - ⚡ Claude Messages - ⚡ Google Gemini - 🔄 Rerank Models (Cohere, Jina)
Intelligent Routing: - ⚖️ Channel weighted random - 🔄 Automatic retry on failure - 🚦 User-level model rate limiting
Format Conversion: - 🔄 OpenAI Compatible ⇄ Claude Messages - 🔄 OpenAI Compatible → Google Gemini - 🔄 Google Gemini → OpenAI Compatible - Text only, function calling not supported yet - 🚧 OpenAI Compatible ⇄ OpenAI Responses - In development - 🔄 Thinking-to-content functionality
Reasoning Effort Support:
<details> <summary>View detailed configuration</summary>
OpenAI series models: - 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
Claude thinking models: - claude-3-7-sonnet-20250219-thinking - Enable thinking mode
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).
</details>
---
| 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 |
```bash
nano docker-compose.yml
[!TIP] Latest Docker image: calciumion/new-api:latest
<details> <summary><strong>Method 1: Docker Compose (Recommended)</strong></summary>
```bash
[!WARNING] - Must setSESSION_SECRET- Otherwise login status inconsistent - Shared Redis must setCRYPTO_SECRET- Otherwise data cannot be decrypted
Welcome all forms of contribution!
---
<details> <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
</details>
nano docker-compose.yml
🍥 Next-Generation LLM Gateway and AI Asset Management System
<p align="center"> <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> | <a href="./README.ja.md">日本語</a> </p>
<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"> </a><a href="https://github.com/Calcium-Ion/new-api/releases/latest"> <img src="https://img.shields.io/github/v/release/Calcium-Ion/new-api?color=brightgreen&include_prereleases" alt="release"> </a><a href="https://hub.docker.com/r/CalciumIon/new-api"> <img src="https://img.shields.io/badge/docker-dockerHub-blue" alt="docker"> </a><a href="https://goreportcard.com/report/github.com/Calcium-Ion/new-api"> <img src="https://goreportcard.com/badge/github.com/Calcium-Ion/new-api" alt="GoReportCard"> </a> </p>
<p align="center"> <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"/> </a> <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" /> </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"> <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> </p>
<p align="center"> <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> </p>
</div>
</div>
Quick Navigation:
| Category | Link |
|---|---|
| 🚀 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) |
---
<details> <summary>View complete interface list</summary>
</details>
---
If this project is helpful to you, welcome to give us a ⭐️ Star!
Official Documentation • Issue Feedback • Latest Release
<sub>Built with ❤️ by QuantumNous</sub>
</div>
高质量的AI工具,支持跨模型转换
该工具使用 AGPL-3.0 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
⚠️ AGPL 3.0 — 最严格的 Copyleft,网络服务端使用也需开源,SaaS 使用受限。
经综合评估,新一代AI工具 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | new-api |
| Topics | ai-gatewayclaudedeepseekgemini |
| GitHub | https://github.com/QuantumNous/new-api |
| License | AGPL-3.0 |
| 语言 | Go |
收录时间:2026-05-28 · 更新时间:2026-05-28 · License:AGPL-3.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。