📖 Project Introduction
📖 Project Introduction
<div class="text-center" markdown>

<strong style="font-size: 1.5em">cnAPI</strong>
<img src="/assets/trendshift.svg" alt="NewAPI_Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/>
</div>
cnAPI is a next-generation large model gateway and AI asset management system, developed based on One API. The project aims to provide a unified interface for managing and utilizing various AI model services, including but not limited to OpenAI, Anthropic, Gemini, and Midjourney.
🤝 Our Trusted Partners
<p align="center"><strong>In no particular order</strong></p>
<div class="text-center" markdown> <a href="https://www.cherry-ai.com/" target="_blank"> <img src="/assets/partner/cherry-studio.png" alt="Cherry Studio" height="120"/> </a> <a href="https://bda.pku.edu.cn/" target="_blank"> <img src="/assets/partner/pku.png" alt="Peking University" height="120"/> </a> <a href="https://www.compshare.cn/?ytag=GPU_yy_gh_newapi" target="_blank"> <img src="/assets/partner/ucloud.png" alt="UCloud" height="120"/> </a> <a href="https://www.aliyun.com/" target="_blank"> <img src="/assets/partner/aliyun.png" alt="Alibaba Cloud" height="120"/> </a> <a href="https://io.net/" target="_blank"> <img src="/assets/partner/io-net.png" alt="IO.NET" height="120"/> </a> </div>
📜 License
cnAPI uses a Usage-Based Dual Licensing model:
Core Principles:
- Default License: The project is available by default under the GNU Affero General Public License v3.0 (AGPLv3). Any user may use it for free, provided they comply with the AGPLv3 terms and the additional restrictions listed below.
- Commercial License: In specific commercial scenarios, or when you require rights beyond AGPLv3, you must obtain a Commercial License.
The full and latest license text can be found here: Project LICENSE.
1. Open Source License (AGPLv3) - For Basic Usage
- Under the terms of AGPLv3, you are free to use, modify, and distribute cnAPI. The full text of AGPLv3 is available at https://www.gnu.org/licenses/agpl-3.0.html.
- Core Obligation: If you modify cnAPI and provide it as a network service (SaaS), or distribute a modified version, you must make the corresponding complete source code available to all users under the AGPLv3 license.
- Additional Restriction (Important): When using only the AGPLv3 open source license, you must retain all original branding, LOGO, and copyright statement information in the project code. You are prohibited from modifying, removing, or concealing this information in any form. A Commercial License is required to remove them.
- Before use, please ensure you carefully read and understand all terms of AGPLv3 and the above additional restriction.
2. Commercial License (Commercial License) - For Advanced Scenarios & Closed Source Needs
In any of the following scenarios, you must contact us to obtain and sign a Commercial License to legally use cnAPI:
-
Scenario 1: Removal of Branding and Copyright Information
You wish to remove the cnAPI LOGO, copyright statements in the UI interface, or other branding elements from your product or service. -
Scenario 2: Avoidance of AGPLv3 Open Source Obligations
You have modified cnAPI and wish to:- Offer it as a network service (SaaS) without disclosing your modified source code to your service users.
- Distribute a software product integrated with cnAPI without releasing your product under the AGPLv3 license or open-sourcing the code.
-
Scenario 3: Enterprise Policy & Integration Needs
- Your organization’s policies, client contracts, or project requirements prohibit the use of AGPLv3-licensed software.
- You require OEM integration and need to redistribute cnAPI as part of your closed-source commercial product.
-
Scenario 4: Need for Commercial Support and Assurances
You require commercial assurances not provided by AGPLv3, such as official technical support.
Obtaining a Commercial License:
Please contact the cnAPI team via email at support@quantumnous.com to discuss commercial authorization matters.
3. Contributions
- We welcome community contributions to cnAPI. All contributions submitted to this project (e.g., via Pull Request) are deemed to be provided under the AGPLv3 license.
- By submitting a contribution, you agree that your code is licensed to this project and all subsequent users under the AGPLv3 license (regardless of whether those users ultimately follow AGPLv3 or a Commercial License).
- You also understand and agree that your contribution may be included in versions of cnAPI distributed under a Commercial License.
4. Other Terms
- The specific terms, conditions, and pricing of the Commercial License are governed by a formal commercial license agreement executed by both parties.
- Project maintainers reserve the right to update this licensing policy as needed. Relevant updates will be notified through official project channels (e.g., code repository, official website).
cnAPI Licensing (English)
This page describes the software license of the cnAPI project (not this documentation site).
This project uses a Usage-Based Dual Licensing model.
Core Principles:
- Default License: The project is available by default under the GNU Affero General Public License v3.0 (AGPLv3), provided you comply with both the AGPLv3 terms and the additional restriction below.
- Commercial License: For specific commercial scenarios, or if you require rights beyond AGPLv3, you must obtain a Commercial License.
For the full and latest license text, see the project's LICENSE.
1. Open Source License: AGPLv3 – For Basic Usage
- Under the terms of AGPLv3, you are free to use, modify, and distribute cnAPI. Full text: https://www.gnu.org/licenses/agpl-3.0.html.
- Core Obligation: If you modify cnAPI and provide it as a network service (SaaS), or distribute a modified version, you must make the complete corresponding source code available to all users under AGPLv3.
- Additional Restriction (Important): When using only the AGPLv3 license, you must retain all original branding, logos, and copyright statements in the project. You are prohibited from modifying, removing, or concealing such information. A Commercial License is required to remove them.
- Please read and ensure you fully understand AGPLv3 and the above additional restriction before use.
2. Commercial License – For Advanced Scenarios & Closed Source Needs
You must contact us to obtain and sign a Commercial License in any of the following scenarios to legally use cnAPI:
-
Scenario 1: Removal of Branding and Copyright
You wish to remove the cnAPI logo, copyright statement, or other branding elements from your product or service. -
Scenario 2: Avoidance of AGPLv3 Open Source Obligations
You have modified cnAPI and wish to:- Offer it as a network service (SaaS) without disclosing your modifications' source code to your users.
- Distribute a software product integrated with cnAPI without releasing your product under AGPLv3 or open-sourcing the code.
-
Scenario 3: Enterprise Policy & Integration Needs
- Your organization’s policies, client contracts, or project requirements prohibit the use of AGPLv3-licensed software.
- You require OEM integration and need to redistribute cnAPI as part of your closed-source commercial product.
-
Scenario 4: Commercial Support and Assurances
You require commercial assurances not provided by AGPLv3, such as official technical support.
Obtaining a Commercial License:
Please contact the cnAPI team at support@quantumnous.com to discuss commercial licensing.
3. Contributions
- Community contributions are welcome. All contributions (e.g., via Pull Request) are deemed to be provided under AGPLv3.
- By submitting a contribution, you agree your code is licensed to this project and all downstream users under AGPLv3 (regardless of whether they ultimately operate under AGPLv3 or a Commercial License).
- You also acknowledge your contribution may be included in Commercial License distributions of cnAPI.
4. Other Terms
- The specific terms, conditions, and pricing of the Commercial License are governed by a formal commercial license agreement executed by both parties.
- Project maintainers reserve the right to update this licensing policy via official channels (e.g., repository, website).
⚠️ Disclaimer
[!DANGER] Usage Notice
- Users must comply with OpenAI's Terms of Use and relevant laws and regulations
- This project is intended for personal study only, stability is not guaranteed, and technical support is not provided
- Please comply with the relevant provisions of the Interim Measures for the Management of Generative Artificial Intelligence Services
- Please comply with local policies and regulations
How is this guide?