We found a new way to use text-davinci-003
now text completion hosted API is working
OpenAI patched the way we used to provide a free API, we are trying to find another way to back the API up again, join our discord server to stay updated
If you have any questions or need assistance, please join [Discord]
ChatGPT API Free Reverse Proxy is a free reverse proxy to OpenAI API that allows users to access OpenAI API for free.
- Multiple OpenAI Keys - You can use multiple OpenAI keys. The API will randomly choose one of the keys to use.
- Moderation - The API has a built-in moderation system that will automatically check the prompt before sending it to OpenAI API (To prevent OpenAI terminate the account for violating OpenAI's policy).
- Streaming Response - The API supports streaming response, so you can get the response as soon as it's available.
- Same as Official - The API has the same endpoints as the official API, so you can use the same code to access the API (even the official OpenAI libraries)
- Free - The API is free to use through our hosted API (You can also self-host the API if you want).
Note: Self-hosting it isn't free, you need to use your OpenAI Account credit.
You can use ChatGPT API Reverse Proxy by choosing one of the following methods:
To self-host your own ChatGPT API, you can use the following steps:
- Create an OpenAI API Key
- Clone this repository and install the dependencies:
git clone https://github.com/PawanOsman/ChatGPT.git
cd ChatGPT
npm install
- Set your OpenAI key and other configurations in the
config.js
file. - Start the server:
npm start
- 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
To use our hosted ChatGPT API, you can use the following steps:
- Join our Discord server.
- Get your API key from the
#Bot
channel by sending/key
command. - Use the API Key in your requests to the following endpoints.
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:"
]
}'
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 helpful assistant."
},
{
"role": "user",
"content": "Who are you?"
}
]
}'
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"
}'
MIT License