Skip to content

black-forest-labs/flux-2-klein-api-demo

Repository files navigation

FLUX.2 [klein] Demo

A minimal web demo for FLUX.2 Klein image generation by Black Forest Labs.

Features

  • Text-to-image generation with FLUX.2 Klein (9B and 4B variants)
  • Image-to-image generation using reference images

This demo is intended as a starting point for developers exploring the BFL API. Fork it and build something cool!

Setup

  1. Install dependencies:

    npm install
  2. Run the development server:

    npm run dev
  3. Open http://localhost:4321 in your browser

  4. Enter your BFL API key (get one at https://dashboard.bfl.ai/get-started)

Deployment

Deploy to Vercel:

npm i -g vercel
vercel

Or connect your GitHub repository to Vercel for automatic deployments.

Tech Stack

License

This project is licensed under the Creative Commons Attribution 4.0 International License - see the LICENSE file for details.

Releases

No releases published

Packages

 
 
 

Contributors