This is a self hostable, reverse-engineered API for Quora's Poe that allows access to the following chatbots:
- Sage - OpenAI (capybara)
- Claude - Anthropic (a2)
- ChatGPT - OpenAI (chinchilla)
To use this API, you will need to have the following cookies:
- Quora-Formkey: This is obtained by logging in to Quora.com, viewing the page source, and finding the "formkey" dictionary key (Normally line 14). Use its value in the Quora-Formkey field.
- Cookie: 'm-b=xxxx' - This is the value of the cookie with the key m-b, which is present in the list of cookies used on Quora.com (not poe.com), you can simply inspect cookies in Chrome (F12-Application-cookie) to get it.
Simple Setup
- Clone this repository
git clone https://github.com/aspekts/PoeAPI.git
- Install dependencies
pip install -r requirements.txt
- Run the API
uvicorn api:app --host 0.0.0.0 --port 8000 --reload
- Verify that the API is running by running:
curl localhost:8000
- Get a url for the API by running:
ngrok http 8000
Access the url given, in your browser to confirm it works. This is your bot server URL.
curl http://127.0.0.1/chat/a2 -d '{"bot:a2" , "Cookie:m-b=xxxx" , "formkey:xxxxx", "message":"What is the meaning of life?"}'
Response:
{"message":"The meaning of life is to live it.","status":"success", "chat_id": "xxxxx"}
This repository is for educational and research purposes only, and the use of this API for any other purpose is at your own risk. We are not responsible for any actions taken by users of this API.
POE.com Reverse Engineered CLI - Credits to Vaibhavk97