Skip to content
← Tools / Skills
Toolsongquanpeng/10 trustVerified

One-API

Self-hosted LLM gateway for API key management and redistribution.

Visit official site →

About

One-API is an open-source, self-hosted LLM API management and distribution system by songquanpeng, with roughly 35,000 GitHub stars. It unifies providers like OpenAI, Azure, Anthropic, Google Gemini, DeepSeek, and Chinese providers such as Zhipu, Moonshot, and Baichuan behind a single OpenAI-compatible endpoint, handling API key management, per-user quotas, token-based billing, and multi-channel routing with load balancing.

It ships as a single Go binary or Docker image, making it popular with teams running internal AI platforms and resellers in China, and has spawned a large ecosystem of forks such as NewAPI. It is MIT licensed and costs nothing beyond hosting and upstream provider bills, though uptime, security, and abuse prevention are the operator's responsibility.

What it can do

  • One OpenAI-compatible endpoint across dozens of providers
  • Per-user API keys with quotas and token-based billing
  • Multi-channel routing with priority and load balancing
  • Admin dashboard with usage charts and logs

Setup

Run the single binary or Docker image, then add upstream providers as channels and issue API keys to users.

Prerequisites

A VPS or server to host it and upstream provider API keys.

Use cases

llm-gatewayapi-managementself-hostedopen-source

Works with

Trust score — 8/10

/10 trustVerified

Scored 8/10 (verified tier, metrics-v1). Evidence: Verified via vendor site/docs/GitHub and reputable coverage, wave 95; Trending score 78/100 from researcher assessment.

Sources

Every fact above was checked against these sources. Where a claim comes from the provider and couldn't be independently verified, the text says so.