GithubHelp home page GithubHelp logo

kxjhcmc / free_chatgpt_api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from popjane/free_chatgpt_api

0.0 0.0 0.0 1 MB

🔥 公益免费的ChatGPT API,Free ChatGPT API,GPT4 API,可直连,无需代理,使用标准 OpenAI APIKEY 格式访问 ChatGPT,可搭配ChatGPT-next-web、ChatGPT-Midjourney、Lobe-chat、Botgem、FastGPT、沉浸式翻译等项目使用

License: MIT License

free_chatgpt_api's Introduction

free-chatgpt-api logo

FREE-CHATGPT-API

通过标准的 OpenAI格式免费使用ChatGPT API

free

快速开始 · 使用方法 · 立即领取免费KEY · 付费API · 应用支持

Note

本项目为公益免费项目,使用者必须在遵循 OpenAI 的使用条款以及法律法规的情况下使用,不得用于非法用途。

根据《生成式人工智能服务管理暂行办法》的要求,请勿对**地区公众提供一切未经备案的生成式人工智能服务。

该项目API仅用于非商业性的学习、研究、科研测试等合法用途,不得用于任何违法违规用途,否则后果自负。

项目介绍

  1. 完全免费使用以下勾选模型:
    • gpt-3.5-turbo-0125
    • gpt-3.5-turbo-1106
    • gpt-3.5-turbo
    • gpt-3.5-turbo-16k
    • net-gpt-3.5-turbo (可联网搜索模型-稳定性稍差)
    • whisper-1
    • dall-e-2
    • text-开头系列模型,例如:text-davinci(免费版已取消text系列模型)
    • gpt-4全系列(只定期限量开放)
    • 付费版API支持OpenAI所有模型,包括(联网、绘画、聊天、训练、图片分析、GPTs等)
  2. 标准的OpenAI接口请求格式。
  3. 支持流式响应输出。
  4. 完美兼容各类开源的GPT项目/应用/软件。

免费使用

  1. 首先 🚀 前往领取免费APIKEY、领取后请妥善保管你的APIKEY。
  2. 复制免费API地址:https://free.gpt.ge(无需代理,直接可用)。
  3. 在支持的应用中绑定你的APIKEY+API地址(BASE_URL),即可开始使用(可查看应用支持列表)。

根据用户量的增加,我们会相应提升服务质量,提供更优质的免费服务。在使用上遇到问题,可以在issues中提出,我们会尽快协助解决。

付费API

Note

为了确保项目的可持续发展,我们意识到仅依赖公益性质的免费Key是难以长期维持的。因此,我们引入了付费API Key机制来覆盖日常运营成本,旨在促进项目的良性循环。我们诚挚希望大家能够理解并支持这一决策。

🚀 前往购买超低价付费API

付费APIKEY与免费APIKEY不通用,购买后需按卡密详情方法重新生成KEY使用。

付费API特点

  1. 更低延迟、高性能、高可用、高并发。
  2. 支持OpenAI所有模型,包括(联网、绘画、聊天、训练、图片分析、GPTs等)等五六十种模型。
  3. gpt4价格仅为官网价格的2.8-4折之间,gpt-3.5系列模型为1.4-2折之间,白菜价格。
  4. 定价策略透明公开,模型扣费倍率与官网同步(甚至更低),永不暗调倍率,无低价格却又高倍率陷阱。
  5. 不限时间、按量计费、明细可查,每一笔消费都公开透明。
  6. API仅用于非商业性的学习、研究、科研测试等合法用途,不得用于任何违法违规用途,不得向**公众提供任何生成式服务,否则后果自负。

常用应用支持

Note

理论上支持所有可以自定义API地址的GPT应用,以下是一些常用的应用。

所有应用的API地址(BaseUrl)为https://free.gpt.ge

一、ChatGPT.好友插件

该插件为utools的一个插件,支持自定义模型、一键呼出,即用既走,超级面板,在pc任意位置均可快速发送消息。支持Ai聊天、绘画、语音对话、多api管理、多key绑定、角色独立聊天记录、一键查余额。桌面端的神器,但不支持移动端。

是一个功能非常全面的ai聊天应用插件。

查看应用

绑定教程截图:

ChatGPT.好友

绑定成功后,鼠标右键ai列表,选择需要的模型即可。

ChatGPT.好友

二、开源应用Chatgpt-next-web(ChatGPT-Midjourney)

开源Chatgpt-next-web 这是一个开源web聊天工具,只支持聊天。

开源ChatGPT-Midjourney 二开版本,支持Midjourney对话的开源应用。

绑定教程截图:

点击设置图标。找到自定义接口设置,配置如下: Chatgpt-next-web

三、Lobe-chat

Lobe-chat 是一个开源的聊天应用,支持聊天、绘画、语音对话等。

绑定教程截图:

lobe-chat

四、BotGem

BotGem 非开源工具,支持PC和移动端,功能单一,只支持聊天,但多端适配。

绑定方法类似上方截图教程,填写免费API地址https://free.gpt.ge+apikey 即可。

五、ChatBox

ChatBox 支持桌面端APP版和web版,点开setting按钮配置即可。

绑定方法类似上方截图教程,填写免费API地址https://free.gpt.ge+apikey 即可。

六、FastGPT

FastGPT 支持知识库的聊天应用。

部署时参数host填写https://free.gpt.ge 可以传入我们的apikey 即可

更多应用支持

待更新...

OpenAi官方python库

在openai官方库开发时传入baseurl和apikey即可。

openai-python

以官网的python库为例:注意,需要传入/v1/后缀。

import os
import openai

# optional; defaults to `os.environ['OPENAI_API_KEY']`
openai.api_key = "您的APIKEY"

# all client options can be configured just like the `OpenAI` instantiation counterpart
openai.base_url = "https://free.gpt.ge/v1/"
openai.default_headers = {"x-foo": "true"}

completion = openai.chat.completions.create(
    model="gpt-3.5-turbo",
    messages=[
        {
            "role": "user",
            "content": "Hello world!",
        },
    ],
)
print(completion.choices[0].message.content)

# 正常会输出结果:Hello there! How can I assist you today ?

OpenAi官方node库

openai-node

以官网的node库为例:注意,需要传入/v1后缀。

const { Configuration, OpenAIApi } = require("openai");

const configuration = new Configuration({
  apiKey: "您的apikey",
  basePath: "https://free.gpt.ge/v1"
});
const openai = new OpenAIApi(configuration);

const chatCompletion = await openai.createChatCompletion({
  model: "gpt-3.5-turbo",
  messages: [{role: "user", content: "Hello world"}],
});

console.log(chatCompletion.data.choices[0].message.content);

free_chatgpt_api's People

Contributors

popjane avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.