You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a dedicated HTTP API for official ChatGPT API, its using POST so it can handle long prompts and it supports setting all OpenAI properties
Example in NodeJS: (Its same for other languages you need to create a post request like below)
Ask ChatGPT a question
axios({method: 'post',url: 'https://chatgpt.pawan.krd/ask',headers: {'Content-Type': 'application/json'},data: JSON.stringify({"key": "sk-BBCnjlwWeCNlvyFk5hxxxxxxxxxxxxxxxxxxxxxxx","prompt": "who are you?","id": "default"})})// response {"status": true,"response": "Hello, how can i help you?"}// or {"status": false,"error""Something went wrong"}
Init the API with all Options (Optional you can directly request ask if you don't want to modify the options)
awaitaxios({method: 'post',url: 'https://chatgpt.pawan.krd/init',headers: {'Content-Type': 'application/json'},data: JSON.stringify({"key": "sk-BBCnjlwWeCNlvyFk5hxxxxxxxxxxxxxxxxxxxxxxx","options": {"instructions": "You are ChatGPT, your name Is ChatGPT!"}})});// response{"status": true}
What's the difference bewteen this and PawanOsman/ChatGPT? Why does this require an API Key and will I spend the credits?
PawanOsman/ChatGPT doesn't support options and runs on a single API Key which maybe gets rate limited sometimes because many peoples use it, no it doesn't charge you, even you can use a new account with 0 credit it will work
What's the difference bewteen this and PawanOsman/ChatGPT? Why does this require an API Key and will I spend the credits?