A Next.js application that demonstrates style transfer using fal.ai's Flux Kontext Dev LoRA model.
- Upload an image or select from examples
- Apply predefined styles (currently featuring Broccoli Hair style)
- Support for custom LoRA URLs
- Real-time image processing with fal.ai
- Clean, modern UI with fal.ai branding
- "Apply Another Style" feature to chain transformations
-
Clone the repository
-
Install dependencies:
npm install
-
Create a
.env.localfile in the root directory:FAL_KEY=your_fal_api_key_hereGet your API key from fal.ai dashboard
-
Run the development server:
npm run dev
- Next.js 15
- TypeScript
- ShadCN
- Tailwind CSS
- tRPC
- React Query
- fal.ai API
- Upload an image by clicking the upload area or dragging and dropping
- Select a style or use a custom LoRA URL
- Click "Generate" to apply the style
- Use "Apply Another Style" to use the result as input for another transformation
MIT