Skip to content

A Flux Schnell Replicate API Generator

Notifications You must be signed in to change notification settings

xcrap/replicate-api-generator

Repository files navigation

Replicate API Generator

The Replicate API Generator is a small TS/BUN script that display a simple UI to leverage the Replicate API to generate images using the "Flux [Schnell]" model.

Screenshot

Requirements

  • Bun installed on your system.
  • A valid Replicate API token.

Setup

1. Clone the Repository

git clone https://github.com/xcrap/replicate-api-generator.git
cd flux-schnell-replicate-generator

2. Rename the .env.example file to .env and add your Replicate API token:

REPLICATE_API_TOKEN=your_replicate_api_token_here
DEBUG=FALSE
PORT=3000

3. Install dependencies, build the CSS and run the development server:

Install dependencies using Bun,

bun install
bun run build
bun run dev

Access the application at http://localhost:3000. (Or whatever port you specified in the .env file)

Possible TODO List

  • Make a proper UI
  • Add schema support to load additional image models
  • Add a lightbox to the generated images
  • Add a option to delete the generated or all generated images
  • Add a option copy a generated images prompts to prompt input
  • Cancel Job Training

About

A Flux Schnell Replicate API Generator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published