inpainter icon indicating copy to clipboard operation
inpainter copied to clipboard

A web GUI built with Next.js for inpainting with Stable Diffusion using the Replicate API.

🎨 Inpainter

A web GUI for inpainting with Stable Diffusion using the Replicate API.

Try it out at inpainter.vercel.app

https://user-images.githubusercontent.com/2289/188992670-3dc9db47-fb8e-45c1-85ee-afc850009c48.mp4

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:

  1. Recent version of Node.js
  2. 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

Open http://localhost:3000