FLUX.2 Klein 4B

Model Information

Display Name: FLUX.2 Klein 4B

API Model ID: black-forest-labs/flux-2-klein-4b

Category: Text To Image

Description: FLUX.2 Klein 4B is Black Forest Labs' compact 4 billion parameter image generation model, distilled from the larger FLUX 2 base. It uses latent flow matching for fast, high-quality image generation up to 4 megapixels. **Key Features:** - 4B parameters for fast, efficient inference - Up to 4MP output resolution - Clean typography and text rendering in images - Multi-reference image support for consistency - High-resolution editing with detail preservation - Apache 2.0 license **Capabilities:** - Text-to-image generation - Accurate lighting, shadows, reflections, and perspective - Typography in layouts, infographics, and UI mockups - Multi-reference character and style consistency **Best For:** - Fast image generation at low cost - Typography and design work - Rapid prototyping and iteration - Production applications requiring speed **Technical Specs:** - Architecture: Latent flow matching (rectified flow transformer) - Parameters: 4 billion (distilled) - Vision-language model: Mistral 3-based - VAE: FLUX.2 VAE - Max Resolution: 4MP - License: Apache 2.0

How to Use This Model

To use FLUX.2 Klein 4B via the HInow.ai API, use the model ID: black-forest-labs/flux-2-klein-4b

API Request Example (Chat/Text)


POST https://api.hinow.ai/v1/chat/completions
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "model": "black-forest-labs/flux-2-klein-4b",
  "messages": [
    {"role": "user", "content": "Your message here"}
  ]
}
              

API Request Example (Image Generation)


POST https://api.hinow.ai/v1/images
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "model": "black-forest-labs/flux-2-klein-4b",
  "prompt": "Your image description here"
}
              

Pricing

  • total: $0.015

Available Parameters

  • aspect_ratio: Output aspect ratio. All 9 canonical ratios are accepted; if the upstream provider does not natively support a given ratio, the system maps to the closest one. (Options: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9, 9:21)
  • num_inference_steps: Number of inference steps. (Options: 4, 6, 8, 10)
  • guidance_scale: How closely to follow the prompt. (Options: 1.5, 2.0, 2.5, 3.0, 3.5)
  • output_format: Output image format. (Options: jpeg, png)
  • strength: Image transformation strength for img2img (0.0-1.0). Lower keeps more of the original.

Quick Reference

To use this model, set: "model": "black-forest-labs/flux-2-klein-4b"

Featured: No

Documentation: https://hinow.ai/models/black-forest-labs/flux-2-klein-4b

API Endpoint: https://api.hinow.ai/v1

Back to Models

FLUX.2 Klein 4B

black-forest-labs/flux-2-klein-4b

$0.015
per image

About

FLUX.2 Klein 4B is Black Forest Labs' compact 4 billion parameter image generation model, distilled from the larger FLUX 2 base. It uses latent flow matching for fast, high-quality image generation up to 4 megapixels.

Key Features:

  • 4B parameters for fast, efficient inference
  • Up to 4MP output resolution
  • Clean typography and text rendering in images
  • Multi-reference image support for consistency
  • High-resolution editing with detail preservation
  • Apache 2.0 license

Capabilities:

  • Text-to-image generation
  • Accurate lighting, shadows, reflections, and perspective
  • Typography in layouts, infographics, and UI mockups
  • Multi-reference character and style consistency

Best For:

  • Fast image generation at low cost
  • Typography and design work
  • Rapid prototyping and iteration
  • Production applications requiring speed

Technical Specs:

  • Architecture: Latent flow matching (rectified flow transformer)
  • Parameters: 4 billion (distilled)
  • Vision-language model: Mistral 3-based
  • VAE: FLUX.2 VAE
  • Max Resolution: 4MP
  • License: Apache 2.0

Capabilities

Text To Image

Parameters

aspect_ratio

Output aspect ratio. All 9 canonical ratios are accepted; if the upstream provider does not natively support a given ratio, the system maps to the closest one.

1:116:99:164:33:43:22:321:99:21
num_inference_steps

Number of inference steps.

46810
guidance_scale

How closely to follow the prompt.

1.52.02.53.03.5
output_format

Output image format.

jpegpng
strength

Image transformation strength for img2img (0.0-1.0). Lower keeps more of the original.

Code Examples

curl -X POST https://api.hinow.ai/v1/images \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HINOW_API_KEY" \
  -d '{
    "model": "black-forest-labs/flux-2-klein-4b",
    "prompt": "A beautiful sunset over mountains",
    "parameters": {
      "aspect_ratio": "1:1",
      "num_inference_steps": "4",
      "guidance_scale": "1.5",
      "output_format": "jpeg",
      "strength": ""
    }
  }'