{"full_name":"QuantumNous/new-api","owner":"QuantumNous","name":"new-api","url":"https://github.com/QuantumNous/new-api","description":"Open-source AI gateway. Self-hosted LLM gateway with OpenAI-, Claude- and Gemini-compatible APIs, model routing, access control, usage tracking and cost accounting.","homepage":"https://www.newapi.ai","topics":[],"language":"Go","license":"AGPL-3.0","avatar":"https://avatars.githubusercontent.com/u/205075698?v=4","created_at":"2023-11-10T19:33:36Z","pushed_at":"2026-11-09T13:41:06Z","metrics":{"stars":51688,"forks":12592,"watchers":160,"issues":3961,"prs":3591,"releases":536,"issues_open":null,"issues_closed":null,"prs_open":null,"prs_closed":null,"prs_merged":null,"discussions":113},"growth":{"day":{"stars":84,"forks":23,"base_day":"2026-11-09"},"week":{"stars":471,"forks":164,"base_day":"2026-11-03"},"month":{"stars":2406,"forks":739,"base_day":"2026-10-11"}},"history":{"dates":["2026-09-12","2026-09-13","2026-09-14","2026-09-15","2026-09-16","2026-09-17","2026-09-18","2026-09-19","2026-09-20","2026-09-21","2026-09-22","2026-09-23","2026-09-24","2026-09-25","2026-09-26","2026-09-27","2026-09-28","2026-09-29","2026-09-30","2026-10-01","2026-10-02","2026-10-03","2026-10-04","2026-10-05","2026-10-06","2026-10-07","2026-10-08","2026-10-09","2026-10-10","2026-10-11","2026-10-12","2026-10-13","2026-10-14","2026-10-15","2026-10-16","2026-10-17","2026-10-18","2026-10-19","2026-10-20","2026-10-21","2026-10-22","2026-10-23","2026-10-24","2026-10-25","2026-10-26","2026-10-27","2026-10-28","2026-10-29","2026-10-30","2026-10-31","2026-11-01","2026-11-02","2026-11-03","2026-11-04","2026-11-09","2026-11-10"],"stars":[46863,47026,47100,47202,47308,47370,47532,47622,47719,47822,47920,47969,48071,48147,48244,48314,48409,48455,48607,48694,48781,48856,48900,48937,49013,49093,49179,49200,49230,49282,49320,49361,49433,49528,49663,49796,49867,49955,50035,50093,50131,50267,50334,50412,50489,50577,50621,50736,50809,50886,50969,51053,51217,51284,51604,51688],"forks":[11153,11203,11236,11263,11288,11302,11362,11383,11410,11432,11459,11475,11516,11536,11554,11570,11591,11614,11663,11698,11713,11727,11740,11749,11766,11795,11820,11826,11836,11853,11857,11864,11894,11908,11935,11977,11993,12022,12036,12060,12079,12134,12159,12176,12203,12235,12251,12278,12303,12327,12352,12372,12428,12453,12569,12592],"watchers":[151,154,155,156,156,157,159,159,159,160,161,162,162,163,163,165,165,166,166,165,165,165,165,165,165,165,163,163,163,164,164,165,166,166,166,166,167,167,167,167,165,165,165,165,162,161,157,157,157,158,158,158,159,159,160,160],"issues_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"prs_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},"boards":{"monthly":194},"same_owner":[],"issues":[{"number":4543,"title":"[BUG] ClaudeCode 使用 OpenAI 格式接入的 Deepseek V4 上游会遇到 400 `reasoning_content` 报错","comments":27,"created_at":"2026-04-29T14:48:08Z"},{"number":1618,"title":"接入claude code会报错","comments":24,"created_at":"2025-08-19T15:30:14Z"},{"number":7260,"title":"希望增加统一素材管理（Asset/Material）能力","comments":15,"created_at":"2026-09-08T09:08:06Z"},{"number":4711,"title":"[Feature] 为 /v1/images/generations 增加异步任务模式（提交 + 查询）","comments":14,"created_at":"2026-05-09T06:03:29Z"},{"number":2845,"title":"希望增加兑换码（订阅码）兑换订阅套餐的功能","comments":13,"created_at":"2026-02-05T03:12:40Z"},{"number":5966,"title":"使用高级自定义渠道之后游乐场聊天提示 无可用渠道（distributor）","comments":12,"created_at":"2026-07-07T05:52:49Z"},{"number":4242,"title":"希望支持可灵模型按官方方式计费","comments":12,"created_at":"2026-04-14T12:30:18Z"},{"number":2822,"title":"[Feature Request] Openrouter支持/v1/messages和/v1/responses 原生端点","comments":12,"created_at":"2026-02-03T14:45:27Z"}],"discussions":[{"number":8206,"title":"【开源】基于 New API 原版模型广场改造：选好分组一键开通 API Key + 比官方省多少 + 树状卡片 + 多模型对比","comments":0,"category":"Show and tell","created_at":"2026-11-04T19:47:12Z"},{"number":8191,"title":"使用codex帐号，都没有碰到帐号容易超select model is at capacity.Please try a different model的错么","comments":0,"category":"Q&A","created_at":"2026-11-04T03:02:11Z"},{"number":8187,"title":"（已撤回）关于提交 icon 到 simple-icons","comments":0,"category":"General","created_at":"2026-11-03T16:12:53Z"},{"number":8137,"title":"咨询：Responses WebSocket 是否考虑支持 Codex 的 response.interrupt 扩展事件？","comments":0,"category":"Q&A","created_at":"2026-10-31T16:04:24Z"},{"number":8134,"title":"[Show and tell] newapi-operator：给自建 New API 的管理 MCP，47 个工具 + 全量接口透传","comments":0,"category":"Show and tell","created_at":"2026-10-31T11:27:19Z"},{"number":8056,"title":"[Show and tell] 消费公开报价数据做的中文查询页：分组、计费单位与采集边界","comments":0,"category":"Show and tell","created_at":"2026-10-27T09:07:49Z"},{"number":7826,"title":"接口报错了","comments":0,"category":"Q&A","created_at":"2026-10-15T05:15:45Z"},{"number":7788,"title":"Session Affinity or Sticky Session","comments":1,"category":"Q&A","created_at":"2026-10-13T07:57:03Z"}],"latest_release":{"name":"v1.0.0-rc.49","tag":"v1.0.0-rc.49","published_at":"2026-11-08T05:06:38Z","body":"> [!IMPORTANT]\n> 增加了 gpt-image-2.6 的支持。它的新参数 complexity、svg、frame_count、frame_duration_ms 和 markup 会转发给上游，可以生成 SVG 和 GIF，编辑图片时可以带 markup 标注图层。\n>\n> 修复了 Redis 集群和分片 Redis 上修改用户或令牌时报 `keys must in same slot` 的问题。多节点部署请把所有节点一起升级，新旧版本混跑时，一个节点上的用户和令牌变更不一定能及时同步到另一个版本的节点。\n>\n> `SQLITE_PATH` 只写文件路径时，现在和默认配置一样开启 WAL 和写入等待。数据库旁边会多出 `-wal` 和 `-shm` 文件，备份时要一起复制。\n>\n> 模型定价保存时会逐个模型列出当前价格和新价格，确认后才保存。删掉的价格在保存前可以撤销。\n>\n> Added support for gpt-image-2.6. Its new parameters complexity, svg, frame_count, frame_duration_ms, and markup are forwarded to the upstream, so it can generate SVG and GIF images, and image edits can include a markup layer.\n>\n> Fixed the problem of `keys must in same slot` errors when editing users or tokens on Redis Cluster or sharded Redis. Upgrade every node of a multi-node deployment together. While old and new versions run side by side, a user or token change on one node may not reach nodes on the other version in time.\n>\n> A `SQLITE_PATH` that is only a file path now gets WAL and the busy timeout, the same as the default setting. `-wal` and `-shm` files appear next to the database. Copy them together with it when you back up.\n>\n> Saving Model Pricing now lists the current and new price of each model and saves only after you confirm. A deleted price can be undone until you save.\n\n## 中文\n\n* **任务插件**：增加了 Vertex AI 渠道的 Gemini Omni 1.2 Flash，视频最长 15 秒。修复了 Gemini Omni 只把第一张输入图片发给 Vertex 的问题。Gemini Omni 生成失败时会返回失败原因。从插件市场安装或上传的插件也能用顶层的 `/v1` 地址调用了，比如 TypeSafe 的 `POST /v1/systemone`。\n* **计费**：模型定价会列出价格需要处理的模型，选中模型能看到原因和处理方法。只统计启用的渠道实际提供的模型，内置价格只在已保存或有渠道提供时才列出。删掉的价格在保存前只是草稿，可以撤销。改过的行会显示新旧价格，保存时逐个模型列出当前价格和新价格，确认后才保存。在手机上，标签页单独占一行可以滑动，次要操作收进了菜单。\n* **渠道**：增加了 gpt-image-2.6 的支持，complexity、svg、frame_count、frame_duration_ms 和 markup 参数会转发给上游，可以生成 SVG 和 GIF，编辑图片时可以带 markup 标注图层。DeepSeek 官方 Responses 接口的工具调用历史缺少 reasoning 时会自动补上，避免 DeepSeek 因此返回 400。高级自定义渠道的入口路径增加了 `/v1/tools/search` 和 `/v1/tools/fetch`。修复了 Vertex AI 服务账号每个请求都重新换取访问令牌的问题，令牌现在缓存到过期前 5 分钟。修复了多密钥渠道的密钥全部失败后，重新启用其中一个密钥，渠道仍然处于自动禁用的问题。修复了手动禁用的渠道在请求失败后变成自动禁用、又被自动测试重新启用的问题。渠道亲和性里的会话规则可以单独清空自己的缓存，刷新统计和清空缓存的说明也写清楚了。\n* **其他**：修复了 Redis 集群和分片 Redis 上修改用户或令牌时报错的问题。修复了 `SQLITE_PATH` 只写文件路径时丢掉 WAL 和写入等待设置，并发写入报 \"database is locked\" 的问题。修复了用邀请码通过 OAuth 注册的新用户没有记录邀请人的问题。\n\n## English\n\n* **Task plugins**: Added Gemini Omni 1.2 Flash on Vertex AI channels, with videos up to 15 seconds. Fixed the problem of Gemini Omni sending only the first input image to Vertex. A failed Gemini Omni generation now returns the reason. Plugins installed from the marketplace or uploaded can now be called at their top-level `/v1` paths too, such as TypeSafe's `POST /v1/systemone`.\n* **Billing**: Model Pricing lists the models whose prices need attention. Select a model to see the reason and what to change. Only models an enabled channel serves are counted, and built-in prices are listed only when saved or served by a channel. A deleted price stays a draft until you save, and you can undo it. Changed rows show the old and new prices. Every save lists the current and new price of each model and saves only after you confirm. On phones, the tabs have their own scrollable row and secondary actions are in a menu.\n* **Channels**: Added support for gpt-image-2.6. Its complexity, svg, frame_count, frame_duration_ms, and markup parameters are forwarded to the upstream, so it can generate SVG and GIF images, and image edits can include a markup layer. When tool call history sent to DeepSeek's official Responses API lacks reasoning, it is filled in, so DeepSeek does not reject the request with a 400. Advanced Custom channels can use the incoming paths `/v1/tools/search` and `/v1/tools/fetch`. Fixed the problem of Vertex AI service accounts requesting a new access token for every request. Tokens are now cached until 5 minutes before they expire. Fixed the problem of a multi-key channel staying auto-disabled when one key was enabled again after all keys failed. Fixed the problem of a manually disabled channel becoming auto-disa"},"readme":true,"readme_zh":true,"news":[{"title":"开源AI网关应用New API —— 筑梦之路","url":"https://blog.csdn.net/qq_34777982/article/details/156491217","source":"blog.csdn","lang":"zh","date":"2026-09-05"},{"title":"日志治理新范式：GitHub加速计划(new-api)的完整日志管理实战指南","url":"https://blog.csdn.net/gitblog_00246/article/details/151602516","source":"blog.csdn","lang":"zh","date":"2026-02-03"},{"title":"Over 100,000 GitHub repos have leaked API or cryptographic keys","url":"https://www.zdnet.com/article/over-100000-github-repos-have-leaked-api-or-cryptographic-keys/","source":"ZDNet","lang":"en","date":"2019-03-21"},{"title":"Open source license compliance generally available","url":"https://news.google.com/rss/articles/CBMilwFBVV95cUxNRFY1SWtVaWdtV0N4a2FkSGhjOGZUTzJuVnpUTzluci1tX1RiNmluakszZHM4eVZzMG9EZEJvMTdXMGNsRXRDa2g2X3lGMm85Z1NnNmNNZGp1cWFnSVh5QWhGT19ta3RmNzdVLWREakJvVUhqWF9hNDhsVXhhY3Y4d2F2WmlsdXp1VHFHaGI1dU94bTVNS1pR?oc=5","source":"The GitHub Blog","lang":"en","date":"2026-10-16"},{"title":"New API endpoint provides privacy-safe star history data","url":"https://news.google.com/rss/articles/CBMinwFBVV95cUxNSVZHUVU4c091XzFSRnVFVWFBUTZvUnEzWTl4eXhfdk41ckxKWUVyckMyNXZ0SVNHcXBUNWhhM3BJM3lRZFUtQ2F2UXQ1VlZ4U1JrU0txUDhUY3dwLUI0b1FWRlBmZ2hxdG03Z1lxclE4U0ktUXpQaHZ3bDA1WWc4VHZnUDJqWDE2SXRYaGZUdTZ1UXo3QUNoZzQxSFVNUnc?oc=5","source":"The GitHub Blog","lang":"en","date":"2026-09-04"},{"title":"42Crunch and GitHub Copilot Bring Deterministic API Security Guardrails to Agentic DevSecOps","url":"https://news.google.com/rss/articles/CBMi4wFBVV95cUxNcnpVZjV5U3N4SDBOckJwYU9qdTNna1dtcFo2UjVac0YyVm5aaTJsNVcyTzZYelNOQU9GVVZiOEpqVVZ3TXhLMUtILXpjQUxSd1JJOUphUXZMMTd0U1A3QlNrd0lsU0U1enBvNzhlb2JBR1liSWppeGZHVUV5Um9WX1N3VERMU01EeDE3eV9BUnpLUlo4TkllVW82VEFhWUpvOG5SNXBBRmhiWEtyazBNQ0t0clBwMGRIQU9mMWlVQzF6ZE9lakRLVXFlUHZkUG9rVkJkZHVJeUlwVUZ5RW9HNkNtZw?oc=5","source":"Business Wire","lang":"en","date":"2026-06-17"},{"title":"New enterprise installation API now in public preview","url":"https://news.google.com/rss/articles/CBMimwFBVV95cUxQUGhleTR1ZWl2dFBFaURkVndNTkpWbTFPVHVoMlNVRU5WWFBuaDJua1FrdXI4V3RlUU1iVEE0VEh5Y2c0Wk1FeW9za0JIWmJzVG5HQmdHZFp2QXNvUWdlM1N3WlM1S08xbFdIVGFHOWNhZzZENEpmT3JrenZseHZWSFJqSXZhQmFCYTE2S1VkQ01kZFE1X3ozQmlYZw?oc=5","source":"The GitHub Blog","lang":"en","date":"2026-05-13"},{"title":"傅盛新品陷“换皮”风波：被指套壳开源项目","url":"https://news.google.com/rss/articles/CBMihwFBVV95cUxNelI3MS1FV0hOZUNTa1FEVWQ0dFRJREpLSTM3aUZzbFZpYkJDWTRBMVloTk0zd0VBTk5WQW1aYV9CWDBpakF2Q2k1ZW4zVlpJeldaVFA1QmlnajRrLUU4eTNEd1c0d3NQS0tjOEl5V09hVU5kMTd0LXJVZDdDUkNhTE1Bcmh1RTA?oc=5","source":"新浪财经","lang":"zh","date":"2026-05-04"},{"title":"月入百万的 AI中转站，钱到底从哪来？","url":"https://news.google.com/rss/articles/CBMiVkFVX3lxTE1tc1RJdWJKQWpIdTZKT0NMUjZKWHE2Z29SYUlUYWlHa1daTldBc3A1ZC1GMWRoV19zcG1XZUJtZTBrZTFsVFF6d2pCOTVNTVpaeURERjBR?oc=5","source":"QQ News","lang":"zh","date":"2026-04-26"},{"title":"告别手动配置：开源工具 new-api-sync 实现多 AI 渠道自动化同步","url":"https://news.google.com/rss/articles/CBMiZ0FVX3lxTE1ZVzcyLXlPblkxSk0xYzhBVXJtZ3oxa21xTE5PWDRIQTdveFEwOF94YTh4T2JhTkJRalNzVmxlTWhRV25ob1EyWU5BMk1yakNPVXRxbzA2dklVMDhMYXFTVGZvQXE1aGM?oc=5","source":"www.80aj.com","lang":"zh","date":"2026-04-13"},{"title":"GitHub Proposes HTML-in-Canvas for Enhanced Rendering","url":"https://news.google.com/rss/articles/CBMirgFBVV95cUxPZHNndFhDOEQ5WjhfWlpqS092MkNLTWNwd3gyYXNOVVVOcDdqM0U5dFZlQlNYTzZLazZndnJGZEloNVJPd05TVERKVEpUd3hEUG5GS0JFcmdpbWNZaVFnc2VVNGVPYzYzcWJCTVhnVlVkOEpsTW53eVpjalJ4OVpFVU1IMjlGUzdwQTR4ajdPUlpnNFM0Z1lXaDVmSkJuZmFyMlJjY0JQTUZnTzlCU3fSAbMBQVVfeXFMTTN2UjlvVjBmcTBOUlFCaU11WjVtT1NxTTdmXzVvYWFKcnRwa3ZPVlJYMkwyaGhHWE92Wk1NM3JnUjRtYnVHM0lZbkNWc3dlQTdoblExZk1EdmI2TFFFdEdfMjZvazRSaHNHX3kwSkxtX0UwUnVxNy1SOEcydHJNMHU2akI5Y1pKY0MtYXRwc01GLUxRR1g2dEpiSnhieWczQjZJT0Qzd1dfaUxkTG5BQmxOTmc?oc=5","source":"TechGig","lang":"en","date":"2026-04-11"},{"title":"OpenAI和Anthropic世纪联手，codex-plugin-cc震动AI圈，两大巨头开放王炸产品","url":"https://news.google.com/rss/articles/CBMiTkFVX3lxTE12bzRFR1RXVDFOQnR4OUVqSE85NE5ORTByN3NUWU91MzRRUFJLbkdIOTZjdThZSV8zX1VVdzVPX2tVeGxuQWZxQnZfcWg3dw?oc=5","source":"36Kr","lang":"zh","date":"2026-03-30"},{"title":"多模型API管理的痛点：开发者实测New API与Octopus","url":"https://news.google.com/rss/articles/CBMickFVX3lxTFBZQzZoeG9SaHAyTEw4cWw5U2VRaG95WDNqWnJFWGdDLWlpelUxMWliOVNkbm9fbmpxdlE5RlFnZ09jdHRKQVdiamd4ZmpmQ1FaeWdSTDFBa2dPeDdLYTBGeG9yZzRmeGgyV2V4UV9pOWpqUQ?oc=5","source":"80aj.com","lang":"zh","date":"2026-02-05"},{"title":"「免费额度」秒变40万债务？学生误泄Gemini API密钥背上巨额账单：开发者社区炸锅，谷歌最终免单","url":"https://news.google.com/rss/articles/CBMiZ0FVX3lxTE1EUFVCOXd2cmpDMWJ6NEk1cVRvQXNrUG5ZZWZSZ0ozUEFUTHRBTjB1S3NRUDd1TVpRODN4ZURqNDlmRmZPYmdCSHpWUW5tN3ZULS1sYURVNGczSnRzNmcwYWFmX1JSWEU?oc=5","source":"CSDN博客","lang":"zh","date":"2025-09-28"}],"stale":false,"snapshot_at":"2026-11-10T09:35:25Z","history_start":"2026-09-06"}