Flux 2 Klein 9B - Image Generator
Fast 9 billion parameter image generation model by Black Forest Labs. A 4-step distilled version of FLUX.2 Klein with sub-second inference, delivering noticeably richer detail than the 4B variant while maintaining high throughput for production workloads.
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Must be IMAGE_GENERATOR |
model | string | Yes | Must be black-forest-labs/flux-2-klein-9b |
promptObject | object | Yes | Configuration object containing all generation parameters |
Prompt Object Parameters
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
prompt | string | Yes | Text description of the image to generate | - |
aspect_ratio | string | No | Image aspect ratio (1:1, 16:9, 9:16, 3:2, 2:3, 4:5, 5:4) | 1:1 |
output_format | string | No | Output file format (webp, jpg, png) | webp |
output_quality | number | No | Output image quality (0-100) | 80 |
num_inference_steps | number | No | Number of inference steps (1-4) | 4 |
go_fast | boolean | No | Enable fastest generation mode | true |
megapixels | string | No | Output resolution in megapixels (0.25, 1) | 1 |
disable_safety_checker | boolean | No | Disable built-in safety filtering | false |
seed | number | No | Random seed for reproducibility | Random |
Code Examples
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_GENERATOR",
"model": "black-forest-labs/flux-2-klein-9b",
"promptObject": {
"prompt": "A sleek electric sports car on an empty highway at night, cinematic lighting",
"aspect_ratio": "16:9",
"num_inference_steps": 4,
"go_fast": true,
"megapixels": "1",
"output_format": "webp",
"output_quality": 80
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'IMAGE_GENERATOR',
model: 'black-forest-labs/flux-2-klein-9b',
promptObject: {
prompt: 'A sleek electric sports car on an empty highway at night, cinematic lighting',
aspect_ratio: '16:9',
num_inference_steps: 4,
go_fast: true,
megapixels: '1',
output_format: 'webp',
output_quality: 80
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "IMAGE_GENERATOR",
"model": "black-forest-labs/flux-2-klein-9b",
"promptObject": {
"prompt": "A sleek electric sports car on an empty highway at night, cinematic lighting",
"aspect_ratio": "16:9",
"num_inference_steps": 4,
"go_fast": True,
"megapixels": "1",
"output_format": "webp",
"output_quality": 80
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
API Playground
https://api.1min.ai/api/featuresDescribe the image you want to generate
Number of inference steps (1-4)
Output image quality (0-100)
Random seed for reproducibility
Generated cURL Command:
curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_GENERATOR",
"model": "black-forest-labs/flux-2-klein-9b",
"promptObject": {
"prompt": "A sleek electric sports car on an empty highway at night, cinematic lighting",
"aspect_ratio": "16:9",
"num_inference_steps": 4,
"go_fast": true,
"megapixels": "1",
"output_format": "webp",
"output_quality": 80
}
}'
Response Format
{
"aiRecord": {
"uuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"model": "black-forest-labs/flux-2-klein-9b",
"type": "IMAGE_GENERATOR",
"status": "SUCCESS",
"createdAt": "2026-03-27T10:00:00.000Z",
"aiRecordDetail": {
"promptObject": {
"prompt": "A sleek electric sports car on an empty highway at night, cinematic lighting",
"aspect_ratio": "16:9",
"num_inference_steps": 4,
"go_fast": true,
"megapixels": "1",
"output_format": "webp",
"output_quality": 80
},
"resultObject": [
"development/images/2026_03_27_10_00_02_001_sports_car.webp"
]
},
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2026_03_27_10_00_02_001_sports_car.webp?..."
}
}
Use Cases
- Scalable Production: High-quality generation at speed for production workloads
- Rapid Prototyping: Detailed concepts faster than full-size models
- High-volume Pipelines: Balanced quality and throughput for bulk generation
- Creative Iteration: Fast multi-variation generation with richer detail than 4B
Notes
4B vs 9B
Klein 9B produces noticeably richer detail than Klein 4B while keeping sub-second inference. Choose 4B for maximum throughput, 9B when detail quality matters more.