# New API

New API is an open-source, self-hosted AI gateway with OpenAI-, Claude- and Gemini-compatible APIs for applications, agents and teams. It is open source and self-hosted, installable on Proxmox.

Canonical page: https://ourlocalhost.com/app/7698/new-api

## Description

New API is an open-source, self-hosted AI gateway with OpenAI-, Claude- and Gemini-compatible APIs for applications, agents and teams. It connects multiple upstream model providers and adds model routing, access control, usage tracking and cost accounting on your own infrastructure.

## Platform availability

Available on 1 of 10 platforms: Proxmox.

## Health score

69/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 8 days ago)
- Popular: 94 (51,885 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Security check: 20 (1 serious finding, 3 minor, CI, tests)

## Security check

1 serious finding: A private key is committed in the source code.
Automated checks on commit b388140, 13 Nov 2026. Not an audit.

## Links

- Official website: https://www.newapi.ai
- Documentation: https://docs.newapi.ai/en
- Proxmox: https://community-scripts.github.io/ProxmoxVE/scripts?id=new-api
- GitHub: https://github.com/QuantumNous/new-api

## Common questions

### How can I route requests across several upstream keys or channels in New API?

You can configure model mappings and channel priorities and weights. It also supports retries, channel affinity, and multiple upstream keys.

### Can New API track usage and cost for different model tiers?

Yes, it can manage quotas, subscriptions, usage logs, and cache accounting. It also supports expression-based pricing for different usage tiers.

### What does the “Channel test error: Ratio or price not configured” message mean?

It means the channel’s ratio or price has not been set. An administrator must set the missing value.

### Why is the GPT-4 token multiplier fixed at 2 in New API?

It is fixed at 2, the same as the official GPT-4 value. New API keeps its default multipliers consistent with the official API and adjusts for non-streaming mode, where the official API returns total tokens consumed.

### What should I complete before operating New API as a public AI or API resale service?

You should first complete required filing, licensing, content safety, real-name verification, log retention, tax, payment, and upstream authorization obligations. You must also lawfully obtain upstream keys, accounts, model services, and interface permissions and comply with upstream terms and applicable laws.

---
Source: Our Local Host (https://ourlocalhost.com/app/7698/new-api), the self-hosted and open-source app directory.
