Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
Black Forest Labs' small image model that makes images from text and edits them from reference pictures, fast enough for interactive use on a consumer GPU.
FLUX.2 [klein] 4B is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download black-forest-labs/FLUX.2-klein-4B
FLUX.2 [klein] 4B is an image model from Black Forest Labs. One model does text to image and image editing, including editing from several reference pictures. It is a rectified flow transformer of about 4 billion parameters, tuned for speed.
The card puts generation in the sub-second range on suitable hardware. The weights are open under Apache 2.0, including for commercial use.
It suits developers and creators who want quick image generation or editing on a machine they own. The card names a graphics card with about 13 GB of VRAM, such as an RTX 3090 or 4070, as enough.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | App developers | Build interactive image features into a product | A live preview as a user types a prompt |
| Design | Visual designers | Generate and revise pictures from references | Editing a scene using two reference images |
| Marketing | Content teams | Produce illustrations quickly | A header picture from a short brief |
| Edge and local tools | Engineers | Run image generation on local hardware | An offline image tool on a workstation |
Skip it if you want a hosted image service and have no suitable graphics card.
| Use case | Who | What they get back |
|---|---|---|
| Text to image | Creators and developers | A picture made from a written description |
| Multi-reference editing | Designers | A revised image guided by several reference pictures |
| Latency-sensitive apps | Product teams | Images in about a second on suitable hardware |
You need a few things in place first.
pip install -U huggingface_hub hf download black-forest-labs/FLUX.2-klein-4B
You write a short Python script. It loads the pipeline class named Flux2KleinPipeline, turns on CPU offloading to save VRAM, and passes a prompt with a size, a step count and a seed. The card's script saves the first image to a file.
import torch
from diffusers import Flux2KleinPipeline
device = "cuda"
dtype = torch.bfloat16
pipe = Flux2KleinPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-4B", torch_dtype=dtype)
pipe.enable_model_cpu_offload() # save some VRAM by offloading the model to CPU
prompt = "A cat holding a sign that says hello world"
image = pipe(
prompt=prompt,
height=1024,
width=1024,
guidance_scale=1.0,
num_inference_steps=4,
generator=torch.Generator(device=device).manual_seed(0)
).images[0]
image.save("flux-klein.png")You swap the prompt line for "a red bicycle against a brick wall at sunrise" and run the script again. With the card's settings the model takes 4 steps at 1024 by 1024 pixels, then writes the new picture to flux-klein.png.
Start by running the script as it is and open flux-klein.png. Change only the prompt first. The card warns that text inside images may come out distorted, so check any words in your picture.
The model is a distilled rectified flow transformer, which is why it needs only 4 steps. It trades some of the quality of larger models for speed and a small memory footprint. The card lists limits: it is not a source of facts, it can amplify biases from its training data, and it may miss the prompt. Prompting style strongly affects how closely it follows.
Black Forest Labs' small image model that makes images from text and edits them from reference pictures, fast enough for interactive use on a consumer GPU.
Made by black-forest-labs on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: FLUX.2 [klein] 4B is an image model from Black Forest Labs. One model does text to image and image editing, including editing from several reference pictures. It is a rectified flow transformer of about 4 billion parameters, tuned for speed.
The card puts generation in the sub-second range on suitable hardware. The weights are open under Apache 2.0, including for commercial use.
Who it suits: It suits developers and creators who want quick image generation or editing on a machine they own. The card names a graphics card with about 13 GB of VRAM, such as an RTX 3090 or 4070, as enough.
Industry | Who uses it | How they use it | Example
Software | App developers | Build interactive image features into a product | A live preview as a user types a prompt
Design | Visual designers | Generate and revise pictures from references | Editing a scene using two reference images
Marketing | Content teams | Produce illustrations quickly | A header picture from a short brief
Edge and local tools | Engineers | Run image generation on local hardware | An offline image tool on a workstation
Skip it if you want a hosted image service and have no suitable graphics card.
Where to use it:
Use case | Who | What they get back
Text to image | Creators and developers | A picture made from a written description
Multi-reference editing | Designers | A revised image guided by several reference pictures
Latency-sensitive apps | Product teams | Images in about a second on suitable hardware
How to set it up: You need a few things in place first.
pip install -U huggingface_hub
hf download black-forest-labs/FLUX.2-klein-4B
How to use it: You write a short Python script. It loads the pipeline class named Flux2KleinPipeline, turns on CPU offloading to save VRAM, and passes a prompt with a size, a step count and a seed. The card's script saves the first image to a file.
import torch
from diffusers import Flux2KleinPipeline
device = "cuda"
dtype = torch.bfloat16
pipe = Flux2KleinPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-4B", torch_dtype=dtype)
pipe.enable_model_cpu_offload() # save some VRAM by offloading the model to CPU
prompt = "A cat holding a sign that says hello world"
image = pipe(
prompt=prompt,
height=1024,
width=1024,
guidance_scale=1.0,
num_inference_steps=4,
generator=torch.Generator(device=device).manual_seed(0)
).images[0]
image.save("flux-klein.png")
Example: You swap the prompt line for "a red bicycle against a brick wall at sunrise" and run the script again. With the card's settings the model takes 4 steps at 1024 by 1024 pixels, then writes the new picture to flux-klein.png.
For newcomers and experts: Start by running the script as it is and open flux-klein.png. Change only the prompt first. The card warns that text inside images may come out distorted, so check any words in your picture.
The model is a distilled rectified flow transformer, which is why it needs only 4 steps. It trades some of the quality of larger models for speed and a small memory footprint. The card lists limits: it is not a source of facts, it can amplify biases from its training data, and it may miss the prompt. Prompting style strongly affects how closely it follows.
Write a prompt or add reference images
The pipeline runs 4 denoising steps
The model returns an image
You save it to a file
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download black-forest-labs/FLUX.2-klein-4B
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| FLUX.2 [klein] 4B This page | 435,643 | 1,116 | 3.9B | apache-2.0 | |
| FLUX.2 [klein] 4B BaseShares flux · image-editing · image-to-image | 743,055 | 195 | 3.9B | apache-2.0 | |
| FLUX 3 Image Klein Prompt UpsamplerShares flux · image-editing · text-to-image | 71,876 | 81 | 9.4B | apache-2.0 | |
| QMA Camera AnglesShares image-editing · image-to-image · diffusers | 13,875 | 55 | — | apache-2.0 | |
| SenseNova-U1.5-8B-MoT-TailSteerShares image-editing · text-to-image · safetensors | 198 | 5 | 17.5B | apache-2.0 | |
| Fibo 2.0Shares image-to-image · diffusion-single-file | 407,328 | 232 | — | cc-by-nc-4.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.
alibaba · Kit
Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…