This project generates Instagram captions for you using ChatGPT.
This project uses the ChatGPT API, Replicate, and Vercel Edge functions with streaming. It prompts the user to upload an image, the with Replicate, we are given a image description. The user is then able to add context to the photo and select a vibe in which they want their caption to look like. After this, 2 captions are generated based on all the input received.
After cloning the repo, go to OpenAI to make an account and put your API key in a file called .env
. Do the same with Replicate.
Then, run the application in the command line and it will be available at http://localhost:3000
.
npm run dev
Deploy the example using Vercel:
Credits to Nutlope on github for the groundwork for this application. To view his twitterbio generator, please give it a visit (https://github.com/Nutlope/twitterbio)