Skip to main content

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

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters

ParameterTypeRequiredDescription
typestringYesMust be IMAGE_GENERATOR
modelstringYesMust be black-forest-labs/flux-2-klein-9b
promptObjectobjectYesConfiguration object containing all generation parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
promptstringYesText description of the image to generate-
aspect_ratiostringNoImage aspect ratio (1:1, 16:9, 9:16, 3:2, 2:3, 4:5, 5:4)1:1
output_formatstringNoOutput file format (webp, jpg, png)webp
output_qualitynumberNoOutput image quality (0-100)80
num_inference_stepsnumberNoNumber of inference steps (1-4)4
go_fastbooleanNoEnable fastest generation modetrue
megapixelsstringNoOutput resolution in megapixels (0.25, 1)1
disable_safety_checkerbooleanNoDisable built-in safety filteringfalse
seednumberNoRandom seed for reproducibilityRandom

Code Examples

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
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Describe 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.