black-forest-labs/flux-2-klein-4b-base 🔢🖼️📝✓❓ → 🖼️

⭐ Official ▶️ 70.7K runs 📅 Jan 2026 ⚙️ Cog 0.16.9 🔗 GitHub ⚖️ License
image-to-image text-to-image

Performance

2.6sTypical run time
70.7KTotal runs

About

Un-distilled version of FLUX.2 [klein]. Optimized for fine-tuning, customization, and post-training workflows

Example Output

Prompt:

"A surreal underwater or cosmic garden scene with bioluminescent flora against a deep navy blue to black background. Delicate, feather-like structures in pale icy blue and white emerge from the left side, resembling ethereal ferns or coral fronds with intricate fractal patterns. These luminous fronds transition into a cloud-like dispersal of particles and spores floating through the dark space, creating a dreamy, ethereal atmosphere. On the right side, dense clusters of vegetation in deep greens, blues, and purple-pink tones form an organic canopy. The foliage includes pine-like needles, flowering bushes in blue and magenta hues, and various plant forms creating depth and texture. Small glowing particles and orbs of light are scattered throughout the scene like floating pollen or bioluminescent plankton. The overall composition creates a mystical, otherworldly environment that blends elements of deep sea bioluminescence with alien botanical landscapes. Cinematic lighting with cool color palette dominated by blues, teals, and deep greens. Photorealistic rendering with soft focus effects and atmospheric depth. With large white text in the center: "FLUX.2 [klein] 4B Base""

Output

Example output

Performance Metrics

2.57s Prediction Time
2.58s Total Time
All Input Parameters
{
  "images": [],
  "prompt": "A surreal underwater or cosmic garden scene with bioluminescent flora against a deep navy blue to black background. Delicate, feather-like structures in pale icy blue and white emerge from the left side, resembling ethereal ferns or coral fronds with intricate fractal patterns. These luminous fronds transition into a cloud-like dispersal of particles and spores floating through the dark space, creating a dreamy, ethereal atmosphere. On the right side, dense clusters of vegetation in deep greens, blues, and purple-pink tones form an organic canopy. The foliage includes pine-like needles, flowering bushes in blue and magenta hues, and various plant forms creating depth and texture. Small glowing particles and orbs of light are scattered throughout the scene like floating pollen or bioluminescent plankton. The overall composition creates a mystical, otherworldly environment that blends elements of deep sea bioluminescence with alien botanical landscapes. Cinematic lighting with cool color palette dominated by blues, teals, and deep greens. Photorealistic rendering with soft focus effects and atmospheric depth. With large white text in the center: \"FLUX.2 [klein] 4B Base\"",
  "go_fast": false,
  "guidance": 4,
  "aspect_ratio": "1:1",
  "output_format": "jpg",
  "output_quality": 95,
  "output_megapixels": "1"
}
Input Parameters
seed Type: integer
Random seed. Set for reproducible generation
images Type: arrayDefault:
List of input images for image-to-image generation. Maximum 5 images. Must be jpeg, png, gif, or webp.
prompt (required) Type: string
Text prompt for image generation.
go_fast Type: booleanDefault: false
Run faster predictions with additional optimizations.
guidance Type: numberDefault: 4Range: 1 - 10
Classifier-free guidance scale. Higher values produce images more closely related to the prompt.
aspect_ratio Default: 1:1
Aspect ratio for the generated image. Use 'match_input_image' to match the aspect ratio of the first input image.
output_format Default: jpg
Format of the output images
output_quality Type: integerDefault: 95Range: 0 - 100
Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs.
output_megapixels Default: 1
Resolution of the output image in megapixels
disable_safety_checker Type: booleanDefault: false
Disable safety checker for generated images.
Output Schema

Output

Type: array • Items Type: string • Items Format: uri

Example Execution Logs
Using seed: 789468483
Generating 1024x1024 image (1.00 MP, 1:1) with 50 steps, guidance=4.0 ...
Generation took 2.33s
Version Details
Version ID
2289efa5ebba21f5322ba1b73ac92bb6fec9f34bafc08e0c26f465dac6f8b465
Version Created
January 15, 2026
Run on Replicate →