← all repositories
fruitbars/simple-one-api

One Go binary, one OpenAI facade, a dozen LLM backends

It exists because 'OpenAI-compatible' Chinese LLM APIs usually aren't, and one-api is overkill for personal use.

2.3k stars Go Other AI
simple-one-api
Not currently ranked — collecting fresh signals.
star history

What it does

simple-one-api is a lightweight Go gateway that exposes a standard OpenAI /v1/chat/completions endpoint in front of a mixed crowd of LLM providers—Baidu Qianfan, iFlytek Spark, Tencent Hunyuan, ByteDance Coze, DeepSeek, Gemini, Claude, Groq, Ollama, and others. You point your existing OpenAI client at it and forget which backend is actually answering. The author built it after finding one-api too heavy for personal use and discovering that many vendors’ “OpenAI compatibility” comes with subtle dialects.

The interesting bit

The project treats API heterogeneity as damage and routes around it: it injects unsupported system prompts into the first user message, normalizes model aliases, and can load-balance across multiple keys or randomly pick a working backend from a pool. That makes it less a “platform” and more a polyglot secretary that paper-shuffles until everything looks like OpenAI.

Key highlights

  • Single static binary with no runtime dependencies, billing dashboards, or statistics to babysit.
  • Covers a wide spread: Chinese giants (Baidu, Tencent, ByteDance, Alibaba), Western services (OpenAI, Gemini, Claude, Groq), and local runners (Ollama).
  • Client-side verified against Next Chat, Lobe Chat, gpt_academic, and Chat X.
  • Built-in rate-limiting knobs (QPS, QPM, concurrency) per service.
  • Supports model aliasing and a random fallback model that hunts for any configured backend that is currently alive.

Caveats

  • Documentation and community support are overwhelmingly Chinese; English speakers will need to lean on translation tools or guess from the config examples.

Verdict

Grab this if you want to wire a personal OpenAI client to a patchwork of free or paid LLM accounts without running a full billing platform. Skip it if you need multi-user metering, fine-grained access control, or native English troubleshooting.

Frequently asked

What is fruitbars/simple-one-api?
It exists because 'OpenAI-compatible' Chinese LLM APIs usually aren't, and one-api is overkill for personal use.
Is simple-one-api open source?
Yes — fruitbars/simple-one-api is open source, released under the MIT license.
What language is simple-one-api written in?
fruitbars/simple-one-api is primarily written in Go.
How popular is simple-one-api?
fruitbars/simple-one-api has 2.3k stars on GitHub.
Where can I find simple-one-api?
fruitbars/simple-one-api is on GitHub at https://github.com/fruitbars/simple-one-api.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.