Giter Site home page Giter Site logo

aspekts / poeapi Goto Github PK

View Code? Open in Web Editor NEW
62.0 2.0 7.0 23 KB

A self-hostable reverse engineering of Quora's Poe.com API, allowing free access to ChatGPT and Anthropic's Claude AI

Home Page: https://poeapi.up.railway.app/docs

Python 100.00%
claude-ai claude-api freechatgpt freegpt gpt-api gpt3 gpt4-api poe chatgpt-api

poeapi's Introduction

Quora Poe reverse-engineered API

This is a self hostable, reverse-engineered API for Quora's Poe that allows access to the following chatbots:

  1. Sage - OpenAI (capybara)
  2. Claude - Anthropic (a2)
  3. ChatGPT - OpenAI (chinchilla)

Requirements

To use this API, you will need to have the following cookies:

  1. 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.
  2. 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 to get it.

Setup

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 --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.

Example

curl http://127.0.0.1/chat/capybara -d '{"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"}

Disclaimer

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.

Credits

POE.com Reverse Engineered CLI - Credits to Vaibhavk97

poeapi's People

Contributors

aspekts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

poeapi's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.