Home

Awesome

<div align="center">

chatnio

๐Ÿฅณ Chat Nio

๐Ÿš€ Next Generation AIGC One-Stop Business Solution

"Chat Nio > Next Web + One API"

English ยท ็ฎ€ไฝ“ไธญๆ–‡ ยท Docs ยท Discord ยท Deployment Guide

Deploy on Zeabur

Chat Nio: #1 Repo Of The Day

<img alt="Chat Nio Preview" src="./screenshot/chatnio.png" width="100%" style="border-radius: 8px"> </div>

๐Ÿ“ Features

  1. ๐Ÿค–๏ธ Rich Model Support: Multi-model service provider support (OpenAI / Anthropic / Gemini / Midjourney and more than ten compatible formats & private LLM support)
  2. ๐Ÿคฏ Beautiful UI Design: UI compatible with PC / Pad / Mobile, following Shadcn UI & Tremor Charts design standards, rich and beautiful interface design and backend dashboard
  3. ๐ŸŽƒ Complete Markdown Support: Support for LaTeX formulas / Mermaid mind maps / table rendering / code highlighting / chart drawing / progress bars and other advanced Markdown syntax support
  4. ๐Ÿ‘€ Multi-theme Support: Support for multiple theme switching, including Light Mode for light themes and Dark Mode for dark themes. ๐Ÿ‘‰ Custom Color Scheme
  5. ๐Ÿ“š Internationalization Support: Support for internationalization, multi-language switching ๐Ÿ‡จ๐Ÿ‡ณ ๐Ÿ‡บ๐Ÿ‡ธ ๐Ÿ‡ฏ๐Ÿ‡ต ๐Ÿ‡ท๐Ÿ‡บ ๐Ÿ‘‰ Welcome to contribute translations Pull Request
  6. ๐ŸŽจ Text-to-Image Support: Support for multiple text-to-image models: OpenAI DALL-Eโœ… & Midjourney (support for U/V/R operations)โœ… & Stable Diffusionโœ… etc.
  7. ๐Ÿ“ก Powerful Conversation Sync: Zero-cost cross-device conversation sync support for users, support for conversation sharing (link sharing & save as image & share management), no need for WebDav / WebRTC and other dependencies and complex learning costs
  8. ๐ŸŽˆ Model Market & Preset System: Support for customizable model market in the backend, providing model introductions, tags, and other parameters. Site owners can customize model introductions according to the situation. Also supports a preset system, including custom presets and cloud synchronization functions.
  9. ๐Ÿ“– Rich File Parsing: Out-of-the-box, supports file parsing for all models (PDF / Docx / Pptx / Excel / image formats parsing), supports more cloud image storage solutions (S3 / R2 / MinIO etc.), supports OCR image recognition ๐Ÿ‘‰ See project Chat Nio Blob Service for details (supports Vercel / Docker one-click deployment)
  10. ๐ŸŒ Full Model Internet Search: Based on the SearXNG open-source engine, supports rich search engines such as Google / Bing / DuckDuckGo / Yahoo / Wikipedia / Arxiv / Qwant, supports safe search mode, content truncation, image proxy, test search availability, and other functions.
  11. ๐Ÿ’• Progressive Web App (PWA): Supports PWA applications & desktop support (desktop based on Tauri)
  12. ๐Ÿคฉ Comprehensive Backend Management: Supports beautiful and rich dashboard, announcement & notification management, user management, subscription management, gift code & redemption code management, price setting, subscription setting, custom model market, custom site name & logo, SMTP email settings, and other functions
  13. ๐Ÿค‘ Multiple Billing Methods: Supports ๐Ÿ’ด Subscription and ๐Ÿ’ด Elastic Billing two billing methods. Elastic billing supports per-request billing / token billing / no billing / anonymous calls and minimum request points detection and other powerful features
  14. ๐ŸŽ‰ Innovative Model Caching: Supports enabling model caching: i.e., under the same request parameter hash, if it has been requested before, it will directly return the cached result (hitting the cache will not be billed), reducing the number of requests. You can customize whether to cache models, cache time, multiple cache result numbers, and other advanced cache settings
  15. ๐Ÿฅช Additional Features (Support Discontinued): ๐ŸŽ AI Project Generator Function / ๐Ÿ“‚ Batch Article Generation Function / ๐Ÿฅช AI Card Function (Deprecated)
  16. ๐Ÿ˜Ž Excellent Channel Management: Self-written excellent channel algorithm, supports โšก multi-channel management, supports ๐Ÿฅณpriority setting for channel call order, supports ๐Ÿฅณweight setting for load balancing probability distribution of channels at the same priority, supports ๐Ÿฅณuser grouping, ๐Ÿฅณautomatic retry on failure, ๐Ÿฅณmodel redirection, ๐Ÿฅณbuilt-in upstream hiding, ๐Ÿฅณchannel status management and other powerful enterprise-level functions
  17. โญ OpenAI API Distribution & Proxy System: Supports calling various large models in OpenAI API standard format, integrates powerful channel management functions, only needs to deploy one site to achieve simultaneous development of B/C-end business๐Ÿ’–
  18. ๐Ÿ‘Œ Quick Upstream Synchronization: Channel settings, model market, price settings, and other settings can quickly synchronize with upstream sites, modify your site configuration based on this, quickly build your site, save time and effort, one-click synchronization, quick launch
  19. ๐Ÿ‘‹ SEO Optimization: Supports SEO optimization, supports custom site name, site logo, and other SEO optimization settings to make search engines crawl faster, making your site stand out๐Ÿ‘‹
  20. ๐ŸŽซ Multiple Redemption Code Systems: Supports multiple redemption code systems, supports gift codes and redemption codes, supports batch generation, gift codes are suitable for promotional distribution, redemption codes are suitable for card sales, for gift codes of one type, a user can only redeem one code, which to some extent reduces the situation of one user redeeming multiple times in promotions๐Ÿ˜€
  21. ๐Ÿฅฐ Business-Friendly License: Adopts the Apache-2.0 open-source license, friendly for commercial secondary development & distribution (please also comply with the provisions of the Apache-2.0 license, do not use for illegal purposes)

