HiAPI
21:9 宽幅 Hero:左侧暖光留白,右侧悬浮半透明玻璃卡与棱镜分光雕塑,冰蓝珊瑚粉薰衣草渐变,其中一张玻璃面板上以内透光立体字呈现 flux-2-klein-9b。

Black Forest Labs

FLUX.2 Klein 9B

flux-2-klein-9b/text-to-image

A 9-billion-parameter rectified-flow image model, step-distilled to 4 steps, unifying text-to-image and single/multi-reference image editing in a compact architecture, aimed at low-latency real-time generation scenarios

Try flux-2-klein-9b/text-to-image

Input

Output

image
Fill in the parameters and run — results show up here.

Pricing

flux-2-klein-9b/text-to-image per image

Unit Price $0.00858

Overview

The text-to-image-only pipeline of FLUX.2 klein 9B, released by Black Forest Labs, focuses on balancing quality and latency. It generates images directly from text prompts, supports aspect ratios from 1:1 to 16:9, and offers three output formats: jpeg, png, and webp; inference steps can be set between 4 and 8, and generation can be completed with the default 4 steps. It is well suited for latency-sensitive batch content production, marketing visuals, and visual exploration during the prototyping stage, and developers can integrate it through the unified API on HiAPI.ai.

Key Highlights

  • Low-step inference for latency-sensitive scenarios — The step-distillation design enables image generation in just 4 steps, with the parameter adjustable between 4 and 8 steps, making it easy to trade off between speed and detail.
  • Fixed seed support for reproducible generation — A seed parameter is provided; the same prompt and seed combination can reproduce results, which facilitates regression testing and version comparison.
  • Output parameters aligned with engineering pipelines — Aspect ratios cover the commonly used compositions 1:1, 4:3, 3:4, 16:9, and 9:16, and outputs can be selected directly as jpeg, png, or webp, eliminating the need for additional transcoding.

Capabilities

Text-to-image generation: Pass in a text prompt to obtain the corresponding image, with no required reference image; only prompt is needed, and all other parameters have default values, keeping integration costs low.

Inference step and seed control: num_inference_steps can be adjusted between 4 and 8 to change generation detail, while seed locks randomness, making it suitable for evaluation and debugging that require stable reproduction.

Composition ratios and output formats: aspect_ratio covers five ratios across portrait, landscape, and square formats, and output_format supports jpeg, png, and webp, so generated results can directly match page placements and storage requirements.

Use Cases

  • Batch image production for content teams — Use product or topic descriptions as input to generate images in batches, specify the ratio and output format, and use them directly for articles, landing pages, and social media assets.
  • Visual draft exploration for product prototypes — Use short prompts to quickly produce multiple composition options, and reproduce candidate styles with fixed seeds for direction screening before design review.
  • Integration into real-time or high-frequency image generation applications — For latency-sensitive online features, generate images with the default 4-step inference and adjust the number of steps as needed to control quality and processing time.

Limitations and Selection Advice

This pipeline generates images from plain text only and does not accept reference images. When editing existing images or changing styles is required, choose the image-to-image pipeline in the same series. Inference steps support only 4 to 8 steps, not finer long-sampling adjustments; apart from prompt, there are no parameters such as negative prompts. The model card imposes constraints on out-of-scope use, so check the original license text before commercial use. If a task requires other modalities such as video or audio output, this model is not suitable.

Frequently asked questions

View all FAQs →
  • How many references does FLUX.2 [klein] 9B Image to Image accept?

    It currently accepts one JPEG, PNG, or WebP reference. image_urls must contain exactly one public image URL.

  • Which editing tasks is it best for?

    It is suited to product cleanup, background replacement, in-image text rewriting, color changes, and commercial edits that preserve subject and camera.

  • How do I set inference steps?

    num_inference_steps accepts integers from 4 to 8 and defaults to 4. The current price does not change with the step count.

  • Which ratios and formats are supported?

    Ratios: 1:1, 4:3, 3:4, 16:9, and 9:16. Formats: JPEG, PNG, and WebP.

Related Models

View all models →

Same Type