Status: [LIVE] Endpoints found: https://dashscope.aliyuncs.com/v1/ Source: https://github.com/magicbear/ai-api-proxy # AI API Proxy A highly configurable, OpenAI-compatible API proxy that unifies multiple AI model providers behind a single entry point, with real-time monitoring, usage statistics, and inference performance testing. > 中文文档:[README_zh.md](README_zh.md) ## Features - **Multi-endpoint proxying** — map custom path prefixes (e.g. `/bailian`, `/local-vllm`) to any OpenAI-compatible backend - **Aggregated endpoints** — unified `/v1/models` and `/v1/chat/completions` that route by model name across all backends - **Model management** — display toggles, per-model routing, name redirects, and vision-model redirects - **Per-key / per-IP access rules** — control which models each API key or client IP can see (wildcard support) - **Real-time monitoring dashboard** — active connections, live stream data, and token usage stats via WebSocket - **Inference performance testing** — benchmark endpoints directly from the monitor UI (prefill/output latency & throughput, PNG/CSV/Markdown export, optional Ray cluster hardware auto-fill) - **ccusage token statistics** — daily usage breakdown powered by [ccusage](https://github.com/ryoppippi/ccusage) ## Quick Start ```bash pip install -r requirements.txt cp proxy_config.example.json proxy_config.json # then edit it python proxy_server.py ``` - Proxy: `http://0.0.0.0:16900` (port configurable) - Monitor dashboard: `http://localhost:16900/monitor` `proxy_config.json` contains your keys and is excluded via `.gitignore` — always edit it locally. ## Configuration The proxy reads `proxy_config.json` (path overridable via the `CONFIG_PATH` environment variable). Full annotated example: [`proxy_config.example.json`](proxy_config.example.json). ```jsonc { "port": 16900, // proxy + monitor port "ray_dashboard": "http://127.0.0.1:8265", // optional: Ray dashboard for perf-test hardware info "endpoints": [ { "proxy_path_prefix": "/bailian", // e