โœจ Chat Nio Business

Pro Version Preview

๐Ÿ‘‰ Learn More

๐Ÿ”จ Supported Models

  1. OpenAI & Azure OpenAI (โœ… Vision โœ… Function Calling)
  2. Anthropic Claude (โœ… Vision โœ… Function Calling)
  3. Google Gemini & PaLM2 (โœ… Vision)
  4. Midjourney (โœ… Mode Toggling โœ… U/V/R Actions)
  5. iFlytek SparkDesk (โœ… Vision โœ… Function Calling)
  6. Zhipu AI ChatGLM (โœ… Vision)
  7. Alibaba Tongyi Qwen
  8. Tencent Hunyuan
  9. Baichuan AI
  10. Moonshot AI (๐Ÿ‘‰ OpenAI)
  11. DeepSeek AI (๐Ÿ‘‰ OpenAI)
  12. ByteDance Skylark (โœ… Function Calling)
  13. Groq Cloud AI
  14. OpenRouter (๐Ÿ‘‰ OpenAI)
  15. 360 GPT
  16. LocalAI / Ollama (๐Ÿ‘‰ OpenAI)

๐Ÿ‘ป OpenAI Compatible API Proxy

๐Ÿ“ฆ Deployment

[!TIP] After successful deployment, the admin account is root, with the default password chatnio123456

โœจ Zeabur (One-Click)

Deploy on Zeabur

Zeabur provides a certain free quota, you can use non-paid regions for one-click deployment, and also supports plan subscriptions and elastic billing for flexible expansion.

  1. Click Deploy to deploy, and enter the domain name you wish to bind, wait for the deployment to complete.
  2. After deployment is complete, please visit your domain name and log in to the backend management using the username root and password chatnio123456. Please follow the prompts to change the password in the chatnio backend in a timely manner.

