Use OpenAI's API for Free
Вставка
- Опубліковано 13 чер 2024
- This video tutorial guides viewers through the process of making free API calls to OpenAI's GPT-3.5 Turbo using a reverse proxy setup, avoiding the need for subscription fees. The host explains the pricing structure for OpenAI's services and introduces a GitHub project, named ChadGPT, that serves as a free reverse proxy specifically for the GPT-3.5 Turbo model. The tutorial covers step-by-step instructions for setting up the proxy using Docker and demonstrates how to test the setup by making API calls, ultimately offering a budget-friendly solution for developers wanting to prototype with OpenAI without upfront costs.
00:00 Introduction to the Project
00:18 Understanding OpenAI's API and Pricing
01:28 Discovering a Free Proxy Solution
02:01 Setting Up the Docker Environment
02:52 Executing the Proxy with Docker
04:22 Testing the Setup with a Python Script
06:29 Analyzing the Response and Concluding Thoughts
07:10 Final Remarks and Invitation for Engagement
Links used in the video are
github.com/PawanOsman/ChatGPT
openai.com/api/pricing
platform.openai.com/docs/api-...
Nonetype" object is not subscriptable .. getting type error
Same error
only works for US based IP, if you're not in the US, use a VPN
@@ihitasinha990 no I'm using vpc from US. The error was actually that I need to follow farmat it seems. Anyways I checked nodejs file what's really causing but I'm unable to find it.
Thanks, but even though if I use vpc (ec2) from US it's not possible.. it says you are not sending request in format. If I print whole json
@@ihitasinha990not working in USA also getting same error
Interesting, just its almost 3 to 4 times slower, due to some network handshaking it does before sending it to server
Interesting. In my experiments, it was slow that directly hitting OpenAI API, but that's also because a proxy is sitting in between.
Hey
Is it possible to do free gpt but like python library?
Yes, at 3:57 of this video, you see the Local Endpoint and Public Endpoint, use any of these in your python code. For making REST api calls, refer to platform.openai.com/docs/api-reference/making-requests. Use the Urls, from the timestamp mentioned in this comment, and any API key. This should work.
@@bonsaiilabs Thanks!
Has the free class been cancelled?openai api key
Pretty sure all of the fresh keys I hoarded suddenly wouldn't work when I knew they had credits