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}
I created a dedicated HTTP API for official ChatGPT API
And how do we know this service won't just log/steal our API tokens?
you should know better atleast...
it's an apiKey which has a scope of openai models only, meaning it can't access any private data, use an empty openai key since it's free of charge
bruh.
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
Also if you dont trust you can use a new OpenAI account API Key
Or contact me i will give you my key to use it
What more you want?