new-api 后端 API 清单(含 /v1/models)
Project: QuantumNous/new-api · Commit: 1ad2557
1) 系统/公开 API(/api)
| Method | Path |
| GET | /api/setup |
| POST | /api/setup |
| GET | /api/status |
| GET | /api/uptime/status |
| GET | /api/notice |
| GET | /api/user-agreement |
| GET | /api/privacy-policy |
| GET | /api/about |
| GET | /api/home_page_content |
| GET | /api/pricing |
| GET | /api/verification |
| GET | /api/reset_password |
| POST | /api/user/reset |
| GET | /api/oauth/state |
| POST | /api/oauth/email/bind |
| GET | /api/oauth/wechat |
| POST | /api/oauth/wechat/bind |
| GET | /api/oauth/telegram/login |
| GET | /api/oauth/telegram/bind |
| GET | /api/oauth/:provider |
| GET | /api/ratio_config |
| POST | /api/stripe/webhook |
| POST | /api/creem/webhook |
| POST | /api/waffo/webhook |
| POST | /api/verify |
2) 用户与认证(/api/user)
| Method | Path |
| POST | /api/user/register |
| POST | /api/user/login |
| POST | /api/user/login/2fa |
| POST | /api/user/passkey/login/begin |
| POST | /api/user/passkey/login/finish |
| GET | /api/user/logout |
| GET | /api/user/self |
| PUT | /api/user/self |
| DELETE | /api/user/self |
| GET | /api/user/models |
| GET | /api/user/token |
| PUT | /api/user/setting |
| GET | /api/user/2fa/status |
| POST | /api/user/2fa/setup |
| POST | /api/user/2fa/enable |
| POST | /api/user/2fa/disable |
| POST | /api/user/2fa/backup_codes |
| GET | /api/user/checkin |
| POST | /api/user/checkin |
3) 订阅与支付
| Method | Path |
| GET | /api/subscription/plans |
| GET | /api/subscription/self |
| PUT | /api/subscription/self/preference |
| POST | /api/subscription/epay/pay |
| POST | /api/subscription/stripe/pay |
| POST | /api/subscription/creem/pay |
| POST | /api/subscription/epay/notify |
| GET | /api/subscription/epay/notify |
| GET | /api/subscription/epay/return |
| POST | /api/subscription/epay/return |
4) 管理后台(示例汇总)
包含:/api/option/*、/api/custom-oauth-provider/*、/api/performance/*、/api/ratio_sync/*、/api/channel/*、/api/token/*、/api/redemption/*、/api/log/*、/api/data/*、/api/vendors/*、/api/models/*、/api/deployments/*(完整明细已按源码梳理,可继续拆分成单独页面)。
5) Relay / OpenAI兼容(含 /v1/models)
| Method | Path |
| GET | /v1/models |
| GET | /v1/models/:model |
| GET | /v1/realtime (ws) |
| POST | /v1/messages |
| POST | /v1/completions |
| POST | /v1/chat/completions |
| POST | /v1/responses |
| POST | /v1/responses/compact |
| POST | /v1/embeddings |
| POST | /v1/audio/transcriptions |
| POST | /v1/audio/translations |
| POST | /v1/audio/speech |
| POST | /v1/images/generations |
| POST | /v1/images/edits |
| POST | /v1/moderations |
| POST | /v1/rerank |
| POST | /v1/engines/:model/embeddings |
| POST | /v1/models/*path (Gemini兼容透传) |
| POST | /v1/video/generations |
| GET | /v1/video/generations/:task_id |
| POST | /v1/videos |
| GET | /v1/videos/:task_id |
| GET | /v1/videos/:task_id/content |
| POST | /pg/chat/completions |
| GET | /v1beta/models |
| POST | /v1beta/models/*path |
| GET | /v1beta/openai/models |
6) Midjourney / Suno / Kling / Jimeng
Midjourney 前缀:/mj/* 与 /:mode/mj/*;
Suno:/suno/submit/:action, /suno/fetch, /suno/fetch/:id;
Kling:/kling/v1/videos/*;
Jimeng:/jimeng/。
备注
- 本页先做“可浏览目录页”,便于快速对齐接口面。
- 如果你要,我可以再补一版
full.html:逐条列出全部 method+path(无省略)。