Inpainter with Stable Diffusion
Type: Code
Framework: Next.js
CSS: Tailwind
Inpainter
A web GUI for inpainting with Stable Diffusion using the Replicate API.
Try it out at inpainter.vercel.app
How it works
🐢🚀 This is a Node.js app! It’s powered by:
- Replicate, a platform for running machine learning models in the cloud.
- Stable Diffusion, an open-source text-to-image generation model.
- Next.js server-side API routes for talking to the Replicate API
- Next.js React components for the inpainting GUI
- Tailwind CSS for styling
- Lucide for Icons
Development
Prerequisites:
- Recent version of Node.js
- Replicate API token
Set your Replicate API token in your environment:
REPLICATE_API_TOKEN=<your-token-here>
Then install dependencies and run the server:
npm install
npm run dev