Sign inSign up

calciumion/new-api

By calciumion

•Updated 1 day ago

New API官方镜像,AI模型接口管理与分发系统

Image
API management
53

1M+

calciumion/new-api repository overview

⁠New API

🍥 Next-generation LLM gateway and AI asset management system

⁠What is New API?

New API is an advanced API gateway and management system for large language models (LLMs) and AI services. Built on One API, it provides enhanced features for managing multiple AI model providers through a unified interface.

⁠Key Features

  • 🎨 Modern UI with multi-language support
  • 💰 Built-in billing system with online payment (Stripe, Alipay)
  • 🔄 Multi-provider support with weighted load balancing
  • 📈 Comprehensive analytics dashboard
  • 🔒 Advanced token management with model restrictions
  • 🤖 Multiple authentication methods (LinuxDO, Telegram, OIDC)
  • ⚡ Support for OpenAI, Claude, Gemini, and many other LLM providers
  • 🎨 Image generation via Midjourney Proxy
  • 🎵 Music generation via Suno API
  • 🔄 Request format conversion between different API formats

⁠Quick Start

Using SQLite (Default):

docker run -d --name new-api \
  -p 3000:3000 \
  -e TZ=Asia/Shanghai \
  -v /path/to/data:/data \
  --restart always \
  calciumion/new-api:latest

Using MySQL:

docker run -d --name new-api \
  -p 3000:3000 \
  -e TZ=Asia/Shanghai \
  -e SQL_DSN="root:password@tcp(localhost:3306)/oneapi" \
  -v /path/to/data:/data \
  --restart always \
  calciumion/new-api:latest

Access the dashboard at http://localhost:3000

⁠Documentation

⁠Requirements

  • Database: SQLite (default) / MySQL ≥ 5.7.8 / PostgreSQL ≥ 9.6
  • Volume: Mount /data directory for persistent storage
  • Port: Default 3000

⁠Important Notes

  • For multi-instance deployment, set SESSION_SECRET environment variable
  • If using shared Redis, set CRYPTO_SECRET for data encryption
  • This project is for personal learning purposes only
  • Must comply with OpenAI's Terms of Service and local regulations

⁠License

https://github.com/QuantumNous/new-api?tab=License-1-ov-file#readme⁠

Tag summary

Content type

Image

Digest

sha256:3293fc3d1…

Size

73.8 MB

Last updated

1 day ago

docker pull calciumion/new-api