This project implements a real-time AI image generation pipeline using:
[ React UI ] → POST /enqueue → [ FastAPI ]
↳ POST /status → [ FastAPI ]
↳ generates image
Steps:
Sign up at https://modal.com
Create a Hugging Face token:
Register your Hugging Face token with Modal:
modal secret create hf-token
# Paste in:
# HF_TOKEN=your_token_here
modal deploy prompt_forge.py
POST /generate → accepts prompt, returns job IDPOST /status → accepts job_id, returns status of jobGET /models → returns list of available modelsFluxImageGeneratorThis project implements a real-time AI image generation pipeline using:
[ React UI ] → POST /enqueue → [ FastAPI ]
↳ POST /status → [ FastAPI ]
↳ generates image
Steps:
Sign up at https://modal.com
Create a Hugging Face token:
Register your Hugging Face token with Modal:
modal secret create hf-token
# Paste in:
# HF_TOKEN=your_token_here
modal deploy prompt_forge.py
POST /generate → accepts prompt, returns job IDPOST /status → accepts job_id, returns status of jobGET /models → returns list of available modelsFluxImageGenerator