├── LICENSE ├── README.md └── images ├── free_chatgpt-next-web.png ├── free_lobe-chat.png ├── free_utools.png ├── free_utools1.png └── logo.png /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 云歌 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
4 | 5 |
14 |
15 |
18 | 快速开始 19 | · 20 | 使用方法 21 | · 22 | 立即领取免费KEY 23 | · 24 | 付费极速API 25 | · 26 | 应用支持 27 |
28 | 29 | 30 | 31 | > [!NOTE] 32 | > 本项目当前API地址已更新为 `https://free.v36.cm` 请知晓! 33 | 34 | > [!IMPORTANT] 35 | > 使用者必须在遵循 OpenAI 的[使用条款](https://openai.com/policies/terms-of-use)以及**法律法规**的情况下使用,不得用于非法用途。 36 | > 根据[《生成式人工智能服务管理暂行办法》](http://www.cac.gov.cn/2023-07/13/c_1690898327029107.htm)的要求,请勿对中国地区公众提供一切未经备案的生成式人工智能服务。 37 | > 该项目API仅用于非商业性的学习、研究、科研测试等合法用途,不得用于任何违法违规用途以及商业用途,否则后果自负。 38 | 39 | > [!TIP] 40 | > 本项目仅供个人学习使用,不保证稳定性,且不提供任何技术支持。 41 | > 已经发现上百个机器号自动领取KEY批量跑API的行为,严重影响了正常用户的使用。当前限制RPM为96,超过将被CC拦截。 42 | > gpt-4o-mini和gpt-3.5模型本身并不贵,如需高并发API请求,请支持付费API哦! 43 | 44 | ## 项目介绍 45 | 46 | 1. 完全免费使用以下勾选模型: 47 | + [x] gpt-4o-mini(速度一般,若要体验极速回复,可购买付费API) 48 | + [x] gpt-3.5-turbo-0125 49 | + [x] gpt-3.5-turbo-1106 50 | + [x] gpt-3.5-turbo 51 | + [x] gpt-3.5-turbo-16k 52 | + [x] net-gpt-3.5-turbo (可联网搜索模型-稳定性稍差) 53 | + [x] whisper-1 54 | + [x] dall-e-2 55 | + [ ] text-开头系列模型,例如:text-davinci(免费版已取消text系列模型) 56 | + [ ] gpt-4全系列(只定期限量开放) 57 | + [ ] 付费版API支持OpenAI所有模型,包括(联网、绘画、聊天、向量、图片分析、文件分析、GPTs等) 58 | + [ ] 付费版API支持Midjourney专业绘画、Suno音乐生成、PPT生成、多种视频模型。 59 | 2. 标准的OpenAI接口请求格式。 60 | 3. 支持流式响应输出。 61 | 4. 完美兼容各类开源的GPT项目/应用/软件。 62 | 63 | ## 免费使用 64 | 65 | 1. 首先 [🚀 **前往领取免费APIKEY**](https://free.v36.cm/github)、领取后请妥善保管你的APIKEY。 66 | 2. 复制免费API地址:`https://free.v36.cm`(无需代理,直接可用)。 67 | 3. 在支持的应用中绑定你的APIKEY+API地址(`BASE_URL`),即可开始使用(可查看[应用支持](https://github.com/popjane/free_chatgpt_api?tab=readme-ov-file#%E5%B8%B8%E7%94%A8%E5%BA%94%E7%94%A8%E6%94%AF%E6%8C%81)列表)。 68 | 69 | 根据用户量的增加,我们会相应提升服务质量,提供更优质的免费服务。在使用上遇到问题,可以在[issues](https://github.com/popjane/free_chatgpt_api/issues)中提出,我们会尽快协助解决。 70 | 71 | ## 付费API 72 | 73 | > [!NOTE] 74 | > 为了确保项目的可持续发展,我们意识到仅依赖公益性质的免费Key是难以长期维持的。注意:免费API不提供任何技术支持,如需稳定高并发的API请求请支持付费API。我们诚挚希望大家能够理解并支持这一决策。 75 | > 76 | > [🚀 **前往购买纯官转直连付费API**](https://api.v36.cm) 77 | > 78 | > 付费APIKEY与免费APIKEY不通用,购买后需按卡密详情方法重新生成KEY使用。 79 | 80 | ### 付费API特点 81 | 82 | 1. 更低延迟、高性能、高可用、高并发、直连官方API(无逆向、无多层中转、非Azure),享受极致体验。 83 | 2. 支持OpenAI所有模型,包括(联网、绘画、聊天、训练、图片分析、GPTs等)目前已支持130+模型。 84 | 3. gpt4价格仅为官网价格的2.8-3折之间,gpt-3.5系列模型为1.4-2折之间,白菜价格。 85 | 4. 定价策略透明公开,模型扣费倍率与官网同步(甚至更低),永不暗调倍率,无低价格却又高倍率陷阱。 86 | 5. 不限时间、按量计费、明细可查,每一笔消费都公开透明。 87 | 6. API仅用于非商业性的学习、研究、科研测试等合法用途,不得用于任何违法违规用途,不得向中国公众提供任何生成式服务,否则后果自负。 88 | 89 | ## 常用应用支持 90 | 91 | > [!NOTE] 92 | > 理论上支持所有可以自定义API地址的GPT应用,以下是一些常用的应用。 93 | > 94 | > 所有应用的API地址(BaseUrl)为`https://free.v36.cm` 95 | > 教程图片中的api地址前缀请更换为`https://free.v36.cm` 96 | 97 | ### 一、ChatGPT.好友插件 98 | 99 | > 该插件为utools的一个插件,支持自定义模型、一键呼出,即用既走,超级面板,在pc任意位置均可快速发送消息。支持Ai聊天、绘画、语音对话、多api管理、多key绑定、角色独立聊天记录、一键查余额。桌面端的神器,但不支持移动端。 100 | > 101 | > 是一个功能非常全面的ai聊天应用插件。 102 | > 103 | > [ **查看应用**](https://u.tools/plugins/detail/ChatGPT.%E5%A5%BD%E5%8F%8B/) 104 | 105 | 绑定教程截图: 106 | 107 |  108 | 109 | 绑定成功后,鼠标右键ai列表,选择需要的模型即可。 110 | 111 |  112 | 113 | ### 二、开源应用Chatgpt-next-web(ChatGPT-Midjourney) 114 | 115 | > [开源Chatgpt-next-web](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web) 这是一个开源web聊天工具,只支持聊天。 116 | > 117 | > [开源ChatGPT-Midjourney](https://github.com/Licoy/ChatGPT-Midjourney) 二开版本,支持Midjourney对话的开源应用。 118 | 119 | 绑定教程截图: 120 | 121 | 点击设置图标。找到自定义接口设置,配置如下: 122 |  123 | 124 | ### 三、Lobe-chat 125 | 126 | > [Lobe-chat](https://github.com/lobehub/lobe-chat) 是一个开源的聊天应用,支持聊天、绘画、语音对话等。 127 | 128 | 绑定教程截图: 129 | 130 |  131 | 132 | ### 四、BotGem 133 | 134 | > [BotGem](https://botgem.com/) 非开源工具,支持PC和移动端,功能单一,只支持聊天,但多端适配。 135 | 136 | 绑定方法类似上方截图教程,填写免费API地址`https://free.v36.cm`+`apikey` 即可。 137 | 138 | ### 五、ChatBox 139 | 140 | > [ChatBox](https://github.com/Bin-Huang/chatbox) 支持桌面端APP版和web版,点开setting按钮配置即可。 141 | 142 | 绑定方法类似上方截图教程,填写免费API地址`https://free.v36.cm`+`apikey` 即可。 143 | 144 | ### 六、FastGPT 145 | 146 | > [FastGPT](https://github.com/labring/FastGPT) 支持知识库的聊天应用。 147 | 148 | 部署时参数host填写`https://free.v36.cm` 可以传入我们的`apikey` 即可 149 | 150 | ### 更多应用支持 151 | 152 | 待更新... 153 | 154 | ### OpenAi官方python库 155 | 156 | > 在openai官方库开发时传入baseurl和apikey即可。 157 | > 158 | > [openai-python](https://github.com/openai/openai-python) 159 | 160 | 以官网的`python`库为例:注意,需要传入`/v1/`后缀。并且openai库需升级到最新版,老版本传参格式不一样,具体参考官方py库文档。 161 | 162 | ```python 163 | import os 164 | import openai 165 | 166 | # optional; defaults to `os.environ['OPENAI_API_KEY']` 167 | openai.api_key = "您的APIKEY" 168 | 169 | # all client options can be configured just like the `OpenAI` instantiation counterpart 170 | openai.base_url = "https://free.v36.cm/v1/" 171 | openai.default_headers = {"x-foo": "true"} 172 | 173 | completion = openai.chat.completions.create( 174 | model="gpt-3.5-turbo", 175 | messages=[ 176 | { 177 | "role": "user", 178 | "content": "Hello world!", 179 | }, 180 | ], 181 | ) 182 | print(completion.choices[0].message.content) 183 | 184 | # 正常会输出结果:Hello there! How can I assist you today ? 185 | ``` 186 | 187 | ### OpenAi官方node库 188 | 189 | > [openai-node](https://github.com/openai/openai-node) 190 | 191 | 以官网的`node`库为例:注意,需要传入/v1后缀。 192 | 193 | ```js 194 | const { Configuration, OpenAIApi } = require("openai"); 195 | 196 | const configuration = new Configuration({ 197 | apiKey: "您的apikey", 198 | basePath: "https://free.v36.cm/v1" 199 | }); 200 | const openai = new OpenAIApi(configuration); 201 | 202 | const chatCompletion = await openai.createChatCompletion({ 203 | model: "gpt-3.5-turbo", 204 | messages: [{role: "user", content: "Hello world"}], 205 | }); 206 | 207 | console.log(chatCompletion.data.choices[0].message.content); 208 | ``` 209 | 210 |  211 | -------------------------------------------------------------------------------- /images/free_chatgpt-next-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popjane/free_chatgpt_api/c270e8db7c7474c58a3a6f0be423e21aa7aa5757/images/free_chatgpt-next-web.png -------------------------------------------------------------------------------- /images/free_lobe-chat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popjane/free_chatgpt_api/c270e8db7c7474c58a3a6f0be423e21aa7aa5757/images/free_lobe-chat.png -------------------------------------------------------------------------------- /images/free_utools.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popjane/free_chatgpt_api/c270e8db7c7474c58a3a6f0be423e21aa7aa5757/images/free_utools.png -------------------------------------------------------------------------------- /images/free_utools1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popjane/free_chatgpt_api/c270e8db7c7474c58a3a6f0be423e21aa7aa5757/images/free_utools1.png -------------------------------------------------------------------------------- /images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/popjane/free_chatgpt_api/c270e8db7c7474c58a3a6f0be423e21aa7aa5757/images/logo.png --------------------------------------------------------------------------------