flux-klein-simple / README.md
chmielvu's picture
Fix: Update sdk_version to 5.38.0
c496768 verified

A newer version of the Gradio SDK is available: 6.13.0

Upgrade
metadata
title: FLUX.2 Klein Simple
emoji: 🎨
colorFrom: indigo
colorTo: pink
sdk: gradio
sdk_version: 5.38.0
app_file: app.py
pinned: false
license: mit

FLUX.2 Klein Simple

Unified FLUX.2 Klein model for text-to-image and image-to-image generation with LoRA support.

Features

  • 2 Model Variants: 4B distilled (fast) and 4B base (quality)
  • Unified Pipeline: Same model handles text2img and img2img
  • Civitai LoRA Support: Add style LoRAs by version ID
  • ZeroGPU acceleration: Runs on HuggingFace ZeroGPU

Model Variants

Model Best For Speed
4b-distilled Fast generation ~2s (4 steps)
4b-base Quality generation ~10s (20 steps)

API Usage

from gradio_client import Client

client = Client("chmielvu/flux-klein-simple")
result = client.predict(
    prompt="A portrait of a warrior in fantasy style",
    model="4b-distilled",
    preset="balanced",
    api_name="/generate"
)