Try FLUX.2 Klein 4B in the Workbench
Run this model interactively, tune parameters, and compare outputs.
black-forest-labs-flux-2-klein-4b
FLUX.2 Klein 4B from Black Forest Labs is a lightweight version of the FLUX.2 family featuring 4 billion parameters, designed for efficient text-to-image generation with support for various aspect ratios and quality settings. It accepts text prompts and optional image inputs for reference, producing high-quality PNG, JPEG, or WebP images. Key features include customizable inference steps (1-50), guidance scale, and seed control for reproducible results. Ideal for real-time applications and resource-constrained environments.
Example request
- Sync
- Async
- Async with SSE
See the image editing reference for more details.
- Minimal
- Basic parameters
- All parameters
Fetch model details
The models endpoint returns the full model object, including itsjson_request_schema.
Request parameters
Required parameters
| Field | Type | Default | Description |
|---|---|---|---|
prompt | string | — | Text description of the image to generate |
Optional parameters
| Field | Type | Default | Description |
|---|---|---|---|
input_image | array<string> | — | Input images to transform or use as reference (supports multiple image urls) |
aspect_ratio | string | "1:1" | Aspect ratio for the generated image One of: 1:1, 16:9, 9:16, 4:3, 3:4. |
output_quality | string | "standard" | Quality setting for output image One of: standard, high. |
output_format | string | "png" | Format of the output image One of: png, jpeg, webp. |
seed | integer | — | Random seed. Leave blank to randomize |
num_inference_steps | integer | 28 | Number of denoising steps Range: 1 – 50. |
guidance_scale | number | 2.0 | Scale for classifier-free guidance Range: 0.0 – 10.0. |