๐Ÿณ BTPanel (One-Click)

  1. Install Baota Panel by visiting BTPanel and install using the stable version script.
  2. Log in to the panel and click Docker on the left to enter Docker management.
  3. If prompted that Docker / Docker Compose is not installed, you can install according to the guide above.
  4. After installation is complete, enter App Store, search for CoAI and click Install.
  5. Configure basic application information such as your domain name, port, etc., and click Confirm (default configuration can be used).
  6. First-time installation may take 1-2 minutes to complete database initialization. If you encounter issues, please check the panel running logs for troubleshooting.
  7. Visit your configured domain or server http://[ip]:[port], log in to the backend management using username root and password chatnio123456.

AlibabaCloud ComputeNest (One-Click)

Deploy on AlibabaCloud ComputeNest International Edition

  1. Access the CoAI service on ComputeNest International Edition. If you are in China, please visit ComputeNest, and fill in the deployment parameters as prompted.
  2. Select the payment type, fill in the instance parameters and network parameters, and click Next: Confirm Order.
  3. After confirming the deployment parameters and checking the estimated price, click Create Now and wait for the service instance to be deployed.
  4. Click Service Instance on the left. After the service instance is deployed, click the instance ID to enter the details interface.
  5. Click the address in Use Now on the details interface to enter the CoAI interface. The default username is root and the password is chatnio123456 to log in to the backend management.
  6. For more operation details and payment information, see๏ผšService Details.

โšก Docker Compose Installation (Recommended)

[!NOTE] After successful execution, the host machine mapping address is http://localhost:8000

git clone --depth=1 --branch=main --single-branch https://github.com/Deeptrain-Community/chatnio.git
cd chatnio
docker-compose up -d # Run the service
# To use the stable version, use docker-compose -f docker-compose.stable.yaml up -d instead
# To use Watchtower for automatic updates, use docker-compose -f docker-compose.watch.yaml up -d instead

Version update (If Watchtower automatic updates are enabled, manual updates are not necessary):

docker-compose down 
docker-compose pull
docker-compose up -d

โšก Docker Installation (Lightweight runtime, commonly used for external MYSQL/RDS services)

[!NOTE] After successful execution, the host machine address is http://localhost:8094.

To use the stable version, use programzmh/chatnio:stable instead of programzmh/chatnio:latest

docker run -d --name chatnio \
   --network host \
   -v ~/config:/config \
   -v ~/logs:/logs \
   -v ~/storage:/storage \
   -e MYSQL_HOST=localhost \
   -e MYSQL_PORT=3306 \
   -e MYSQL_DB=chatnio \
   -e MYSQL_USER=root \
   -e MYSQL_PASSWORD=chatnio123456 \
   -e REDIS_HOST=localhost \
   -e REDIS_PORT=6379 \
   -e SECRET=secret \
   -e SERVE_STATIC=true \
   programzmh/chatnio:latest

Version update (After enabling Watchtower, manual updates are not necessary. After execution, follow the steps above to run again):

docker stop chatnio
docker rm chatnio
docker pull programzmh/chatnio:latest

โš’ Compile and Install

[!NOTE] After successful deployment, the default port is 8094, and the access address is http://localhost:8094

Config settings (~/config/config.yaml) can be overridden using environment variables. For example, the MYSQL_HOST environment variable can override the mysql.host configuration item

git clone https://github.com/Deeptrain-Community/chatnio.git
cd chatnio

cd app
npm install -g pnpm
pnpm install
pnpm build

cd ..
go build -o chatnio

# e.g. using nohup (you can also use systemd or other service manager)
nohup ./chatnio > output.log & # using nohup to run in background

๐Ÿ“ฆ Tech Stack

๐Ÿคฏ Why Create This Project & Project Advantages

Therefore, we hope to combine the advantages of these two types of projects to create a project that has both a powerful API distribution system and a rich user interface design, thus meeting the needs of C-end users while developing B-end business, improving user experience, reducing user learning costs, and increasing user stickiness.

Thus, Chat Nio was born. We hope to create a project that has both a powerful API distribution system and a rich user interface design, becoming the next-generation open-source AIGC project's one-stop commercial solution.

โค Donations

If you find this project helpful, you can give it a Star to show your support!