HiAPI
这张 flux-2-klein-4b 图像模型详情页 Hero 图以悬浮半透明玻璃浮卡与棱镜光带为主体,左侧柔光留白,彩色虹彩层叠,模型名以发光立体字蚀刻于玻璃浮卡上。

Black Forest Labs

FLUX.2 Klein 4B

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

A 4-billion-parameter distilled small model that unifies text-to-image generation and image editing, with end-to-end inference as fast as under 1 second and runs on about 13GB of VRAM

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

Input

Output

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

Pricing

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

Specifications Unit Price
0.25 MP $0.00036
0.5 MP $0.00072
1 MP $0.00143
2 MP $0.00286
4 MP $0.00572

Overview

FLUX.2 klein 4B is a compact text-to-image model from Black Forest Labs, built on a 4-billion-parameter rectified flow architecture that inherits its understanding of lighting, materials, and composition from the larger FLUX.2 base through distillation. It suits developers who need low-cost batch image generation and reliable integration into interactive or latency-sensitive workflows. Accessed through the unified HiAPI.ai interface, it produces a finished image at the target resolution and aspect ratio from a single prompt submission.

Key Highlights

  • Compact size, controllable generation cost — The 4B parameter scale combined with distillation acceleration keeps per-image generation cost low, making it suitable for development scenarios that require large batches and repeated trial-and-error.
  • Distilled from a larger FLUX.2 base — Its understanding of lighting, materials, and composition comes from distilling a larger model, so quality exceeds what its parameter count would suggest.
  • Image specifications fixed in a single call — Resolution, aspect ratio, output format, and compression quality are all request parameters, so output specifications are determined within one call.
  • Reproducible seeds — A random seed can be supplied to reproduce or fine-tune results for the same prompt, which helps with debugging and regression verification.

Capabilities

Text-to-image generation: Submit a text prompt and get the corresponding image with no reference image required; the prompt is the only required parameter, keeping integration simple.

Multiple resolution and aspect ratio options: Output supports five resolution tiers from 0.25 to 4 MP and more than ten aspect ratios such as 1:1, 16:9, and 21:9, matching layout needs such as hero images and portrait-format assets directly.

Output format and quality control: Choose from webp, jpg, and png, and adjust compression quality for jpg/webp from 0 to 100 to balance sharpness and file size as needed.

Reproducible random seeds: The seed parameter lets identical inputs produce repeatable results, making it easy to compare different parameter combinations and reproduce problem samples.

Use Cases

  • Batch image generation for content platforms — Operations or backend developers generate images in bulk with templated prompts, specifying aspect ratio and webp format for direct use in article illustrations and list thumbnails.
  • Instant previews in interactive creation tools — Creative apps turn user input into images in real time, using lower resolution for quick previews before rendering final outputs at high resolution.
  • Specification-driven images for marketing materials — Select a ratio such as 16:9 or 9:16 and a target resolution for each distribution channel, producing banners and cover assets ready to publish in a single call.
  • Parameter tuning and regression verification of generation results — Use seeds and quality parameters for A/B comparisons, and build reproducible samples into a prompt library and quality baseline.

Limitations and Selection Advice

Only text-to-image is supported; when editing an existing image or constraining with a reference image is required, choose an image-editing line instead. This is a 4B distilled model, so its capability ceiling is constrained by parameter scale: it is less stable than larger models on complex compositions, dense text, and fine details, and larger models are recommended for such high-precision needs. Resolution and aspect ratio are preset enums, so arbitrary sizes are not supported. Independent horizontal benchmark data is currently lacking, so selection decisions should be based on testing with your own prompts.

Frequently asked questions

View all FAQs →
  • What is FLUX.2 [klein] 4B best for?

    It fits batch drafts, product concepts, social assets, and cost-sensitive iteration. Move to 9B when realism, typography, and fine detail matter more.

  • How should I choose between 0.25 and 4 MP?

    Start with 0.25 or 0.5 MP for drafts, use 1 MP for typical web assets, and select 2 or 4 MP for larger output. Price changes by megapixel tier.

  • Which aspect ratios are supported?

    1:1, 16:9, 9:16, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 21:9, and 9:21.

  • How can I reproduce a composition direction?

    Keep seed, prompt, ratio, megapixel tier, and output settings fixed while changing one variable at a time.

Related Models

View all models →

Same Type