{"repo":"Erol444/gpt4-openai-api","free":true,"listed":false,"github":"https://github.com/Erol444/gpt4-openai-api","clone":"git clone https://github.com/Erol444/gpt4-openai-api.git","description":"Python package that provides (unofficial) API access to the GPT-4 through chat.openai.com. Works with langchain. Supports search DALL-E 3, plugins, continuing generation.","language":"Python","stars":184,"topics":["api","chatgpt","gpt4","langchain","llm","openai","python","browsing","plugins","dall-e-3"],"license":null,"category":"ai-agents","readme_excerpt":"GPT4 OpenAI unofficial API Unofficial GPT-4 API access via chat.openai.com using Selenium ⚠️ Note To use hosted API for GPT4o Search we recommend using Apify actor, as it's hosted, more stable, and faster. Price : $10/1000 answers. Selenium-based API Have you applied to GPT-4 API access but OpenAI is too busy to reply ? Me too, that's why I created this package. It uses selenium webdriver to emulate user interaction on chat.openai.com. If the account has ChatGPT Plus , the driver will use GPT-4 , otherwise it will use the default GPT-3.5. It supports both GPT4 browser, DALL-E 3, and plugins by selecting model via GPT4OpenAI(token=token, model='gpt-4') , or model='gpt-4-plugins' . Note: This unofficial API library is not endorsed by OpenAI and violates their Terms of Service. Use it at your own risk; the creator assumes no liability for any consequences. Please adhere to platform's ToS and exercise caution with unofficial resources. The core logic was taken from the IntelligenzaArtificiale/Free-Auto-GPT. Demo Demo script DALL-E 3 support This code was used for the demo gif above. Browsing support Langchain support GPT4OpenAI actually extends LLM class from langchain.llms.base . So you can easily use this library inside langchain ecosystem. Example: Output will be: How to get the session token 1. Go to https://chat.openai.com and open the developer tools by F12 . 2. Find the Secure-next-auth.session-token cookie in Application Storage Cookies https://chat.openai.com . 3. Copy t","default_branch":null,"files":null,"tree":[],"storefront":"/r/Erol444","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Erol444/gpt4-openai-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}