Okay, so I came into work today ( Co-Working Spot ) and I saw there was a hackathon going on. A ChatGPT hackathon - so it was as good of time as any to try out a proof of concept my team and I have been pondering. What if you could pay-per-chatGPT question via crypto? So, I made the proof of concept. It was made in 8 hours or so with heavy help of ChatGPT itself!
Why would you pay?
- You get premium questions without the month subscription
- Anon question asking ( Also a tricky problem - double edged sword )
- Get around the pesky 25 questions per 3 hours
- Anyone could build a ChatGPT app ontop of this and charge per usage - for example take a resume critiquing software, pay per critique ( where the critique is a multi-step, value adding process )
Mainnet 'Hopper' Program Address H8T4jm38UKJp2GBEG5s4X2NFT4U87CfLJVtTZVnh3zVs
- When deployed on Vercel, the API fetch to ChatGPT often takes too long and fails ( Edge Route ), a dedicated server may be needed.
- You create a
Hopper
account and load it with 0.01 Solana - You ask Chat GPT questions, the server will deduct from your hopper account
- You can close the
Hopper
account and redeem whatever solana is left over
- Im not entirely sure of the legality of charging crypto for the API usage ( Why I'm not posting the link to the site )
- Having the Hopper API Wallet PK stored in Vercel gives me the heebies
- No filtering or rate limiting to stop me from getting my API key revoked ( Also why I'm not posting the link to the site )
- Taxes on crypto micro-payments is probably a pain I don't want to figure out
Take a look at the .env files and READMEs Solana-GPT. I may come back here and give a more definative guide.
I use pnpm install
for hack/ ( NextJS app )
I use yarn install
for backend/ ( Solana Anchor )