[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10657":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":43,"readmeContent":44,"aiSummary":45,"trendingCount":16,"starSnapshotCount":16,"syncStatus":46,"lastSyncTime":47,"discoverSource":48},10657,"gpt4free-ts","xiangsx\u002Fgpt4free-ts","xiangsx","Providing a free OpenAI GPT-4 API !   This is a replication project for the typescript version of xtekky\u002Fgpt4free","",null,"TypeScript",7705,1344,83,45,0,1,3,5,4,40.39,"GNU General Public License v3.0",false,"master",true,[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"chatbot","chatbots","chatgpt","chatgpt-free","chatgpt4","free-gpt","gpt","gpt-3","gpt-35-turbo","gpt-4","gpt4","gpt4-api","gpt4free","nodejs","openai","typescript","2026-06-12 02:02:24","\u003Cdiv align=\"center\">\n\n# GPT4Free TypeScript Version 🆓\n###### Providing a free OpenAI GPT-4 API!\nEnglish | [中文](README_zh.md) | [日本語](README_ja.md)\n\n[![Discord Server](https:\u002F\u002Fdiscordapp.com\u002Fapi\u002Fguilds\u002F1115852499535020084\u002Fwidget.png?style=banner2&count=true)](https:\u002F\u002Fdiscord.gg\u002FcYUU8mCDMd)\n\u003Cp>You can join our discord: \u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002FcYUU8mCDMd\">discord.gg\u002Fgptgod\u003Ca> for further updates. \u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002FcYUU8mCDMd\">\u003Cimg align=\"center\" alt=\"gpt4free Discord\" width=\"22px\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fpeterthehan\u002Fpeterthehan\u002Fmaster\u002Fassets\u002Fdiscord.svg\" \u002F>\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fdiv>\n\n## 🆓 Free OpenAI Key\n\nWebSite: [https:\u002F\u002Fgptgod.online](https:\u002F\u002Fgptgod.online)\n\nApi Base URL: `https:\u002F\u002Fapi.gptgod.online`\n\nApi Key: `sk-OsMMq65tXdfOIlTUYtocSL7NCsmA7CerN77OkEv29dODg1EA`\n\nSupport Models: `gpt-4-all`,`gpt-3.5-turbo`,`gpt-3.5-turbo-16k`,`net-gpt-3.5-turbo`,`net-gpt-3.5-turbo-16k`,`claude-1-100k`,`google-palm`,`llama-2-70b`,`llama-2-13b`,`llama-2-7b`,`code-llama-34b`,`code-llama-13b`,`code-llama-7b`,`qwen-72b`,`stable-diffusion`,`mixtral-8x7b`,`mistral-medium`\n\n## 🚩 Reverse target\n\nI suggest you fork this project first. Some websites may go offline at any time.\n\nStill striving to keep updating.\n\nHave implemented models here:\nIf you do not want your website to appear here, please raise an issue and I will remove it immediately. Unfortunately, most of the sites here are no longer available.\n\n***Update At 2023-09-10***\n\n| Site     | Models                                            |\n|----------|---------------------------------------------------|\n| you      | gpt-3.5-turbo                                     |\n| phind    | net-gpt-3.5-turbo                                 |\n| forefront| gpt-3.5-turbo, claude                             |\n| mcbbs    | gpt-3.5-turbo, gpt-3.5-turbo-16k                  |\n| chatdemo | gpt-3.5-turbo, gpt-3.5-turbo-16k                  |\n| vita     | gpt-3.5-turbo                                     |\n| skailar  | gpt-4                                             |\n| fakeopen | gpt-3.5-turbo, gpt-3.5-turbo-16k, gpt-4           |\n| easychat | gpt-4                                             |\n| better   | gpt-3.5-turbo, gpt-3.5-turbo-16k, gpt-4           |\n| pweb     | gpt-3.5-turbo, gpt-3.5-turbo-16k                  |\n| bai      | gpt-3.5-turbo                                     |\n| gra      | gpt-3.5-turbo, gpt-3.5-turbo-16k                  |\n| magic    | gpt-3.5-turbo, gpt-4, claude-instance, claude, claude-100k  |\n| chim     | gpt-3.5-turbo, gpt-3.5-turbo-16k, gpt-4           |\n| ram      | gpt-3.5-turbo-16k                                 |\n| chur     | gpt-3.5-turbo, gpt-3.5-turbo-16k                  |\n| xun      | gpt-3.5-turbo, gpt-3.5-turbo-16k                  |\n| vvm      | gpt-3.5-turbo, gpt-3.5-turbo-16k, gpt-4           |\n| poef     |                                                   |\n| claude   | claude-2-100k                                     |\n| cursor   | gpt-3.5-turbo, gpt-4                              |\n| chatbase | gpt-3.5-turbo                                     |\n| ails     | gpt-3.5-turbo                                     |\n| sincode  | gpt-3.5-turbo, gpt-4                              |\n| openai   | too much                              |\n| jasper   | gpt-3.5-turbo, gpt-4                              |\n| pap      |                                                   |\n| acytoo   | gpt-3.5-turbo                                     |\n| google   | search                                            |\n| www      | url                                               |\n| ddg      | search                                            |\n\n## 🏃‍♂️ Run\n\nFirst of all, you should create file `.env`.\n> ***All operation methods require this step.***\n\n```env\nhttp_proxy=http:\u002F\u002Fhost:port\nrapid_api_key=xxxxxxxxxx\nEMAIL_TYPE=temp-email44\nDEBUG=0\nPOOL_SIZE=0\nPHIND_POOL_SIZE=0\n```\n\n- `http_proxy`: config your proxy if you can not access target website directly; If you dont need proxy, delete this line;\n- `forefront` use env(this site has been removed):\n    - `rapid_api_key`: you should config this if you use forefront api, this apikey is used for receive register email, get api key here\n    - `EMAIL_TYPE`: temp email type includes `temp-email` `temp-email44` `tempmail-lol`\n        - [temp-email](https:\u002F\u002Frapidapi.com\u002FPrivatix\u002Fapi\u002Ftemp-mail): soft limit 100req\u002Fdays, if over use money, need bind credit card! Very Stable!\n        - [temp-email44](https:\u002F\u002Frapidapi.com\u002Fcalvinloveland335703-0p6BxLYIH8f\u002Fapi\u002Ftemp-mail44): hard limit 100req\u002Fdays! Stable!\n        - [tempmail-lol](): nothing need, limit 25request\u002F5min. Not Stable.\n    - `DEBUG`: Valid when use `forefront` You can set =1 when you run local. show reverse process\n    - `POOL_SIZE`: `forefront` concurrency size. Keep set=1 until you run it successfully!!! You can engage in {POOL_SIZE} conversations concurrently. More pool size, More conversation can be done simultaneously, But use more RAM\n- `phind` use env:\n    - `PHIND_POOL_SIZE`: `phind` concurrency size.You can engage in {POOL_SIZE} conversations concurrently. More pool size, More conversation can be done simultaneously, But use more RAM\n\n### Run local 🖥️\n\n```shell\n# install module\nyarn\n# start server\nyarn start\n```\n\n### Run with docker(Suggest!) 🐳\n\n```\ndocker run -p 3000:3000 --env-file .env xiangsx\u002Fgpt4free-ts:latest\n```\n\n### Deploy with docker-compose 🎭\n\nfirst, you should create file .env; Follow step \"Run with docker\n\ndeploy\n\n```\ndocker-compose up --build -d\n```\n\n### Clash+one-api+gpt4free-ts Start with one command 😮\n\n[gpt4free-ts-deploy](https:\u002F\u002Fgithub.com\u002Fxiangsx\u002Fgpt4free-ts-deploy)\n\n## 🚀 Let's Use GPT4\n\n> Find supports model and site http:\u002F\u002F127.0.0.1:3000\u002Fsupports [GET]\n\n> The same as openai http:\u002F\u002F127.0.0.1:3000\u002F:site\u002Fv1\u002Fchat\u002Fcompletions [POST]\n\n> The same as openai http:\u002F\u002F127.0.0.1:3000\u002Fv1\u002Fchat\u002Fcompletions?site=xxx [POST]\n\n> Return when chat complete http:\u002F\u002F127.0.0.1:3000\u002Fask?prompt=***&model=***&site=*** [POST\u002FGET]\n\n> Return with eventstream http:\u002F\u002F127.0.0.1:3000\u002Fask\u002Fstream?prompt=***&model=***&site=*** [POST\u002FGET]\n\n### Request Params 📝\n\n- `prompt`: your question. It can be a `string` or `jsonstr`.\n    - example `jsonstr`:`[{\"role\":\"user\",\"content\":\"hello\\n\"},{\"role\":\"assistant\",\"content\":\"Hi there! How can I assist you today?\"},{\"role\":\"user\",\"content\":\"who are you\"}]`\n    - example `string`: `who are you`\n- `model`: default `gpt3.5-turbo`. model include:`gpt4` `gpt3.5-turbo` `net-gpt3.5-turbo` `gpt-3.5-turbo-16k`\n- `site`: default `you`. target site, include `fakeopen` `better` `forefront` `you` `chatdemo` `phind` `vita`\n\n### Site Support Model 🧩\n\nquery supports site and models with api `127.0.0.1:3000\u002Fsupports`\n\n```json\n[\n  {\n    \"site\": \"you\",\n    \"models\": [\n      \"gpt-3.5-turbo\"\n    ]\n  },\n  ...\n]\n```\n\n### Response Params 🔙\n\nResponse when chat end(\u002Fask):\n\n```typescript\ninterface ChatResponse {\n    content: string;\n    error?: string;\n}\n```\n\nResponse with stream like, Suggest!!(\u002Fask\u002Fstream):\n\n```\nevent: message\ndata: {\"content\":\"I\"}\n\nevent: done\ndata: {\"content\":\"'m\"}\n\nevent: error\ndata: {\"error\":\"some thind wrong\"}\n```\n\n### Example💡\n\n1. request to site you with history\n\nreq:\n\n[127.0.0.1:3000\u002Fask?site=you&prompt=[{\"role\":\"user\",\"content\":\"hello\"},{\"role\":\"assistant\",\"content\":\"Hi there! How can I assist you today?\"},{\"role\":\"user\",\"content\":\"who are you\"}]]()\n\nres:\n\n```json\n{\n  \"content\": \"Hi there! How can I assist you today?\"\n}\n```\n\n[127.0.0.1:3000\u002Fask?site=you&prompt=[{\"role\":\"user\",\"content\":\"你好\\n\"},{\"role\":\"assistant\",\"content\":\"你好！有什么我可以帮助你的吗？\"},{\"role\":\"user\",\"content\":\"你是谁\"}]]()\n\n2. request to site you with stream return\n\nreq:\n\n[127.0.0.1:3000\u002Fask\u002Fstream?site=you&prompt=who are you]()\n\nres:\n```\nevent: message\ndata: {\"content\":\"I\"}\n\nevent: message\ndata: {\"content\":\"'m\"}\n\nevent: message\ndata: {\"content\":\" a\"}\n\nevent: message\ndata: {\"content\":\" search\"}\n\nevent: message\ndata: {\"content\":\" assistant\"}\n........\nevent: done\ndata: {\"content\":\"done\"}\n```\n\n## 👥 Chat Group\n\n\u003Cimage src=\"https:\u002F\u002Fgithub.com\u002Fxiangsx\u002Fgpt4free-ts\u002Fassets\u002F29322721\u002F311ba62d-e611-4aed-98f6-b34cf115866a\" width=240 \u002F>\n\n## 🌟 Star History\n\n[![Star History Chart](https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=xiangsx\u002Fgpt4free-ts&type=Date)](https:\u002F\u002Fstar-history.com\u002F#xiangsx\u002Fgpt4free-ts&&type=Date)\n\n\u003Cp>You may join our discord: \u003Ca href=\"https:\u002F\u002Fdiscord.com\u002Finvite\u002Fgpt4free\">discord.gg\u002Fgpt4free\u003Ca> for further updates. \u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002Fgpt4free\">\u003Cimg align=\"center\" alt=\"gpt4free Discord\" width=\"22px\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fpeterthehan\u002Fpeterthehan\u002Fmaster\u002Fassets\u002Fdiscord.svg\" \u002F>\u003C\u002Fa>\u003C\u002Fp>\n\nThis is a replication project for the typescript version of [gpt4free](https:\u002F\u002Fgithub.com\u002Fxtekky\u002Fgpt4free)\n\n\u003Cimg alt=\"gpt4free logo\" src=\"https:\u002F\u002Fuser-images.githubusercontent.com\u002F98614666\u002F233799515-1a7cb6a3-b17f-42c4-956d-8d2a0664466f.png\">\n\n## Legal Notice \u003Ca name=\"legal-notice\">\u003C\u002Fa>\n\nThis repository is _not_ associated with or endorsed by providers of the APIs contained in this GitHub repository. This\nproject is intended **for educational purposes only**. This is just a little personal project. Sites may contact me to\nimprove their security or request the removal of their site from this repository.\n\nPlease note the following:\n\n1. **Disclaimer**: The APIs, services, and trademarks mentioned in this repository belong to their respective owners.\n   This project is _not_ claiming any right over them nor is it affiliated with or endorsed by any of the providers\n   mentioned.\n\n2. **Responsibility**: The author of this repository is _not_ responsible for any consequences, damages, or losses\n   arising from the use or misuse of this repository or the content provided by the third-party APIs. Users are solely\n   responsible for their actions and any repercussions that may follow. We strongly recommend the users to follow the\n   TOS of the each Website.\n\n3. **Educational Purposes Only**: This repository and its content are provided strictly for educational purposes. By\n   using the information and code provided, users acknowledge that they are using the APIs and models at their own risk\n   and agree to comply with any applicable laws and regulations.\n\n4. **Copyright**: All content in this repository, including but not limited to code, images, and documentation, is the\n   intellectual property of the repository author, unless otherwise stated. Unauthorized copying, distribution, or use\n   of any content in this repository is strictly prohibited without the express written consent of the repository\n   author.\n\n5. **Indemnification**: Users agree to indemnify, defend, and hold harmless the author of this repository from and\n   against any and all claims, liabilities, damages, losses, or expenses, including legal fees and costs, arising out of\n   or in any way connected with their use or misuse of this repository, its content, or related third-party APIs.\n\n6. **Updates and Changes**: The author reserves the right to modify, update, or remove any content, information, or\n   features in this repository at any time without prior notice. Users are responsible for regularly reviewing the\n   content and any changes made to this repository.\n\nBy using this repository or any code related to it, you agree to these terms. The author is not responsible for any\ncopies, forks, or reuploads made by other users. This is the author's only account and repository. To prevent\nimpersonation or irresponsible actions, you may comply with the GNU GPL license this Repository uses.\n","xiangsx\u002Fgpt4free-ts 是一个提供免费 OpenAI GPT-4 API 的 TypeScript 项目。该项目通过逆向工程实现了对多个第三方网站上 GPT-3.5 和 GPT-4 模型的访问，支持包括 gpt-3.5-turbo、gpt-4 在内的多种模型。其核心功能是提供了一个统一的接口来调用这些模型，并且用户无需拥有自己的 OpenAI API 密钥即可使用。技术特点方面，项目采用了 TypeScript 开发，确保了代码的类型安全性和可维护性。适合需要利用大语言模型进行开发但又受限于成本或获取官方 API 许可困难的开发者和团队在原型设计、测试以及小型应用中使用。",2,"2026-06-11 03:29:33","top_topic"]