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

КОМЕНТАРІ • 14

  • @brutely9718
    @brutely9718 24 дні тому +7

    Nonetype" object is not subscriptable .. getting type error

    • @yashagarwal99
      @yashagarwal99 18 днів тому

      Same error

    • @ihitasinha990
      @ihitasinha990 17 днів тому

      only works for US based IP, if you're not in the US, use a VPN

    • @brutely9718
      @brutely9718 17 днів тому

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

    • @brutely9718
      @brutely9718 13 днів тому +1

      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

    • @sscoder170
      @sscoder170 2 дні тому

      @@ihitasinha990not working in USA also getting same error

  • @unclecode
    @unclecode Місяць тому +3

    Interesting, just its almost 3 to 4 times slower, due to some network handshaking it does before sending it to server

    • @bonsaiilabs
      @bonsaiilabs  Місяць тому +1

      Interesting. In my experiments, it was slow that directly hitting OpenAI API, but that's also because a proxy is sitting in between.

    • @rinokpp1692
      @rinokpp1692 10 днів тому

      Hey

  • @user-ze9lc9sk5i
    @user-ze9lc9sk5i 2 дні тому +1

    Is it possible to do free gpt but like python library?

    • @bonsaiilabs
      @bonsaiilabs  2 дні тому +1

      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.

    • @user-ze9lc9sk5i
      @user-ze9lc9sk5i 2 дні тому

      @@bonsaiilabs Thanks!

  • @user-cb7yl4nr6h
    @user-cb7yl4nr6h Місяць тому +2

    Has the free class been cancelled?openai api key

    • @sheepythegamer
      @sheepythegamer Місяць тому

      Pretty sure all of the fresh keys I hoarded suddenly wouldn't work when I knew they had credits