In-Depth Review & Guide
Key Capabilities & Highlights
New API (QuantumNous/new-api, ~53k GitHub stars, Go, AGPL-3.0) is a self-hosted AI gateway. One deployment exposes three client protocols — OpenAI Chat Completions/Responses, Anthropic Messages and native Gemini — so existing SDKs only need a new base_url and key. A single model name can map to several upstream channels with weights and priorities; failed calls retry elsewhere and unhealthy channels are auto-disabled. Model remapping and parameter overrides normalize aliases, temperature and max_tokens. Upstreams include OpenAI, Anthropic, Azure OpenAI, AWS Bedrock, Vertex AI, Gemini, DeepSeek, Qwen, Ollama and vLLM, plus Midjourney, Suno and Rerank task proxies. Token quotas, user groups, group/channel multipliers, cache-token pricing and redemption codes support real chargeback; usage logs, dashboards and a plugin marketplace cover day-two operations.
Pricing & Access
The software is free under AGPL-3.0; you pay for servers and upstream tokens. Deploy the official Docker image (calciumion/new-api), defaulting to SQLite, with MySQL/PostgreSQL and Redis for production. A public demo and documentation live at newapi.ai. Self-hosting works directly in mainland China; overseas upstreams need compliant network egress, or you can register an OpenAI/Claude-compatible relay as just another channel.
Best Use Cases
Sharing one model budget across internal apps; MSPs delivering private-label AI gateways; platform teams standardizing Azure, Bedrock and Chinese models behind one endpoint; per-department quotas with auditable logs.
Pros, Cons & Alternatives
Pros: broad protocol coverage, granular billing, mature Chinese admin UI and payment integrations, active community. Cons: you operate the database, backups and upgrades; public resale requires filing, content-safety review and upstream authorization. Alternatives: One API (lighter, same lineage), LiteLLM Proxy (Python, config-first), OpenRouter (hosted, zero ops) and Higress AI Gateway (Kubernetes-native).
