[UNTESTED] [truepushkar/llm-proxy] 2 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,162 characters
Status: [UNTESTED]
Endpoints found:
http://localhost:8000/v1/chat/completions
http://localhost:8000/v1/models
Source: https://github.com/truepushkar/llm-proxy
# OpenAI-Compatible Reverse Proxy
A self-hosted reverse proxy that sits in front of one or more upstream LLM
providers and exposes them behind a single, OpenAI-compatible API. Point any
OpenAI SDK or coding harness (Aider, Cline, Continue, OpenHands, etc.) at its
`base_url` and it works unchanged — chat, models, images, TTS, and embeddings.
Built with **FastAPI + aiohttp** (Python 3.11+). Streaming SSE, connection
pooling, per-key auth, per-key × model rate limiting, cost tracking, webhooks,
and an admin dashboard.
> This is the **public** variant of the project. It ships only a small set of
> example providers (Gemini + OpenAI) so you can bring your own keys. Every
> credential is read from the environment — nothing is hardcoded. On top of the
> chat providers you get **Pollinations** (free image generation) and a full
> suite of **TTS providers** (many free, no key required).
---
## Features
- **Drop-in OpenAI surface** — `/v1` endpoints for chat, models, images, TTS,
and embeddings, in OpenAI request/response shapes.
- **Streaming SSE** — `data:` chunks terminated with `[DONE]`, plus `stream: true`
and `stream_options.include_usage`.
- **Reasoning passthrough** — DeepSeek-style `reasoning_content` / `reasoning`
fields forwarded untouched (streamed and non-streamed).
- **One shared `aiohttp.ClientSession`** — created in the FastAPI lifespan and
reused by every provider.
- **Per-key API keys** — separate from upstream credentials; stored in
`data/keys.json`.
- **Per-key × model rate limiting** — sliding-window token bucket → `429`.
- **Usage stats & cost tracking** — per key + per key × model, with monthly USD
budgets, daily request caps, key expiry, and per-model pricing overrides.
- **Audit log** — bounded request log (key, model, provider, latency, tokens,
cost, error).
- **Webhooks** — fire-and-forget notifications on `success` / `error` / `key` /
`other` events (Discord-shaped bodies supported).
- **Prometheus `