Veloera is an AI API gateway system forked from New API, offering comma-separated multi-key support per channel with random selection, global gift code system with usage limits, native Hugging Face v1 interface support, regex-based content filtering, and unencrypted channel keys displayed in frontend. Features include refreshable logs with channel names, enhanced loading UI, selective chat button display, zero-cost empty replies, and comprehensive token tracking (total/input/output).
Built with Go and featuring GPL v3 license with additional usage terms requiring preservation of 'Powered by Veloera' branding, VELOERA_PROJ file, and /veloera route. Seamless migration from New API with automatic database structure compatibility (SQLite users rename to veloera.db). Environment variables support streaming timeout, Dify debug output, force stream options, media token statistics, async task updates, Cohere safety settings, Gemini vision limits, file download caps, crypto encryption, Azure API versions, and notification throttling. Deploy via Docker with ghcr.io/veloera/veloera:latest.
Use Cases:
!Veloera (https://socialify.git.ci/Veloera/Veloera/image?font=Raleway&forks=1&issues=1&name=1&owner=1&pattern=Plus&pulls=1&stargazers=1&theme=Auto)
Codacy Badge (https://app.codacy.com/project/badge/Grade/717a063ac5b8435cb78c8c3e71e6c5f3) Go Report Card (https://goreportcard.com/badge/github.com/Veloera/Veloera) License (https://img.shields.io/github/license/Veloera/Veloera) GitHub release (latest SemVer) (https://img.shields.io/github/v/release/Veloera/Veloera)
GitHub stars (https://img.shields.io/github/stars/Veloera/Veloera?style=social) Build Status (https://github.com/Veloera/Veloera/actions/workflows/docker.yml/badge.svg) Build Status (https://github.com/Veloera/Veloera/actions/workflows/release.yml/badge.svg)
我正在为该项目寻求资金支持,以更好地维持其发展。如果您有任何想法,请随时与我联系:isneuroplexus[at]outlook.com
我正在为该项目寻求贡献者,如果您有意加入 Veloera 团队,请联系:isneuroplexus[at]outlook.com
优秀的 AI API 网关系统
原汁原味的 New API 体验, 对界面无大改动, 遵循 GPL 3.0 协议, 无商用限制, 承诺不变质.
添加极多原版不计划添加的特性. 以下只是部分.
[!IMPORTANT]
我们近期更新了许可证, 查看整个 README 以了解详情
, 分割的单渠道多 Key, 随机选取.本程序基于 new-api 二开, 数据库结构基本兼容, 会自动运行迁移.
其他类似程序不保证支持, 后续有计划做手动迁移指南.
除了使用 SQLite, 均可无缝迁移.
对于 SQLite, 建议将 one-api.db 重命名为 veloera.db, 系统会尝试自动处理, 但未经过测试.
[!TIP] 最新版 Docker 镜像:
ghcr.io/veloera/veloera:latest
git clone https://github.com/veloera/veloera.git
cd veloera
nano docker-compose.yml
docker-compose up -d
GENERATE_DEFAULT_TOKEN:是否为新注册用户生成初始令牌,默认为 falseSTREAMING_TIMEOUT:流式回复超时时间,默认 60 秒DIFY_DEBUG:Dify 渠道是否输出工作流和节点信息,默认 trueFORCE_STREAM_OPTION:是否覆盖客户端 stream_options 参数,默认 trueGET_MEDIA_TOKEN:是否统计图片 token,默认 trueGET_MEDIA_TOKEN_NOT_STREAM:非流情况下是否统计图片 token,默认 trueUPDATE_TASK:是否更新异步任务(Midjourney、Suno),默认 trueCOHERE_SAFETY_SETTING:Cohere 模型安全设置,可选值为 NONE, CONTEXTUAL, STRICT,默认 NONEGEMINI_VISION_MAX_IMAGE_NUM:Gemini 模型最大图片数量,默认 16MAX_FILE_DOWNLOAD_MB: 最大文件下载大小,单位 MB,默认 20CRYPTO_SECRET:加密密钥,用于加密数据库内容AZURE_DEFAULT_API_VERSION:Azure 渠道默认 API 版本,默认 2024-12-01-previewNOTIFICATION_LIMIT_DURATION_MINUTE:通知限制持续时间,默认 10分钟NOTIFY_LIMIT_COUNT:用户通知在指定持续时间内的最大数量,默认 2感谢这些厂商对 Veloera 的支持:
CDN acceleration and security protection for this project are sponsored by Tencent EdgeOne: EdgeOne offers a long-term free plan with unlimited traffic and requests, covering Mainland China nodes, with no overage charges. Interested friends can click the link below to claim it: https://edgeone.ai/?from=github
成为赞助者:
[!TIP] TL;DR
- 如果你是普通用户:
此更新没有任何影响. 我们会为您处理好合规.- 如果你在运行二开版本:
这是一个重要更新, 如果您希望合规运行v0.2.27.1以上版本(不含), 则请仔细阅读以下更新.更新概要
若您以任何形式使用、修改或分发本项目,除遵循 GPL v3 外,还需遵守以下补充条款:
- 不得移除或遮盖所有页面页脚或“关于”页面中的
Powered by Veloera标识。- 必须保留项目根目录下的
VELOERA_PROJ文件,且不得修改内容。- 不得更改或移除
/veloera路由及其功能行为。本部分仅用于信息说明,不构成法律意见。如您对许可条款存在疑问或面临合规要求,强烈建议咨询法律专业人士。
自 v0.3.27.2 起,本项目更改为 GPL v3 许可证,并附加了额外使用条款。详见本文档下方“许可证”部分。
本项目基于 new-api 项目,原始许可证 Apache License 2.0 已保留于 new-api-stuffs/LICENSE.new-api,截至 fork 时原项目未包含 NOTICE 文件,故无需保留。
截至 commit c956fd3(含该提交),项目仍遵循 Apache 2.0 许可证,附加条款不适用。
本声明仅用于信息说明,不构成法律建议。如有法律合规方面疑问,请咨询专业律师。
本项目自版本 v0.3.27.2 起,采用 GNU 通用公共许可证第 3 版(GPL v3) 授权,并附加以下补充条款:
除非事先获得书面授权,您在使用、修改、分发本项目时,必须同时遵守以下附加要求:
Powered by Veloera 徽标或文字标识。VELOERA_PROJ 文件,且不得修改其内容。/veloera 路由路径及其对应的页面行为。这些附加条款依照 GPL v3 第 7 节的规定添加,并构成本项目许可证的组成部分。
截至 commit c956fd3(含),本项目代码仍遵循 Apache License 2.0,附加条款不适用。详情请参阅历史版本与 LICENSE 文件。
⚠️ 本声明不构成法律建议。如您对许可证条款有任何疑问,请咨询专业法律顾问。
Star History Chart (https://api.star-history.com/svg?repos=Veloera/Veloera&type=Date)
中文 | English
!new-api
🍥新一代大模型网关与AI资产管理系统
[!NOTE] 本项目为开源项目,在One API (https://github.com/songquanpeng/veloera)的基础上进行二次开发
[!IMPORTANT]
- 本项目仅供个人学习使用,不保证稳定性,且不提供任何技术支持。
- 使用者必须在遵循 OpenAI 的使用条款 (https://openai.com/policies/terms-of-use)以及**法律法规**的情况下使用,不得用于非法用途。
- 根据《生成式人工智能服务管理暂行办法》 (http://www.cac.gov.cn/2023-07/13/c_1690898327029107.htm)的要求,请勿对中国地区公众提供一切未经备案的生成式人工智能服务。
详细文档请访问我们的官方Wiki:https://docs.newapi.pro/ (https://docs.newapi.pro/)
New API提供了丰富的功能,详细特性请参考特性说明 (https://docs.newapi.pro/wiki/features-introduction):
-high 设置为 high reasoning effort (例如: o3-mini-high)-medium 设置为 medium reasoning effort (例如: o3-mini-medium)-low 设置为 low reasoning effort (例如: o3-mini-low)-thinking 启用思考模式 (例如: claude-3-7-sonnet-20250219-thinking)系统设置-运营设置 中设置 提示缓存倍率 选项提示缓存倍率,范围 0-1,例如设置为 0.5 表示缓存命中时按照 50% 计费此版本支持多种模型,详情请参考接口文档-中继接口 (https://docs.newapi.pro/api):
详细配置说明请参考安装指南-环境变量配置 (https://docs.newapi.pro/installation/environment-variables):
GENERATE_DEFAULT_TOKEN:是否为新注册用户生成初始令牌,默认为 falseSTREAMING_TIMEOUT:流式回复超时时间,默认60秒DIFY_DEBUG:Dify渠道是否输出工作流和节点信息,默认 trueFORCE_STREAM_OPTION:是否覆盖客户端stream_options参数,默认 trueGET_MEDIA_TOKEN:是否统计图片token,默认 trueGET_MEDIA_TOKEN_NOT_STREAM:非流情况下是否统计图片token,默认 trueUPDATE_TASK:是否更新异步任务(Midjourney、Suno),默认 trueCOHERE_SAFETY_SETTING:Cohere模型安全设置,可选值为 NONE, CONTEXTUAL, STRICT,默认 NONEGEMINI_VISION_MAX_IMAGE_NUM:Gemini模型最大图片数量,默认 16MAX_FILE_DOWNLOAD_MB: 最大文件下载大小,单位MB,默认 20CRYPTO_SECRET:加密密钥,用于加密数据库内容AZURE_DEFAULT_API_VERSION:Azure渠道默认API版本,默认 2024-12-01-previewNOTIFICATION_LIMIT_DURATION_MINUTE:通知限制持续时间,默认 10分钟NOTIFY_LIMIT_COUNT:用户通知在指定持续时间内的最大数量,默认 2详细部署指南请参考安装指南-部署方式 (https://docs.newapi.pro/installation):
[!TIP] 最新版Docker镜像:
calciumion/new-api:latest
SESSION_SECRET,否则会导致多机部署时登录状态不一致CRYPTO_SECRET,否则会导致多机部署时Redis内容无法获取/data目录)安装宝塔面板(9.2.0版本及以上),在应用商店中找到New-API安装即可。 图文教程
# 下载项目
git clone https://github.com/Calcium-Ion/new-api.git
cd new-api
<!-- truncated for length -->
High-performance local LLM server with GPU and NPU acceleration support, featuring multiple inference engines, OpenAI-compatible API, and cross-platform model deployment for AMD Ryzen AI processors.
Developer tool to kill processes blocking ports, manage development caches, and orchestrate services with smart restart, auto-detection, and YAML-based service orchestration across macOS, Linux, and Windows.
Flutter-based cross-platform video streaming client supporting iOS, Android, macOS, and Windows with multi-source search, DLNA casting, smart playback history, and optimized mobile and desktop experiences.
iOS tweak that unlocks Spotify Premium features without subscription by intercepting user data requests, with custom lyrics support from multiple providers and automated IPA build workflow via GitHub Actions.
Self-hosted family fitness tracking platform with AI nutrition coach, comprehensive food and exercise logging, body measurements, water tracking, and interactive reports powered by Docker deployment.
Passwordless SSH authentication tool using OpenID Connect identities instead of SSH keys, generating time-limited certificates with ID Tokens from Google, Microsoft, GitLab, and custom OIDC providers for cross-platform server access.