Modify images by chatting with a generative AI model.
Try it out at paintbytext.chat
This app is powered by:
π Replicate, a platform for running machine learning models in the cloud.
π¨ InstructPix2Pix, an open-source machine learning model that generates images from text.
β² Vercel, a platform for running web apps.
β‘οΈ Next.js server-side API routes, for talking to the Replicate API.
π Next.js React components, for the browser UI.
π Tailwind CSS, for styles.
- Install a recent version of Node.js
- Copy your Replicate API token and set it in your environment:
REPLICATE_API_TOKEN=<your-token-here>
- Install dependencies and run the server:
npm install npm run dev
- Open localhost:3000 in your browser. That's it!