Pawan Osman 2113db1d89 Update
2023-03-24 08:23:52 +03:00
2023-03-24 07:19:18 +03:00
2023-03-24 07:19:18 +03:00
2023-03-24 08:23:00 +03:00
2023-03-24 07:19:18 +03:00
2023-03-24 07:19:18 +03:00
2023-03-24 07:19:18 +03:00
2023-03-24 08:23:52 +03:00
2023-03-24 07:19:18 +03:00

Check the new Google Bard Chatbot!

24-MARCH-2023 Update

The API is more advanced now! Supports text and chat completions and image generations (DALL-E), and has a new endpoint same as the original API.

If you have any questions or need assistance, please join [Discord]

Welcome to ChatGPT API FREE Reverse Proxy

ChatGPT API Free Reverse Proxy is a free reverse proxy to OpenAI API that allows users to access OpenAI API for free.

Index

How to use ChatGPT API Reverse Proxy

You can use ChatGPT API Reverse Proxy by choosing one of the following methods:

Self-Host Your Own API

To self-host your own ChatGPT API, you can use the following steps:

  1. Create an OpenAI API Key
  2. Clone this repository and install the dependencies:
git clone https://github.com/PawanOsman/ChatGPT.git
cd ChatGPT
npm install
  1. Set your OpenAI key and other configurations in the config.js file.
  2. Start the server:
npm start
  1. Use the API by sending an HTTP request to the API endpoints for example:
http://localhost:3000/v1/completions
http://localhost:3000/v1/chat/completions

Use Our Hosted API Reverse Proxy

To use our hosted ChatGPT API, you can use the following steps:

  1. Join our Discord server.
  2. Get your API key from the #Bot channel by sending /key command.
  3. Use the API Key in your requests to the following endpoints.

Text Completion:

https://api.pawan.krd/v1/completions

Example: OpenAI Docs

curl --location 'https://api.pawan.krd/v1/completions' \
--header 'Authorization: Bearer pk-***[OUR_API_KEY]***' \
--header 'Content-Type: application/json' \
--data '{
    "model": "text-davinci-003",
    "prompt": "Human: Hello\\nAI:",
    "temperature": 0.7,
    "max_tokens": 256,
    "stop": [
        "Human:",
        "AI:"
    ]
}'

Chat Completion (ChatGPT):

https://api.pawan.krd/v1/chat/completions

Example: OpenAI Docs

curl --location 'https://api.pawan.krd/v1/chat/completions' \
--header 'Authorization: Bearer pk-***[OUR_API_KEY]***' \
--header 'Content-Type: application/json' \
--data '{
    "model": "gpt-3.5-turbo",
    "max_tokens": 100,
    "messages": [
        {
            "role": "system",
            "content": "You are an helful assistant"
        },
        {
            "role": "user",
            "content": "Who are you?"
        }
    ]
}'

Image Generation (DALL-E):

https://api.pawan.krd/v1/images/generations

Example: OpenAI Docs

curl --location 'https://api.pawan.krd/v1/images/generations' \
--header 'Authorization: Bearer pk-***[OUR_API_KEY]***' \
--header 'Content-Type: application/json' \
--data '{
    "prompt": "a photo of a happy corgi puppy sitting and facing forward, studio light, longshot",
    "n": 1,
    "size": "1024x1024"
}'

License

MIT License

Languages
TypeScript 95%
Dockerfile 3.4%
Batchfile 0.8%
Shell 0.8%