Paint by Text is an innovative web application designed to empower users to modify images interactively using natural language. By simply chatting with a generative AI model, users can transform their images with text-based instructions. This microsite leverages cutting-edge machine learning and web development technologies to provide a seamless experience.
Key Features:
- Conversational Image Editing: Users can describe desired image modifications using text prompts, and the AI model will apply the changes.
- Generative AI Core: The application is built around a powerful generative AI model, enabling creative and precise image manipulations.
- Cloud-Powered ML: It utilizes Replicate as a platform for running machine learning models in the cloud, ensuring scalable and efficient processing.
- Open-Source Model Integration: The core image editing functionality is driven by Kontext, an open-source machine learning model specifically designed for text-based image editing.
- Modern Web Stack: The frontend is built with Next.js React components for a dynamic user interface, while Next.js server-side API routes handle communication with the Replicate API.
- Styling with Tailwind CSS: A clean and responsive design is achieved using Tailwind CSS.
How it Works: Upon accessing the web app, users are prompted to enter their Replicate API token, which can be generated for free with a Replicate account. This token is securely stored in the browser and used exclusively for user-initiated requests to the Replicate API, ensuring privacy and control. The application then sends user prompts and images to the Kontext model running on Replicate, returning the modified image.
Use Cases:
- Rapid prototyping of visual concepts.
- Creative image manipulation for artists and designers.
- Personalized photo editing with simple text commands.
- Exploring the capabilities of generative AI in an accessible web interface.
For developers, the project is easy to set up locally, requiring Node.js and standard npm commands, making it an excellent example of integrating advanced AI models into a modern web application.




