Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xcrap/replicate-api-generator
A Flux Schnell Replicate API Generator
https://github.com/xcrap/replicate-api-generator
api generator replicate
Last synced: 2 days ago
JSON representation
A Flux Schnell Replicate API Generator
- Host: GitHub
- URL: https://github.com/xcrap/replicate-api-generator
- Owner: xcrap
- Created: 2024-08-06T04:41:13.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-08-07T04:42:59.000Z (5 months ago)
- Last Synced: 2024-11-15T12:28:34.826Z (2 months ago)
- Topics: api, generator, replicate
- Language: JavaScript
- Homepage:
- Size: 1.65 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Replicate API Generator
The **Replicate API Generator** is a small TS/BUN script that display a simple UI to leverage the [Replicate API](https://replicate.com/) to generate images using the "Flux [Schnell]" model.![Screenshot](screenshot.png "Screenshot")
## Requirements
- [Bun](https://bun.sh/) installed on your system.
- A valid Replicate API token.## Setup
### 1. Clone the Repository
```bash
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:
```bash
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,
```bash
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