chatgpt-free-api
chatgpt-free-api copied to clipboard
Provide free GPT-3.5 API service by reverse engineering the login-free ChatGPT website.
ChatGPT Free API
Provide free GPT-3.5 API service by reverse engineering the login-free ChatGPT website.
Note: This service requires the IP to be able to use the login-free Chatgpt normally.
Install
Docker
docker run -d -p 3040:3040 --name chatgpt-free-api xsigoking/chatgpt-free-api
Binaries for macOS, Linux, and Windows
Download it from GitHub Releases, unzip, and add chatgpt-free-api to your $PATH
.
Usage
Run server
chatgpt-api-server # Listening on 0.0.0.0:3040, no proxy
PORT=8080 chatgpt-api-server # Listening on port 8080
ALL_PROXY=http://localhost:18080 chatgpt-api-server # Use a proxy
Request Example
curl http://127.0.0.1:3040/v1/chat/completions \
-i -X POST \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"stream": true
}'
License
The project is under the MIT License, Refer to the LICENSE file for detailed information.