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


