Skip to content

iliya-Developer/Api-ChatGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡️ Api-ChatGPT ⚡️

A simple and free web service for interacting with ChatGPT
Built with ❤️ using Python

Python Flask License Status


Read this in Farsi / فارسی


🚀 Features

  • Free to use, no authentication required
  • Lightweight and fast
  • Easy to deploy
  • Written in pure Python

📚 Libraries Used

  • flask – Web framework
  • requests – For making HTTP requests
  • json – Built-in JSON handling
  • random – Built-in random utilities

⚠️ Warning

If you experience request limits by the upstream service:

  • Change your proxies
  • Or add multiple proxy options in your setup

Using rotating proxies is recommended for stability in heavy use cases.


📦 Installation

bash <(curl -Ls https://raw.githubusercontent.com/iliya-Developer/Api-ChatGPT/main/install.sh)

Make sure you have Python 3.09+ installed.


💡 API Endpoint

POST /chat

Request Body:

json
{
  "user_id": 1,
  "message": "Hi, how are you?"
}

🧪 Code Examples

Python

python
import requests

url = "http://localhost:5000/chat"
data = {
    "user_id": 1,
    "message": "Hi, how are you?"
}

response = requests.post(url, json=data)
print(response.json())

curl

bash
curl -X POST http://localhost:5000/chat \
-H "Content-Type: application/json" \
-d '{"user_id": 1, "message": "Hi, how are you?"}'

📬 Contact

http://shadowpw.com/contact


Made with passion & Python

About

Free API ChatGPT

Resources

License

Stars

10 stars

Watchers

1 watching

Forks

Contributors