Getting started with Val Town and Replicate

This is a template for a simple web app using Hono, and Replicate to generate images using Flux Schnell, a fast and high-quality open-source image generation model.

Steps

  1. Create a Val Town account
  2. Fork this project
  3. Create a Replicate API token.
  4. Click on Environment variables on the Val Town project and add your token.
  5. Click on the name of the project at the top of the page.
  6. Your app is running! Generate some images.

Stack

  • Hono is a minimalist web framework for building serverless applications. It's built and maintained by Cloudflare.
  • Replicate is a platform for building and running machine learning models.
  • Flux Schnell is a fast and high-quality open-source image generation model, made by the original creators of Stable Diffusion.