Giter VIP home page Giter VIP logo

replicate-api-generator's Introduction

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

replicate-api-generator's People

Contributors

xcrap avatar

Stargazers

HeisenBerg? avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.