Specifications
| Parameters | 4B |
| Base model | FLUX.2 Klein 4B |
| Task | Text-to-image generation |
| Default resolution | 512 × 512 |
| Supported platforms | Apple Silicon, iPhone, and NVIDIA GPUs |
| License | Apache 2.0 |
Variants
| Family | Weight format | Transformer size | Complete MLX payload | Recommended for |
|---|---|---|---|---|
| Ternary Bonsai Image 4B | Ternary weights with FP16 group scales | 1.21 GB | 3.88 GB | Higher image quality and prompt fidelity |
| 1-bit Bonsai Image 4B | Binary weights with FP16 group scales | 0.93 GB | 3.42 GB | Minimum memory footprint |
Artifacts
All model repositories are available in the Bonsai Image collection on Hugging Face.| Family | Runtime | Repository | Transformer size |
|---|---|---|---|
| Ternary | MLX | prism-ml/bonsai-image-ternary-4B-mlx-2bit | 1.21 GB |
| Ternary | Gemlite / CUDA | prism-ml/bonsai-image-ternary-4B-gemlite-2bit | 1.21 GB |
| 1-bit | MLX | prism-ml/bonsai-image-binary-4B-mlx-1bit | 0.93 GB |
| 1-bit | Gemlite / CUDA | prism-ml/bonsai-image-binary-4B-gemlite-1bit | 0.93 GB |
How to run it
Clone the Bonsai Image demo repository:- MLX on Apple Silicon - Gemlite on Linux with an NVIDIA GPU
Generate an image
Run a single generation from the command line:Launch the local studio
Start the generation API and browser interface:| Service | Address |
|---|---|
| Bonsai Image Studio | http://localhost:3000 |
| Generation API | http://localhost:8000 |
Performance
For a 512 × 512 image, Bonsai Image 4B generates in approximately:| Hardware | Generation time |
|---|---|
| iPhone 17 Pro Max | 9.4 seconds |
| MacBook Pro with M4 Pro | Approximately 6 seconds |
| Model | Active memory |
|---|---|
| 1-bit Bonsai Image 4B | 1.50 GB |
| Ternary Bonsai Image 4B | 1.96 GB |
| Full-precision FLUX.2 Klein 4B | 11.74 GB |