[Guide]Establishing free ChatGPT API.

bubble1990

BANNED
Joined
Apr 5, 2023
Messages
316
Reaction score
117
Firstly, you need a ChatGPT account (even if the API usage is exhausted, it's okay). Log in to your ChatGPT account, visit http://chat.openai.com/api/auth/session, and get your Access Token ( Search for ","authProvider", then copy the content
between "authProvider" and ","authProvider". that is access token.



Open https://ai.fakeopen.com/token , enter your name and the Access Token you obtained earlier. You will get a Share Token (note that "share token" doesn't imply that this token will be shared with anyone). In the software's API domain settings , replace https://chat.openai.com/v1/chat/completions with https://ai.fakeopen.com/v1/chat/completions. This way, you can continue using the API within the software even with an account that has no remaining API quota.

Moreover, you can even create a pool token using multiple Share Tokens on this site https://ai.fakeopen.com/pool. This can help increase the requests limit per minute (I generated a pool token using 10 Share Tokens). When generating the pool token for the second time,, you can specify the previously generated pool token, eliminating the need to change the API in the software. Please note that tokens expire every 14 days, requiring you to regenerate them. To simplify the process of generating a pool token, you can use this script: https://gist.github.com/pengzhile/448bfcfd548b3ae4e665a84cc86c4694
 
Useful share op.
Bookmarked for future use.
 
@

bubble1990, I followed your instructions to what I could understand but after getting the share token, I couldn't get any further as I didn't understand where to insert the toake. Can you explain a little more or tell me how to do it in another way please? Thanks and regards,​

 
@

bubble1990, I followed your instructions to what I could understand but after getting the share token, I couldn't get any further as I didn't understand where to insert the toake. Can you explain a little more or tell me how to do it in another way please? Thanks and regards,​

First, obtain an Access Token from the OpenAI official website. login in your chatgpt account. open http://chat.openai.com/api/auth/session Look at the screenshot in my attachment and copy the portion between the two red circles.."(Between the two double quotation marks)

.

Then, use the Access Token to convert it into a Share Token at https://ai.fakeopen.com/token. This Share Token functions as the API key. In your software, change the API domain to https://chat.openai.com/v1/chat/completions . Finally, input the Share Token in the API key section to start using it.
 

Attachments

  • chrome_ajdY4tWSON.png
    chrome_ajdY4tWSON.png
    115.1 KB · Views: 56
Last edited:
Firstly, you need a ChatGPT account (even if the API usage is exhausted, it's okay). Log in to your ChatGPT account, visit http://chat.openai.com/api/auth/session, and get your Access Token ( Search for ","authProvider", then copy the content
between "authProvider" and ","authProvider". that is access token.



Open https://ai.fakeopen.com/token , enter your name and the Access Token you obtained earlier. You will get a Share Token (note that "share token" doesn't imply that this token will be shared with anyone). In the software's API domain settings , replace https://chat.openai.com/v1/chat/completions with https://ai.fakeopen.com/v1/chat/completions. This way, you can continue using the API within the software even with an account that has no remaining API quota.

Moreover, you can even create a pool token using multiple Share Tokens on this site https://ai.fakeopen.com/pool. This can help increase the requests limit per minute (I generated a pool token using 10 Share Tokens). When generating the pool token for the second time,, you can specify the previously generated pool token, eliminating the need to change the API in the software. Please note that tokens expire every 14 days, requiring you to regenerate them. To simplify the process of generating a pool token, you can use this script: https://gist.github.com/pengzhile/448bfcfd548b3ae4e665a84cc86c4694
update: I've come across a new project that allows you to directly convert ChatGPT web into ChatGPT API locally, without the need for third-party tools. It even automatically updates the Access Token every 7 days. https://github.com/acheong08/ChatGPT-to-API According to my testing, everything is working properly.
 
update: I've come across a new project that allows you to directly convert ChatGPT web into ChatGPT API locally, without the need for third-party tools. It even automatically updates the Access Token every 7 days. https://github.com/acheong08/ChatGPT-to-API According to my testing, everything is working properly.
I've been following this one for some time, with the hope to make it work, but without success for me. You are able to run it?

Btw, thanks for sharing OP!
 
Bookmarked. Thanks OP.
 
Yes, I'm currently using it.
I'm still trying to make this work. Are you using the `API_REVERSE_PROXY: https://ai.fakeopen.com/v1/chat/completions` in docker compose? Or just letting it go directly to chat.openai.com?

If I change the reverse proxy I get 401 Unauthorized, and if I leave it as is, it gets an error 500.

Also, do you set the accounts.txt and api_keys.txt in the root of the folder or somewhere else?

Thanks!
 
I'm still trying to make this work. Are you using the `API_REVERSE_PROXY: https://ai.fakeopen.com/v1/chat/completions` in docker compose? Or just letting it go directly to chat.openai.com?

If I change the reverse proxy I get 401 Unauthorized, and if I leave it as is, it gets an error 500.

Also, do you set the accounts.txt and api_keys.txt in the root of the folder or somewhere else?

Thanks!

https://github.com/acheong08/ChatGPT-to-API This project is different from the tutorial I posted; please don't confuse them. If you want to convert the API locally, you can use the "ChatGPT-to-API" project. The tutorial I posted above uses a third-party website for conversion, which is more convenient.

I used the Go programming language version and didn't use Docker (because I'm not familiar with it). I'm on Win10. After executing the "go build" command, you'll get a "freechatgpt.exe" file. In the same directory as "freechatgpt.exe," create "accounts.txt" and "api_keys.txt" (input your account email ,passwordand and specified API Following the format.), then run "freechatgpt.exe." It will automatically log into your account and Converting into token (there will be prompts). For software that requires API usage, set the API domain to "http://127.0.0.1:8080/v1/chat/completions" instead of "https://ai.fakeopen.com" (which is another project).
 
First, obtain an Access Token from the OpenAI official website. login in your chatgpt account. open http://chat.openai.com/api/auth/session Look at the screenshot in my attachment and copy the portion between the two red circles.."(Between the two double quotation marks)

.

Then, use the Access Token to convert it into a Share Token at https://ai.fakeopen.com/token. This Share Token functions as the API key. In your software, change the API domain to https://chat.openai.com/v1/chat/completions . Finally, input the Share Token in the API key section to start using it.
I dont get when i have to change the api domani in my software, ex i have to change It on my IDe ex pycharm?
 
Then, use the Access Token to convert it into a Share Token at https://ai.fakeopen.com/token
The server bill will expire on 2024/01/30, at which time the server will be shut down. The affected services include:

- chat*.zhile.io
- chat-shared*.zhile.io
- chat*.geekgpt.org
- chat.oaifree.com 23.3k
- *.pandoranext.com
- ai*.fakeopen.com
 
Back
Top