QuantumNous / new-api
git clone https://github.com/QuantumNous/new-api.git
v1.0.0-rc.45 · 3d ago
🔥 on GitHub Trending today
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.
+88
stars, 24h · #114
—
stars, 7 days
—
stars, 30 days
50k
★ total
12k
forks · 1.4k open issues
Star history starts 2026-10-20; the chart appears after the second daily snapshot.
LanguageGo
LicenseAGPL-3.0
Created2023-11-10 (2y ago)
Last pushtoday
Watchers165
OwnerOrganization
Seen on GitHub Trending
- 2026-10-20 — #5 daily in go · +88 ★
GitHub topics
Links
- GitHub: github.com/QuantumNous/new-api
- Homepage: https://www.newapi.ai
- Releases · Issues · Hacker News mentions
README excerpt
# New API **An AI gateway for models, applications, and agents** 简体中文 | 繁體中文 | English | Français | 日本語 Screenshots • Capabilities • Quick start • Deployment • Development • Documentation --- ## 📝 Project Description New API is a self-hosted AI gateway for applications, agents, and teams. Connect upstream model services, expose a consistent API to your clients, and manage routing, access, usage, and costs in one place. Use it to share authorized model access across a team, switch providers without configuring every client again, or operate a private multi-model service with a web console. Upstreams include OpenAI, Anthropic, Google Gemini, Azure OpenAI, AWS Bedrock, Vertex AI, DeepSeek, Qwen, and other compatible services. > [!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. > [!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. --- ## Screenshots Accounts, channels, plugin installation states, usage, prices, and costs shown below are simulated data. The marketplace displays the official plugin catalog. Click an image to view it at full size. | Usage dashboard | Plugin marketplace | | --- | --- | | | | | **Model square** | **Usage logs** | | | | --- ## 🤝 Trusted Partners No particular order --- ## 🙏 Special Thanks Thanks to JetBrains for providing free open-source development license for this project --- ## Capabilities | Area | What you can do | | --- | --- | | Model access | Use OpenAI Chat Completions, Responses, Anthropic Messages, and Gemini APIs; stream responses and use tools, reasoning, and multimodal inputs where supported | | Routing | Configure model mappings, channel priorities and weights, retries, channel affinity, and multiple upstream keys | | Usage and costs | Manage quotas, subscriptions, usage logs, cache accounting, and expression-based pricing for different usage tiers | | Access control | Manage users, groups, fine-grained permissions, and API key restrictions; use OAuth/OIDC, passkeys, two-factor authentication, and login session management | | Asynchronous tasks