LogoA Template
icon of Paint by Text

Paint by Text

Paint by Text is a microsite for InstructPix2Pix, enabling image modification through chatting with a generative AI model.

Introduction

šŸ‘©ā€šŸŽØ Paint by Text

Modify images by chatting with a generative AI model. This project provides a web interface to interact with the InstructPix2Pix model.

How it works

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.

Development

To run locally:

  1. Install a recent version of Node.js
  2. Copy your Replicate API token and set it in your environment:
echo "REPLICATE_API_TOKEN=<your-token-here>" > .env.local
  1. Install dependencies and run the server:
npm install
npm run dev
  1. Open localhost:3000 in your browser. That's it!

Paint by Text screenshot | ATemplate.com

A template
Copy badages awards

Newsletter For Templates

Join the Community For Templates

Subscribe to Templates newsletter for the latest news and updates